Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.
Python agentsai-hackingai-penetration-testingai-pentestingai-securityartificial-intelligencebug-bountycode-qualityctf-toolscybersecuritycybersecurity-toolsethical-hackinghackingllm-securityoffensive-securitypenetration-testingpentesting-toolsred-teamingsecuritysecurity-automation
Use function-tool schema for non-reasoning OpenAI models
0xallamdcf3155a9a80
diff --git a/strix/config/models.py b/strix/config/models.pyindex b6867433..7b18c907 100644--- a/strix/config/models.py+++ b/strix/config/models.py@@ -117,7 +117,17 @@ def uses_chat_completions_tool_schema(model_name: str, settings: Settings) -> bomodel = model_name.strip().lower()if "/" in model and not model.startswith("openai/"):return True- return bool(settings.llm.api_base)+ if settings.llm.api_base:+ return True+ return not _supports_responses_custom_tools(model_name)+++def _supports_responses_custom_tools(model_name: str) -> bool:+ import litellm++ name = model_name.strip().lower().removeprefix("openai/")+ entry = litellm.model_cost.get(name) or {}+ return bool(entry.get("supports_reasoning"))def is_known_openai_bare_model(model_name: str) -> bool: