Husnain
commited on
Commit
•
e69e57b
1
Parent(s):
0edd135
♻️ [Refactor] Rename gpt-3.5 to gpt-3.5-turbo
Browse files- apis/chat_api.py +1 -1
apis/chat_api.py
CHANGED
@@ -89,7 +89,7 @@ class ChatAPIApp:
|
|
89 |
def chat_completions(
|
90 |
self, item: ChatCompletionsPostItem, api_key: str = Depends(extract_api_key)
|
91 |
):
|
92 |
-
if item.model == "gpt-3.5":
|
93 |
streamer = OpenaiStreamer()
|
94 |
stream_response = streamer.chat_response(messages=item.messages)
|
95 |
else:
|
|
|
89 |
def chat_completions(
|
90 |
self, item: ChatCompletionsPostItem, api_key: str = Depends(extract_api_key)
|
91 |
):
|
92 |
+
if item.model == "gpt-3.5-turbo":
|
93 |
streamer = OpenaiStreamer()
|
94 |
stream_response = streamer.chat_response(messages=item.messages)
|
95 |
else:
|