name: supported-model-update description: Run this to update supported models disable-model-invocation: true
Update SupportedModelOpenAI, SupportedModelGemini, and SupportedModelAnthropic in src/interop_router/types.py based on the installed package type definitions.
OpenAI instructions
- Read the OpenAI models from two files to find any latest models
ai_working/openai-python/src/openai/types/shared/chat_model.py- theChatModelLiteralai_working/openai-python/src/openai/types/shared_params/responses_model.py- the additional models in theResponsesModelLiteral (excludingstrandChatModel)
- Update the
SupportedModelOpenAItype alias insrc/interop_router/types.py, based on these rules.- Any newer models. For example, if gpt-5.1 is already in our supported models, but gpt-5.2 is in the OpenAI package, add gpt-5.2.
- Do not add in older models.
- Read the OpenAI models from two files to find any latest models
Gemini instructions
- Read the Gemini models from
ai_working/python-genai/google/genai/_interactions/types/model.py. Use these forSupportedModelGemini. - Update the
SupportedModelGeminitype alias insrc/interop_router/types.py, based on these rules.- Any newer models. For example, if gemini-2.5 is already in our supported models, but gemini-3 is in the Gemini package, add gemini-3.
- Do not add in older models.
- Do not add text to speech or audio specific models like
gemini-2.5-pro-preview-ttsorgemini-2.5-flash-preview-native-audio-dialog - Do not add the image models separately like
gemini-3-pro-image-previewsince they are included as part tool calling for the text model.
- Read the Gemini models from
Anthropic instructions
- Read the Anthropic models from
ai_working/anthropic-sdk-python/src/anthropic/types/model_param.py- theModelParamUnion (excludingstr) - Update the
SupportedModelAnthropictype alias insrc/interop_router/types.py, based on these rules.- Any newer models. For example, if claude-sonnet-4-5 is already in our supported models, but claude-sonnet-4-6 is in the Anthropic package, add claude-sonnet-4-6.
- Do not add in older models.
- Read the Anthropic models from
NOTE: We might have to add some models manually. These should be denoted with a comment and not overwritten.
- Run checks:
uv run ruff format && uv run ruff check --fix && uv run ty check. Only fix issues related to the changes you just made.