Skip to content

fix: gate hosted tools by provider route#67

Open
nicko-ai wants to merge 1 commit into
mainfrom
codex/hosted-tools-provider-gate
Open

fix: gate hosted tools by provider route#67
nicko-ai wants to merge 1 commit into
mainfrom
codex/hosted-tools-provider-gate

Conversation

@nicko-ai

Copy link
Copy Markdown
Collaborator

Summary

  • keep OpenAI hosted WebSearchTool only on direct OpenAI model routes
  • omit hosted tools for provider-routed models such as LiteLLM/Ollama/OpenRouter
  • add a smoke check that covers OpenAI and non-OpenAI routes

QA

  • python scripts/smoke-hosted-tools-gating.py
  • python -m py_compile config.py data_analyst_agent/data_analyst_agent.py deep_research/deep_research.py docs_agent/docs_agent.py slides_agent/slides_agent.py virtual_assistant/virtual_assistant.py scripts/smoke-hosted-tools-gating.py
  • git diff --check

- attach OpenAI hosted tools only for direct OpenAI model routes

- preserve local tools for provider-routed models

- add a smoke check for OpenAI and non-OpenAI routes
@nicko-ai nicko-ai marked this pull request as ready for review June 22, 2026 18:25
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