Revert "fix: change api key."

This reverts commit 66ee883c44.
This commit is contained in:
wyifei26 2023-11-02 10:21:27 +08:00
parent 6def7dd499
commit 710e007c4f
4 changed files with 2 additions and 4283 deletions

View File

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

View File

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

View File

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