tianlong12 commited on
Commit
ecaf86a
1 Parent(s): ce0c73c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -66,7 +66,7 @@ async def stream_response(content: str):
66
  yield f"data: {{'id': 'chatcmpl-{os.urandom(12).hex()}', 'object': 'chat.completion.chunk', 'created': 1677652288, 'model': 'gpt-3.5-turbo-0613', 'choices': [{'index': 0, 'delta': {{}}, 'finish_reason': 'stop'}]}}\n\n"
67
  yield 'data: [DONE]\n\n'
68
 
69
- @app.post("/v1/chat/completions")
70
  async def chat_completions(request: Request):
71
  body = await request.json()
72
  chat_request = ChatCompletionRequest(**body)
 
66
  yield f"data: {{'id': 'chatcmpl-{os.urandom(12).hex()}', 'object': 'chat.completion.chunk', 'created': 1677652288, 'model': 'gpt-3.5-turbo-0613', 'choices': [{'index': 0, 'delta': {{}}, 'finish_reason': 'stop'}]}}\n\n"
67
  yield 'data: [DONE]\n\n'
68
 
69
+ @app.post("/hf/v1/chat/completions")
70
  async def chat_completions(request: Request):
71
  body = await request.json()
72
  chat_request = ChatCompletionRequest(**body)