豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 8b7c6ec

Browse files
authored
Add Claude 4.6 prompt optimization A/B test configurations (#4316)
* Add Claude 4.6 prompt optimization A/B test configurations Implement three-way prompt optimization experiment for Claude 4.6 models: - Control: existing Claude46DefaultPrompt (no change) - Combined: single optimized prompt for both Opus and Sonnet with moderate exploration guidance - Split: separate Opus-specific (bounded exploration) and Sonnet-specific (full persistence) prompts * Optimize Claude 4.6 prompt configurations with type adjustments and conditional rendering for tool instructions
1 parent d157fc6 commit 8b7c6ec

File tree

5 files changed

+325
-3
lines changed

5 files changed

+325
-3
lines changed

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3681,6 +3681,20 @@
36813681
"clear-both"
36823682
]
36833683
},
3684+
"github.copilot.chat.anthropic.promptOptimization": {
3685+
"type": "string",
3686+
"default": "control",
3687+
"markdownDescription": "%github.copilot.config.anthropic.promptOptimization%",
3688+
"tags": [
3689+
"experimental",
3690+
"onExp"
3691+
],
3692+
"enum": [
3693+
"control",
3694+
"combined",
3695+
"split"
3696+
]
3697+
},
36843698
"github.copilot.chat.responsesApiReasoningEffort": {
36853699
"type": "string",
36863700
"default": "default",

package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@
333333
"copilot.toolSet.web.description": "Fetch information from the web",
334334
"github.copilot.config.useMessagesApi": "Use the Messages API instead of the Chat Completions API when supported.",
335335
"github.copilot.config.anthropic.contextEditing.mode": "Select the context editing mode for Anthropic models. Automatically manages conversation context as it grows, helping optimize costs and stay within context window limits.\n\n- `off`: Context editing is disabled.\n- `clear-thinking`: Clears thinking blocks while preserving tool uses.\n- `clear-tooluse`: Clears tool uses while preserving thinking blocks.\n- `clear-both`: Clears both thinking blocks and tool uses.\n\n**Note**: This is an experimental feature. Context editing may cause additional cache rewrites. Enable with caution.",
336+
"github.copilot.config.anthropic.promptOptimization": "Prompt optimization mode for Claude 4.6 models.\n\n- `control`: Uses the current default prompt (no changes).\n- `combined`: Uses a single optimized prompt for both Opus and Sonnet.\n- `split`: Uses separate optimized prompts for Opus (bounded exploration) and Sonnet (full persistence).\n\n**Note**: This is an experimental feature for A/B testing prompt configurations.",
336337
"github.copilot.config.anthropic.toolSearchTool.enabled": "Enable tool search tool for Anthropic models. When enabled, tools are dynamically discovered and loaded on-demand using natural language search, reducing context window usage when many tools are available.",
337338
"github.copilot.config.anthropic.toolSearchTool.mode": "Controls how tool search works for Anthropic models. 'server' uses Anthropic's built-in regex-based tool search. 'client' uses local embeddings-based semantic search for more accurate tool discovery.",
338339
"github.copilot.config.useResponsesApi": "Use the Responses API instead of the Chat Completions API when supported. Enables reasoning and reasoning summaries.\n\n**Note**: This is an experimental feature that is not yet activated for all users.\n\n**Important**: URL API path resolution for custom OpenAI-compatible and Azure models is independent of this setting and fully determined by `url` property of `#github.copilot.chat.customOAIModels#` or `#github.copilot.chat.azureModels#` respectively.",

0 commit comments

Comments
 (0)