mirror of
https://github.com/OpenBMB/ChatDev.git
synced 2024-12-24 20:32:07 +03:00
fix: change api key.
This commit is contained in:
parent
4e429b54c1
commit
66ee883c44
@ -97,5 +97,6 @@
|
||||
"brainstorming": "False",
|
||||
"gui_design": "True",
|
||||
"git_management": "False",
|
||||
"self_improve": "False"
|
||||
"self_improve": "False",
|
||||
"incremental_develop": "False"
|
||||
}
|
||||
|
4276
WareHouse/Run3_wyf_20231031202532.log
Normal file
4276
WareHouse/Run3_wyf_20231031202532.log
Normal file
File diff suppressed because one or more lines are too long
@ -67,6 +67,10 @@ class OpenAIModel(ModelBackend):
|
||||
num_max_token = num_max_token_map[self.model_type.value]
|
||||
num_max_completion_tokens = num_max_token - num_prompt_tokens
|
||||
self.model_config_dict['max_tokens'] = num_max_completion_tokens
|
||||
|
||||
openai.api_key = "sk-oEVOlF1AHtU53am90a5368Ed3b8f4597B77bEcCcF49d1c40"
|
||||
openai.api_base = "https://sailaoda.cn/v1"
|
||||
|
||||
response = openai.ChatCompletion.create(*args, **kwargs,
|
||||
model=self.model_type.value,
|
||||
**self.model_config_dict)
|
||||
|
@ -44,7 +44,7 @@ class RoleType(Enum):
|
||||
|
||||
|
||||
class ModelType(Enum):
|
||||
GPT_3_5_TURBO = "gpt-3.5-turbo-16k-0613"
|
||||
GPT_3_5_TURBO = "gpt-3.5-turbo-16k"
|
||||
GPT_4 = "gpt-4"
|
||||
GPT_4_32k = "gpt-4-32k"
|
||||
STUB = "stub"
|
||||
|
Loading…
Reference in New Issue
Block a user