mirror of
https://github.com/OpenBMB/ChatDev.git
synced 2024-11-07 18:40:13 +03:00
parent
6def7dd499
commit
710e007c4f
@ -97,6 +97,5 @@
|
||||
"brainstorming": "False",
|
||||
"gui_design": "True",
|
||||
"git_management": "False",
|
||||
"self_improve": "False",
|
||||
"incremental_develop": "False"
|
||||
"self_improve": "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_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"
|
||||
GPT_3_5_TURBO = "gpt-3.5-turbo-16k-0613"
|
||||
GPT_4 = "gpt-4"
|
||||
GPT_4_32k = "gpt-4-32k"
|
||||
STUB = "stub"
|
||||
|
Loading…
Reference in New Issue
Block a user