mirror of
https://github.com/usestrix/strix.git
synced 2026-08-17 01:29:42 +02:00
OpenAI's Responses API rejects tools[i].type="custom" on non-reasoning models like gpt-4o (400 with code=unknown_parameter, param=tools). Strix's SDK-native Filesystem capability registers CustomTool entries by default, so a bare STRIX_LLM=gpt-4o run failed at the first tool invocation even though warm-up (a tool-less call) succeeded. uses_chat_completions_tool_schema now consults litellm.model_cost[<name>].supports_reasoning for OpenAI routes and flips to the chat-completions function-tool schema for models that don't carry the reasoning flag. Same registry-lookup pattern as is_known_openai_bare_model. Non-OpenAI prefixes and configs with LLM_API_BASE are unchanged (still function tools).