lm-sys / lm-sys/FastChat

proposed configuration of the fastchat worker

Open
#2,109 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

I found that I couldn't access the endpoints in fastchat.serve.model_worker from another machine on the same network as my server because the CORS was not activated in the FastAPI application I was using. This is my modest contribution to the huge amount of work you've done.
![image](https://github.com/lm-sys/FastChat/assets/74729453/c7e6f67d-2099-4574-89f2-2e11193a84ed)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the fastchat.serve.model_worker module and inspect how its FastAPI application is configured. Verify the worker endpoints from another machine on the same network, then confirm that the requested CORS configuration allows the intended cross-origin access.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, python
Domain
api, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.