Anthropic tool_choice passthrough fix
Fixed _build_params in AnthropicCompatibleProvider so that tool_choice is properly converted from OpenAI format to Anthropic format and included in API requests.
Changes
anthropic_compat.py:tool_choiceis now popped separately from kwargs and converted via_convert_tool_choice()to Anthropic-native format before being added to request params. Previously it was silently dropped because it was not in the_allowedkeyword set._convert_tool_choice(): New method that maps OpenAI-formattool_choice("required",{"type": "function", ...}) to Anthropic-format ({"type": "any"},{"type": "tool", "name": "..."}). Already-Anthropic-format values pass through unchanged.minimax.py: No changes needed — MiniMax uses the Anthropic SDK natively, so it benefits automatically from the base class fix.