Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
3304711297
workbuddy2api
Repository navigation
Code
Issues
1
(1)
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
workbuddy2api
/
codex-codebuddy.example.toml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
34 lines (32 loc) · 1.97 KB
main
Breadcrumbs
workbuddy2api
/
codex-codebuddy.example.toml
Copy path
Top
File metadata and controls
Code
Blame
34 lines (32 loc) · 1.97 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# ============================================================
# CodeBuddy/WorkBuddy 订阅 -> OpenAI 兼容客户端 —— provider 配置示例(片段)
# ------------------------------------------------------------
# ⚠️ 重要说明:
# 新版 Codex CLI 已移除 wire_api = "chat" 的支持,只支持 completions 格式,
# 因此【本转换器无法接入 Codex CLI】。这个文件主要给那些支持
# 「自定义 OpenAI 兼容 provider(读 toml 片段)」的第三方客户端作参考,
# 例如 ZCode、Cherry Studio 等。
#
# 如果你的客户端是图形界面(Cherry Studio / NextChat 等),通常不需要这个文件,
# 只需在「自定义模型 / OpenAI 兼容」里填:
# 接口地址 base_url : http://127.0.0.1:8787/v1
# API Key : 留空(除非转换器启动时用了 --api-key)
# 模型名 model : glm-5.2 (或 kimi-k2.7 / deepseek-v4-pro / auto)
#
# 前提:转换器已在本地运行(见 README.md)
# python3 converter.py --port 8787
#
# ⚠️ 本文件只是「示例」。若你的客户端需要合并配置,请【手动】把下面两段
# 复制/合并进你自己的配置文件。本脚本绝不自动改写任何已有配置。
# ============================================================
# 1) 定义一个指向本地转换器的「模型提供商」
[model_providers.codebuddy]
name = "CodeBuddy (via local converter)"
base_url = "http://127.0.0.1:8787/v1"
env_key = "WORKBUDDY2API_KEY" # 转换器未启用 --api-key 时,可随便填一个环境变量名
# 注意:本接口是 OpenAI chat 协议(/v1/chat/completions)。
# 新版 Codex CLI 因不再支持该 wire_api 而无法使用,请用 ZCode / Cherry Studio 等 OpenAI 兼容客户端。
# 2) 定义一个使用该提供商的 profile(仅支持该配置格式的客户端需要)
[profiles.codebuddy]
model = "glm-5.2" # 也可用 kimi-k2.7 / deepseek-v4-pro / auto 等
model_provider = "codebuddy"
You can’t perform that action at this time.