feat: AI 身份改为 zmo + 更新机制指向自有仓库
- 8 个系统提示词 txt 的 "You are opencode/OpenCode" 改为 zmo,问"你是谁"答 zmo - copilot-gpt-5 的 "Your name is" 同步改 zmo - 更新机制(installation/index.ts)指向 helpLogin/zmo-cli: GitHub release API、install 脚本地址、.zmo/bin 路径检测、userAgent 使以后发布的新版能更新到自有 zmo 版本,而非被覆盖回 opencode - zenmux X-Title/Referer 改为 zmo 标识 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -11,8 +11,8 @@ export const ZenmuxPlugin = PluginV2.define({
|
||||
if (item.provider.api.package !== "@ai-sdk/openai-compatible") continue
|
||||
if (item.provider.api.url !== "https://zenmux.ai/api/v1") continue
|
||||
evt.provider.update(item.provider.id, (provider) => {
|
||||
provider.request.headers["HTTP-Referer"] ??= "https://opencode.ai/"
|
||||
provider.request.headers["X-Title"] ??= "opencode"
|
||||
provider.request.headers["HTTP-Referer"] ??= "https://github.com/helpLogin/zmo-cli"
|
||||
provider.request.headers["X-Title"] ??= "zmo"
|
||||
})
|
||||
}
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user