Spaces:
Running
Running
lihuayong
commited on
Commit
•
f46a6a4
1
Parent(s):
d5e6cde
更新模型到gpt-4o
Browse files- modules/presets.py +2 -0
modules/presets.py
CHANGED
@@ -49,6 +49,7 @@ CHUANHU_DESCRIPTION = i18n(
|
|
49 |
)
|
50 |
|
51 |
ONLINE_MODELS = [
|
|
|
52 |
"gpt-4-turbo",
|
53 |
"gpt-3.5-turbo",
|
54 |
"gpt-4-turbo-2024-04-09",
|
@@ -91,6 +92,7 @@ MODEL_TOKEN_LIMIT = {
|
|
91 |
"gpt-4-turbo-2024-04-09": 128000,
|
92 |
"gpt-4-1106-preview": 128000,
|
93 |
"gpt-4-0125-preview": 128000,
|
|
|
94 |
}
|
95 |
|
96 |
TOKEN_OFFSET = 1000 # 模型的token上限减去这个值,得到软上限。到达软上限之后,自动尝试减少token占用。
|
|
|
49 |
)
|
50 |
|
51 |
ONLINE_MODELS = [
|
52 |
+
"gpt-4o",
|
53 |
"gpt-4-turbo",
|
54 |
"gpt-3.5-turbo",
|
55 |
"gpt-4-turbo-2024-04-09",
|
|
|
92 |
"gpt-4-turbo-2024-04-09": 128000,
|
93 |
"gpt-4-1106-preview": 128000,
|
94 |
"gpt-4-0125-preview": 128000,
|
95 |
+
"gpt-4o": 128000,
|
96 |
}
|
97 |
|
98 |
TOKEN_OFFSET = 1000 # 模型的token上限减去这个值,得到软上限。到达软上限之后,自动尝试减少token占用。
|