Spaces:
Paused
Paused
Husnain commited on
♻️ [Refactor] Rename gpt-3.5 to gpt-3.5-turbo
Browse files88 unmodified lines8990919293949588 unmodified linesdef chat_completions(self, item: ChatCompletionsPostItem, api_key: str = Depends(extract_api_key)):if item.model == "gpt-3.5":streamer = OpenaiStreamer()stream_response = streamer.chat_response(messages=item.messages)else:88 unmodified lines8990919293949588 unmodified linesdef chat_completions(self, item: ChatCompletionsPostItem, api_key: str = Depends(extract_api_key)):if item.model == "gpt-3.5-turbo":streamer = OpenaiStreamer()stream_response = streamer.chat_response(messages=item.messages)else:
apis/chat_api.py+1-1