Skip to content

feat: 为智谱 AI 添加 Provider 配置模板#124

Merged
solarhell merged 1 commit intomainfrom
feat/add-zhipu-provider-template
Jan 18, 2026
Merged

feat: 为智谱 AI 添加 Provider 配置模板#124
solarhell merged 1 commit intomainfrom
feat/add-zhipu-provider-template

Conversation

@solarhell
Copy link
Contributor

@solarhell solarhell commented Jan 18, 2026

概述

为智谱 AI 添加 Provider 配置模板,支持通过 Claude Code 使用智谱的 GLM-4.7 模型。

变更内容

  • ✅ 添加智谱 AI 官方 logo (zhipu.svg)
  • ✅ 在 quickTemplates 中新增智谱配置
  • ✅ 配置 Claude Code 端点: https://open.bigmodel.cn/api/anthropic
  • ✅ 支持 GLM-4.7 模型
  • ✅ 添加中英文国际化翻译

参考文档

截图

1. Provider 模板列表

image

2. Provider 配置界面

image image

🤖 Generated with Claude Code

Summary by CodeRabbit

  • 新功能
    • 新增智谱 AI 提供商模板支持,用户现可在提供商配置中添加并使用智谱 AI。已提供英文和中文完整本地化,以及对应的品牌图标。

✏️ Tip: You can customize this high-level summary in your review settings.

- 添加智谱 AI 官方 logo (zhipu.svg)
- 在 quickTemplates 中新增智谱配置
- 配置 Claude Code 端点: https://open.bigmodel.cn/api/anthropic
- 支持 GLM-4.7 模型
- 添加中英文国际化翻译

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Jan 18, 2026

📝 Walkthrough

演练

本拉取请求为平台添加新的AI提供商"智谱AI",通过在英文和中文本地化文件中新增翻译条目,并在提供商模板配置文件中添加新的快速模板条目(包含logo导入和API端点)来完成集成。

变更

内聚体 / 文件 变更摘要
本地化文件
web/src/locales/en.json, web/src/locales/zh.json
addProvider.templates 下添加新的 zhipu 模板条目,包含提供商名称("Zhipu AI"/"智谱 AI")和描述("Claude Code · GLM-4.7")
提供商配置
web/src/pages/providers/types.ts
新增 zhipu.svg logo导入;在 quickTemplates 中添加新模板对象,包含ID、国际化键、图标、logo URL、支持的客户端(claude)及对应的API端点(https://open.bigmodel.cn/api/anthropic)

预计代码审查工作量

🎯 2 (Simple) | ⏱️ ~8 分钟

可能相关的PR

建议标签

feature, i18n, provider-integration

建议审查员

  • lxw15337674
  • awsl233777

诗歌

🐰 智谱AI驾云来,
Claude的梦想要实现,
本地化翻译配齐全,
Logo图标闪闪亮,
新的提供商已上线!✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed 标题准确描述了PR的主要变更:为智谱AI添加Provider配置模板,与文件改动(翻译条目、类型定义和资源)完全相符且具体明确。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@solarhell solarhell enabled auto-merge (squash) January 18, 2026 06:15
@solarhell solarhell merged commit 6228b43 into main Jan 18, 2026
2 checks passed
@solarhell solarhell deleted the feat/add-zhipu-provider-template branch January 18, 2026 06:23
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.

2 participants