Skip to content

fix: add ToolSupport to legacy OpenAI/xAI models#232

Merged
Kamilbenkirane merged 1 commit intofeat/unified-tools-parameterfrom
fix/225-model-tool-declarations
Mar 25, 2026
Merged

fix: add ToolSupport to legacy OpenAI/xAI models#232
Kamilbenkirane merged 1 commit intofeat/unified-tools-parameterfrom
fix/225-model-tool-declarations

Conversation

@Kamilbenkirane
Copy link
Member

Summary

  • Added TextParameter.TOOLS: ToolSupport(tools=[]) to 4 legacy models that support tool calling but were missing the declaration:
    • gpt-4-turbo, gpt-4, gpt-3.5-turbo (OpenAI)
    • grok-2-vision-1212 (xAI)
  • These models support function calling via their APIs but didn't advertise it in model metadata
  • ToolSupport(tools=[]) means "no built-in server tools, user-defined function tools are fine" — this is correct for legacy models that don't have native web search

Test plan

  • 513 unit tests pass
  • All pre-commit/pre-push hooks pass

Fixes #225

gpt-4-turbo, gpt-4, gpt-3.5-turbo, and grok-2-vision-1212 all support
tool calling but were missing TextParameter.TOOLS in their parameter
constraints. Added ToolSupport(tools=[]) so they properly advertise
tool support in model metadata.

Fixes #225
@claude
Copy link

claude bot commented Mar 25, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@Kamilbenkirane Kamilbenkirane merged commit 12d8bbc into feat/unified-tools-parameter Mar 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant