Skip to content

Commit

Permalink
fix: change openai default model
Browse files Browse the repository at this point in the history
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
  • Loading branch information
yihong0618 committed May 14, 2024
1 parent f274ec2 commit e66be71
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,4 @@ config/
.pdm-build/
*.sh
nohup.out
xiao_config.yaml
47 changes: 23 additions & 24 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions xiao_config.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ proxy: ""
# 使用的 bot 类型,目前支持 chatgptapi, glm, gemini, langchain, qwen, doubao, moonshot, yi, llama,
bot: chatgptapi
# 自定义 prompt
prompt: "请用100字以内回答"
prompt: "请用300字以内回答"
# 触发词列表
keyword:
- "请"
Expand All @@ -38,7 +38,7 @@ end_conversation: "结束持续对话"
stream: true
# 传给 Chatbot completion 接口的参数,比如要使用自定义模型:
# gpt_options:
# model: gpt4-turbo
# model: gpt-4o-2024-05-13
gpt_options: {}

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


# ----- Moonshot(Kimi) -----
Expand Down
2 changes: 1 addition & 1 deletion xiaogpt/bot/chatgptapi_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@dataclasses.dataclass
class ChatGPTBot(ChatHistoryMixin, BaseBot):
name: ClassVar[str] = "ChatGPT"
default_options: ClassVar[dict[str, str]] = {"model": "gpt-3.5-turbo"}
default_options: ClassVar[dict[str, str]] = {"model": "gpt-4o-2024-05-13"}
openai_key: str
api_base: str | None = None
proxy: str | None = None
Expand Down

0 comments on commit e66be71

Please sign in to comment.