Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
·
a116794
1
Parent(s):
a41860c
bumped GPT model versions
Browse files- config_example.json +1 -1
- modules/config.py +1 -1
- modules/presets.py +1 -1
config_example.json
CHANGED
@@ -47,7 +47,7 @@
|
|
47 |
"legacy_api_usage": false, // 是否使用旧版 API 用量查询接口(OpenAI现已关闭该接口,但是如果你在使用第三方 API,第三方可能仍然支持此接口)
|
48 |
|
49 |
//== 川虎助理设置 ==
|
50 |
-
"default_chuanhu_assistant_model": "gpt-4", //川虎助理使用的模型,可选gpt-3.5-turbo或者gpt-4等
|
51 |
"GOOGLE_CSE_ID": "", //谷歌搜索引擎ID,用于川虎助理Pro模式,获取方式请看 https://stackoverflow.com/questions/37083058/programmatically-searching-google-in-python-using-custom-search
|
52 |
"GOOGLE_API_KEY": "", //谷歌API Key,用于川虎助理Pro模式
|
53 |
"WOLFRAM_ALPHA_APPID": "", //Wolfram Alpha API Key,用于川虎助理Pro模式,获取方式请看 https://products.wolframalpha.com/api/
|
|
|
47 |
"legacy_api_usage": false, // 是否使用旧版 API 用量查询接口(OpenAI现已关闭该接口,但是如果你在使用第三方 API,第三方可能仍然支持此接口)
|
48 |
|
49 |
//== 川虎助理设置 ==
|
50 |
+
"default_chuanhu_assistant_model": "gpt-4-turbo-preview", //川虎助理使用的模型,可选gpt-3.5-turbo或者gpt-4等
|
51 |
"GOOGLE_CSE_ID": "", //谷歌搜索引擎ID,用于川虎助理Pro模式,获取方式请看 https://stackoverflow.com/questions/37083058/programmatically-searching-google-in-python-using-custom-search
|
52 |
"GOOGLE_API_KEY": "", //谷歌API Key,用于川虎助理Pro模式
|
53 |
"WOLFRAM_ALPHA_APPID": "", //Wolfram Alpha API Key,用于川虎助理Pro模式,获取方式请看 https://products.wolframalpha.com/api/
|
modules/config.py
CHANGED
@@ -185,7 +185,7 @@ if api_host is not None:
|
|
185 |
logging.info(f"OpenAI API Base set to: {os.environ['OPENAI_API_BASE']}")
|
186 |
|
187 |
default_chuanhu_assistant_model = config.get(
|
188 |
-
"default_chuanhu_assistant_model", "gpt-
|
189 |
for x in ["GOOGLE_CSE_ID", "GOOGLE_API_KEY", "WOLFRAM_ALPHA_APPID", "SERPAPI_API_KEY"]:
|
190 |
if config.get(x, None) is not None:
|
191 |
os.environ[x] = config[x]
|
|
|
185 |
logging.info(f"OpenAI API Base set to: {os.environ['OPENAI_API_BASE']}")
|
186 |
|
187 |
default_chuanhu_assistant_model = config.get(
|
188 |
+
"default_chuanhu_assistant_model", "gpt-4-turbo-preview")
|
189 |
for x in ["GOOGLE_CSE_ID", "GOOGLE_API_KEY", "WOLFRAM_ALPHA_APPID", "SERPAPI_API_KEY"]:
|
190 |
if config.get(x, None) is not None:
|
191 |
os.environ[x] = config[x]
|
modules/presets.py
CHANGED
@@ -154,7 +154,7 @@ MODEL_METADATA = {
|
|
154 |
"token_limit": 32768,
|
155 |
},
|
156 |
"GPT4 Turbo": {
|
157 |
-
"model_name": "gpt-4-
|
158 |
"token_limit": 128000,
|
159 |
},
|
160 |
"GPT4 Vision": {
|
|
|
154 |
"token_limit": 32768,
|
155 |
},
|
156 |
"GPT4 Turbo": {
|
157 |
+
"model_name": "gpt-4-turbo-preview",
|
158 |
"token_limit": 128000,
|
159 |
},
|
160 |
"GPT4 Vision": {
|