Skip to content

fix: gate hosted tools for non-OpenAI models#64

Closed
nicko-ai wants to merge 1 commit into
mainfrom
codex/os-models-hosted-tools-gating
Closed

fix: gate hosted tools for non-OpenAI models#64
nicko-ai wants to merge 1 commit into
mainfrom
codex/os-models-hosted-tools-gating

Conversation

@nicko-ai

Copy link
Copy Markdown
Collaborator

Summary

  • Skip OpenAI hosted web-search tools when OpenSwarm is launched with a slash/provider model such as Ollama, OpenRouter, Anthropic, or LiteLLM.
  • Keep local tools and OpenAI-routed hosted web search unchanged.
  • Add a smoke script for hosted-tool gating across OpenAI and non-OpenAI routes.

Checks

  • python scripts/smoke-hosted-tools-gating.py
  • python scripts/smoke-bootstrap-onboard.py
  • python scripts/smoke-wheel-bootstrap.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

- add a shared OpenAI-provider helper that lazily creates hosted tools

- omit hosted web search for slash/provider models while preserving local tools

- add smoke coverage for OpenAI and non-OpenAI routes
@nicko-ai

Copy link
Copy Markdown
Collaborator Author

Closing as a duplicate draft. The replacement path is PR #67.

@nicko-ai nicko-ai closed this Jun 21, 2026
@nicko-ai nicko-ai deleted the codex/os-models-hosted-tools-gating branch June 23, 2026 01:43
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