Spaces:
Paused
Paused
Husnain
commited on
💎 [Feature] Enable gpt-3.5 in chat_api
Browse files- constants/models.py +9 -0
constants/models.py
CHANGED
|
@@ -22,6 +22,7 @@ TOKEN_LIMIT_MAP = {
|
|
| 22 |
"mistral-7b": 32768,
|
| 23 |
"openchat-3.5": 8192,
|
| 24 |
"gemma-7b": 8192,
|
|
|
|
| 25 |
}
|
| 26 |
|
| 27 |
TOKEN_RESERVED = 20
|
|
@@ -33,6 +34,7 @@ AVAILABLE_MODELS = [
|
|
| 33 |
"mistral-7b",
|
| 34 |
"openchat-3.5",
|
| 35 |
"gemma-7b",
|
|
|
|
| 36 |
]
|
| 37 |
|
| 38 |
# https://platform.openai.com/docs/api-reference/models/list
|
|
@@ -72,4 +74,11 @@ AVAILABLE_MODELS_DICTS = [
|
|
| 72 |
"created": 1700000000,
|
| 73 |
"owned_by": "Google",
|
| 74 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
]
|
|
|
|
| 22 |
"mistral-7b": 32768,
|
| 23 |
"openchat-3.5": 8192,
|
| 24 |
"gemma-7b": 8192,
|
| 25 |
+
"gpt-3.5": 8192,
|
| 26 |
}
|
| 27 |
|
| 28 |
TOKEN_RESERVED = 20
|
|
|
|
| 34 |
"mistral-7b",
|
| 35 |
"openchat-3.5",
|
| 36 |
"gemma-7b",
|
| 37 |
+
"gpt-3.5",
|
| 38 |
]
|
| 39 |
|
| 40 |
# https://platform.openai.com/docs/api-reference/models/list
|
|
|
|
| 74 |
"created": 1700000000,
|
| 75 |
"owned_by": "Google",
|
| 76 |
},
|
| 77 |
+
{
|
| 78 |
+
"id": "gpt-3.5",
|
| 79 |
+
"description": "[openai/gpt-3.5-turbo]: https://platform.openai.com/docs/models/gpt-3-5-turbo",
|
| 80 |
+
"object": "model",
|
| 81 |
+
"created": 1700000000,
|
| 82 |
+
"owned_by": "OpenAI",
|
| 83 |
+
},
|
| 84 |
]
|