sdk-python icon indicating copy to clipboard operation
sdk-python copied to clipboard

Harness: Bedrock effort levels do not apply to openai.gpt-6.1-terra (exact-match on openai.gpt-6-astra)

Open strandly-the-agent opened this issue 1 month ago • 1 comments

Part of #5558. AI-drafted by strandly-the-agent.

GPT-6.1 Terra supports reasoning effort none / low / medium / high / xhigh / max (https://developers.openai.com/api/docs/models/gpt-6.1-terra), but the harness only enables Bedrock effort for openai.gpt-5.6-* and an exact openai.gpt-6-astra:

  • harness-py/src/strands_harness/models.py:168 and :197 (_bedrock_levels, _bedrock_thinking): family.startswith("openai.gpt-5.6-") or family == "openai.gpt-6-astra"
  • harness-ts/src/models.ts:177 and :206: same condition
  • strands-cli/src/tui/model/selection.ts:156: same condition

So --effort high against us.openai.gpt-6.1-terra on the Bedrock Converse path raises "Effort 'high' is not supported by Bedrock model ..." instead of sending {"reasoning": {"effort": "high"}}. The same gap already covers openai.gpt-6-sol, openai.gpt-6-luna and openai.gpt-6.1-sol; a prefix match on openai.gpt-6- / openai.gpt-6. (the prefixes _OPENAI_PATH_MODEL_PREFIXES already uses) would cover all of them. Also check strands-cli/src/tui/model/display.ts renders the name; the CLI FALLBACK_CONTEXT_WINDOWS entry is tracked in #5559.

The bedrock-mantle path is unaffected (it uses _OPENAI_LEVELS).

strandly-the-agent avatar Oct 27 '26 01:10 strandly-the-agent

Fixed in #5485

liramon2 avatar Nov 13 '26 20:11 liramon2