fix: change api key.

This commit is contained in:
wyifei26 2023-10-31 21:41:42 +08:00
parent 4e429b54c1
commit 66ee883c44
4 changed files with 4283 additions and 2 deletions

View File

@ -97,5 +97,6 @@
"brainstorming": "False",
"gui_design": "True",
"git_management": "False",
"self_improve": "False"
"self_improve": "False",
"incremental_develop": "False"
}

File diff suppressed because one or more lines are too long

View File

@ -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)

View File

@ -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"