feat(usage): add minimax and zhipu usage templates#1865
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ebc4cfd307
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ebc4cfd307
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
已修复。 补充了 OpenCode / OpenClaw 场景下的 provider base URL 检测,MiniMax / Zhipu 模板自动识别不再只依赖 websiteUrl,现在也会正确读取运行时配置里的 options.baseURL 或顶层 baseUrl。 |
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary / 概述
支持 MiniMax 和 Zhipu 用量模板。
本次改动包括:
新增 MiniMax 和 Zhipu 的用量模板配置与响应解析逻辑
支持从已支持的 provider 配置中自动识别对应模板
在用量脚本弹窗中补充 MiniMax 和 Zhipu 的预设与表单支持
为 MiniMax 和 Zhipu 的请求地址增加前端必填校验
同步更新相关国际化文案
模板能力按独立文件拆分,便于后续继续接入更多 provider 的用量模板
Related Issue / 关联 Issue
Fixes #1588
Screenshots / 截图
Checklist / 检查清单
pnpm typecheckpasses / 通过 TypeScript 类型检查pnpm format:checkpasses / 通过代码格式检查cargo clippypasses (if Rust code changed) / 通过 Clippy 检查(如修改了 Rust 代码)