Skip to content

Commit 7fe778f

Browse files
authored
Merge dev
feat: update doc
2 parents 16c9caf + 59168aa commit 7fe778f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.zh-CN.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ npx @jeffreycao/copilot-api@latest start --claude-code
611611
"CLAUDE_CODE_ATTRIBUTION_HEADER": "0",
612612
"CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION": "false",
613613
"CLAUDE_CODE_DISABLE_TERMINAL_TITLE": "true",
614+
"CLAUDE_CODE_ENABLE_AWAY_SUMMARY": "0",
614615
"CLAUDE_PLUGIN_ENABLE_QUESTION_RULES": "true"
615616
},
616617
"permissions": {
@@ -624,7 +625,7 @@ npx @jeffreycao/copilot-api@latest start --claude-code
624625
625626
- 请根据需要替换 `ANTHROPIC_MODEL``ANTHROPIC_DEFAULT_OPUS_MODEL``ANTHROPIC_DEFAULT_SONNET_MODEL``ANTHROPIC_DEFAULT_HAIKU_MODEL`。配置完成后,请安装 claude code 插件,见 [插件集成](#plugin-integrations)。如果你配置的是 Claude 模型,建议把这些模型配置都设为相同,以保持与 github-copilot claude agent 行为一致。
626627
- 将 `CLAUDE_CODE_ATTRIBUTION_HEADER` 设为 `0` 可以阻止 Claude Code 在 system prompt 中附加计费和版本信息,从而避免 prompt cache 失效。
627-
- 关闭 `CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION` 可以避免不必要地消耗额度。
628+
- 关闭 `CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION` `CLAUDE_CODE_ENABLE_AWAY_SUMMARY` 可以避免不必要地消耗额度。
628629
- `permissions` 中禁止 `WebSearch`,因为 GitHub Copilot API 不支持原生 web search(部分 gpt 模型支持 websearch,但本项目目前尚未适配);建议安装 mcp 的 `mcp_server_fetch` 工具或其他搜索工具作为替代。
629630
- 如果使用的不是 Claude 模型,请不要启用 `ENABLE_TOOL_SEARCH`。如果使用的是 Claude 模型,则可以启用 `ENABLE_TOOL_SEARCH`。当前 Claude Code 使用的是客户端 tool search 模式,在该模式下每次加载 defer tools 都需要额外请求一次。
630631

0 commit comments

Comments
 (0)