Facing issue running Open AI compatible server
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 39.5k
- Forks
- 4.8k
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to create Open AI compatible API
Question. Should the controller and API server have the same port?
I tried the same port but also different ports.
My chat model is running successfully, but I am not seeing any models in the API call. Is this a know issue? Or am I missing anything?
// 20230705191047
// http://localhost:8003/v1/models
{
"object": "list",
"data": [
]
}
The below steps are the ones I ran.
First, launch the controller
python3 -m fastchat.serve.controller
Then, launch the model worker(s)
python3 -m fastchat.serve.model_worker --model-path lmsys/vicuna-7b-v1.3
Finally, launch the RESTful API server
python3 -m fastchat.serve.openai_api_server --host localhost --port 8000
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the documented entry points fastchat.serve.controller, fastchat.serve.model_worker, and fastchat.serve.openai_api_server, then reproduce the commands and query /v1/models. Check how the API server discovers registered workers and determine whether the model appears in the returned list when the controller and server ports are configured correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai, api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100