AIX: Anthropic: disable sticky execution continuity from simple prior container presence. #1087

This commit is contained in:
Enrico Ros
2026-04-28 19:25:08 -07:00
parent e5de61d682
commit ed4edd7c0b
@@ -47,13 +47,15 @@ export function aixAnthropicHostedFeatures(model: AixAPI_Model, chatGenerate: Ai
// [Anthropic, issue #1087] Dynamic web tools (20260209) have INTERNAL code execution. We do not // [Anthropic, issue #1087] Dynamic web tools (20260209) have INTERNAL code execution. We do not
// explicitly add the code_execution tool nor the beta header for them: Anthropic enables what is // explicitly add the code_execution tool nor the beta header for them: Anthropic enables what is
// needed implicitly behind the scenes. Adding our own creates two execution environments and // needed implicitly behind the scenes.
// confuses the model (e.g. bash searches for inlined attachments, web tools called from scripts
// without `allowed_callers` permission, runaway tool loops).
return { return {
disableAllHostedTools: !!(_hasAixCustomTools && _hasAixToolRestrictivePolicy), disableAllHostedTools: !!(_hasAixCustomTools && _hasAixToolRestrictivePolicy),
enable1MContext: model.vndAnt1MContext === true, enable1MContext: model.vndAnt1MContext === true,
enableCodeExecution: !!model.vndAntSkills || !!model.vndAntContainerId || programmaticToolCalling, enableCodeExecution:
!!model.vndAntSkills ||
// || hasDynamicWebTools // https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools#dynamic-filtering-with-code-execution
// || !!model.vndAntContainerId // do not re-enable code execution jsut for continuity - would have parasitic effects: https://github.com/enricoros/big-AGI/issues/1087#issuecomment-4340352958
programmaticToolCalling,
enableFastMode: model.vndAntInfSpeed === 'fast', enableFastMode: model.vndAntInfSpeed === 'fast',
enableSkills: !!model.vndAntSkills, enableSkills: !!model.vndAntSkills,
enableStrictOutputs: !!model.strictJsonOutput || !!model.strictToolInvocations, enableStrictOutputs: !!model.strictJsonOutput || !!model.strictToolInvocations,