Skip to content

Commit e66be71

Browse files
committed
fix: change openai default model
Signed-off-by: yihong0618 <[email protected]>
1 parent f274ec2 commit e66be71

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,4 @@ config/
137137
.pdm-build/
138138
*.sh
139139
nohup.out
140+
xiao_config.yaml

pdm.lock

+23-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

xiao_config.yaml.example

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ proxy: ""
2323
# 使用的 bot 类型,目前支持 chatgptapi, glm, gemini, langchain, qwen, doubao, moonshot, yi, llama,
2424
bot: chatgptapi
2525
# 自定义 prompt
26-
prompt: "请用100字以内回答"
26+
prompt: "请用300字以内回答"
2727
# 触发词列表
2828
keyword:
2929
- "请"
@@ -38,7 +38,7 @@ end_conversation: "结束持续对话"
3838
stream: true
3939
# 传给 Chatbot completion 接口的参数,比如要使用自定义模型:
4040
# gpt_options:
41-
# model: gpt4-turbo
41+
# model: gpt-4o-2024-05-13
4242
gpt_options: {}
4343

4444
# ----- OpenAI -----
@@ -47,9 +47,9 @@ openai_key: ""
4747
# OpenAI API 地址
4848
# 例:OpenAI 代理地址: https://myopenai.com/v1/
4949
# 或:Azure Open AI: https://abc.openai.azure.com/
50-
api_base: "https://abc-def.openai.azure.com/"
50+
#api_base: "https://abc-def.openai.azure.com/"
5151
# Azure Open AI 的 deployment id(如使用 Azure OpenAI)
52-
deployment_id: ""
52+
#deployment_id: ""
5353

5454

5555
# ----- Moonshot(Kimi) -----

xiaogpt/bot/chatgptapi_bot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@dataclasses.dataclass
1717
class ChatGPTBot(ChatHistoryMixin, BaseBot):
1818
name: ClassVar[str] = "ChatGPT"
19-
default_options: ClassVar[dict[str, str]] = {"model": "gpt-3.5-turbo"}
19+
default_options: ClassVar[dict[str, str]] = {"model": "gpt-4o-2024-05-13"}
2020
openai_key: str
2121
api_base: str | None = None
2222
proxy: str | None = None

0 commit comments

Comments
 (0)