原文要点
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
12,500 Commits
12,500 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.cargo
.cargo
.github
.github
.vscode
.vscode
bazel
bazel
codex-cli
codex-cli
codex-rs
codex-rs
docs
docs
patches
patches
scripts
scripts
sdk
sdk
third_party
third_party
tools
tools
.bazelignore
.bazelignore
.bazelrc
.bazelrc
.bazelversion
.bazelversion
.codespellignore
.codespellignore
.codespellrc
.codespellrc
.gitattributes
.gitattributes
.gitignore
.gitignore
.markdownlint-cli2.yaml
.markdownlint-cli2.yaml
.npmrc
.npmrc
.prettierignore
.prettierignore
.prettierrc.toml
.prettierrc.toml
.worktreeinclude
.worktreeinclude
BUILD.bazel
BUILD.bazel
CHANGELOG.md
CHANGELOG.md
LICENSE
LICENSE
MODULE.bazel
MODULE.bazel
MODULE.bazel.lock
MODULE.bazel.lock
NOTICE
NOTICE
README.md
README.md
SECURITY.md
SECURITY.md
announcement_tip.toml
announcement_tip.toml
defs.bzl
defs.bzl
flake.lock
flake.lock
flake.nix
flake.nix
justfil
原文完整内容
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
12,500 Commits
12,500 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.cargo
.cargo
.github
.github
.vscode
.vscode
bazel
bazel
codex-cli
原文配图

六、真正的重点
不是记住所有参数,而是让团队每个人都能复用同一套配置:
- 把 base_url、model、环境变量分开。
- 项目里的 profile 与用户主目录的 profile 分清。
- 不要把 key 写进仓库。
- 支持本地覆盖,但上传时用公共模板。
推荐
[profiles.tb] base_url = "https://tokenbuddy.cc/v1" model = "gpt-6.1-sol" max_tokens = 4096 temperature = 0.1 [profiles.tb-fast] base_url = "https://tokenbuddy.cc/v1" model = "gpt-6-terra" max_tokens = 1024 temperature = 0.2
七、上线前检查
- base_url 使用 tokenbuddy.cc,而不是本地代理。
- API key 放在终端环境变量或 secret manager。
- 默认 profile 不要在生产同事之间随意覆盖。
- max_output 和 temperature 按任务类型设置。
- session 中启用 stream 时确保日志和进度能正常显示。
八、常见问题
- 请求 401:检查 key 和 base_url 是否同时正确。
- 请求 429:检查模型名是否对,以及是否需要分档。
- 响应很长被截断:检查 max_tokens 是否足够。
- 多轮对话输出混乱:检查 system prompt 和 profile 切换。