Update index.mdx (#696)

This commit is contained in:
Haotian Zheng 2023-11-16 23:02:25 +08:00 committed by GitHub
parent a730a63e30
commit 4e3723dd54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ Finally, launch the RESTful API server
python -m fastchat.serve.openai_api_server --host localhost --port 8000
```
Normally this will work. However, if you encounter error like [this](https://github.com/lm-sys/FastChat/issues/1641), commenting out all the lines containing `finish_reason` in `fastchat/protocol/api_protocal.py` and `fastchat/protocol/openai_api_protocol.py` will fix the problem. The modified code looks like:
Normally this will work. However, if you encounter error like [this](https://github.com/lm-sys/FastChat/issues/1641), commenting out all the lines containing `finish_reason` in `fastchat/protocol/api_protocol.py` and `fastchat/protocol/openai_api_protocol.py` will fix the problem. The modified code looks like:
```python
class CompletionResponseChoice(BaseModel):