Skip to content

fix: 默认 API 配置改为 Anthropic,与代码格式一致#1

Open
toller892 wants to merge 1 commit into
masterfrom
fix/api-default-to-anthropic
Open

fix: 默认 API 配置改为 Anthropic,与代码格式一致#1
toller892 wants to merge 1 commit into
masterfrom
fix/api-default-to-anthropic

Conversation

@toller892

Copy link
Copy Markdown
Owner

问题

useChat.ts 默认配置指向 OpenAI(api.openai.com / gpt-4o-mini),但 api.ts 的请求格式、鉴权、响应解析全部是 Anthropic 格式。按默认配置填 OpenAI key 后必然报错。

修复

字段 修改前 修改后
apiEndpoint api.openai.com api.anthropic.com
model gpt-4o-mini claude-3-haiku-20240307

验证

  • 预提交审查通过(安全扫描 + 独立 reviewer [verified])
  • 不影响已有用户自定义配置(localStorage 优先)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant