Skip to content

feat: add any-llm model support with responses-compatible routing#2706

Merged
seratch merged 3 commits into
mainfrom
feat/any-llm-model-support
Mar 25, 2026
Merged

feat: add any-llm model support with responses-compatible routing#2706
seratch merged 3 commits into
mainfrom
feat/any-llm-model-support

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented Mar 18, 2026

This pull request adds an any-llm (https://github.com/mozilla-ai/any-llm) model adapter under src/agents/extensions/models/, wires it into MultiProvider, and adds matching examples and tests. It also fixes the adapter's Responses request shaping so OpenAI-backed AnyLLMModel calls can use the Responses API without failing (=the upstream ResponsesParams validation failure) when SDK transport kwargs such as extra_headers are present.

The change includes a new AnyLLMModel and AnyLLMProvider, optional dependency wiring in pyproject.toml and uv.lock, and new model-provider examples in examples/model_providers/. It also updates the LiteLLM examples to use OpenRouter-based defaults.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 60ef6b99c3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/models/test_any_llm_model.py
Comment thread src/agents/extensions/models/any_llm_model.py Outdated
@seratch seratch added this to the 0.14.x milestone Mar 19, 2026
@seratch seratch modified the milestones: 0.14.x, 0.15.x, 0.13.x Mar 20, 2026
@seratch seratch force-pushed the feat/any-llm-model-support branch from 2dcc4c5 to 2b83eee Compare March 25, 2026 02:26
@seratch seratch merged commit 1c0ff59 into main Mar 25, 2026
9 checks passed
@seratch seratch deleted the feat/any-llm-model-support branch March 25, 2026 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant