mirror of
https://github.com/OpenBMB/ChatDev.git
synced 2026-08-05 12:28:46 +00:00
Revert "fix: change api key."
This reverts commit 66ee883c44fd969b35ec46f9529b51d07c87e166.
This commit is contained in:
parent
6def7dd499
commit
710e007c4f
@ -97,6 +97,5 @@
|
|||||||
"brainstorming": "False",
|
"brainstorming": "False",
|
||||||
"gui_design": "True",
|
"gui_design": "True",
|
||||||
"git_management": "False",
|
"git_management": "False",
|
||||||
"self_improve": "False",
|
"self_improve": "False"
|
||||||
"incremental_develop": "False"
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -67,10 +67,6 @@ class OpenAIModel(ModelBackend):
|
|||||||
num_max_token = num_max_token_map[self.model_type.value]
|
num_max_token = num_max_token_map[self.model_type.value]
|
||||||
num_max_completion_tokens = num_max_token - num_prompt_tokens
|
num_max_completion_tokens = num_max_token - num_prompt_tokens
|
||||||
self.model_config_dict['max_tokens'] = num_max_completion_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,
|
response = openai.ChatCompletion.create(*args, **kwargs,
|
||||||
model=self.model_type.value,
|
model=self.model_type.value,
|
||||||
**self.model_config_dict)
|
**self.model_config_dict)
|
||||||
|
|||||||
@ -44,7 +44,7 @@ class RoleType(Enum):
|
|||||||
|
|
||||||
|
|
||||||
class ModelType(Enum):
|
class ModelType(Enum):
|
||||||
GPT_3_5_TURBO = "gpt-3.5-turbo-16k"
|
GPT_3_5_TURBO = "gpt-3.5-turbo-16k-0613"
|
||||||
GPT_4 = "gpt-4"
|
GPT_4 = "gpt-4"
|
||||||
GPT_4_32k = "gpt-4-32k"
|
GPT_4_32k = "gpt-4-32k"
|
||||||
STUB = "stub"
|
STUB = "stub"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user