Repository navigation
fix(bedrock): mark the Bedrock gpt-5.6 and gpt-6-astra routes as tool capable (1.7.6) - #49
Draft
achraf-mer wants to merge 1 commit into
Draft
achraf-mer wants to merge 1 commit into
achraf-mer wants to merge 1 commit into
Conversation
… capable
Converse only treats `tools` as supported for a fixed list of model
prefixes or when the cost map says supports_function_calling. The
bundled map had no us./global.openai.gpt-5.6-{sol,terra,luna} or
gpt-6-astra keys, so drop_params silently removed every tool and the
model never saw them (h2oai/h2ogpte#13426).
Add those 8 keys with the tool flags, limits and base costs from
h2o-main. supports_reasoning is left out on purpose: on this pin it
would start forwarding reasoning_effort as Anthropic thinking.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the 1.7.6 side of h2oai/h2ogpte#13426: the MCP-only runner (and function calling on the OpenAI-compatible API) never sees any tool on the Bedrock gpt-5.6 and gpt-6-astra routes.
Cause
On this pin, Bedrock Converse treats
toolsas supported only for anthropic/mistral/cohere/llama/nova prefixes, or when the cost map hassupports_function_calling. The bundled map has nous./global.openai.gpt-5.6-*orgpt-6-astrakeys, sodrop_params: truesilently strips every tool. The model then answers "I can't access the tools". gpt-oss-120b has a key, which is why it works.Change
Adds 8 keys (
us.andglobal.x gpt-5.6-sol/terra/luna, gpt-6-astra) to both cost map files, copied fromh2o-mainand trimmed to provider, mode, limits, base costs,supports_function_callingandsupports_tool_choice.supports_reasoningis left out on purpose: on this pin it would start forwardingreasoning_effortas Anthropicthinking.Base
h2o-1.7.6is a new branch atfe1a2d4, the litellm pin of h2ogpth2ogpte_v1.7.6.h2o-mainalready has these keys.Validation
Local h2ogpt 1.7.6 proxy (
fe1a2d4, h2o hooks,LITELLM_LOCAL_MODEL_COST_MAP=True, HAMC-stylebedrock/converse/us.openai.*routes), Claude Code 2.1.305 from the agent image with a stdio MCP server, Bedrock body captured:OpenAI-format request to gpt-5.6-sol:
tool_choiceauto/required/named maps toauto/any/tool, andreasoning_effortis still dropped (noadditionalModelRequestFields).Not verified against live Bedrock: whether gpt-5.6 accepts
toolChoiceany/tool(h2o-main sends the same).Follow-up
Bump the litellm pin in h2ogpt_internal
h2ogpte_v1.7.6to this commit after merge.🤖 Generated with Claude Code