Skip to content

feat: OpenRouter provider and shared LiteLLM json_object allowlist#25

Merged
harshuljain13 merged 5 commits into
mainfrom
feat/openrouter-json-object-response-format
May 23, 2026
Merged

feat: OpenRouter provider and shared LiteLLM json_object allowlist#25
harshuljain13 merged 5 commits into
mainfrom
feat/openrouter-json-object-response-format

Conversation

@Abhishek-Khanna24

@Abhishek-Khanna24 Abhishek-Khanna24 commented May 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add OpenRouter as a first-class YAML provider (llm_provider_name: openrouter) with OPENROUTER_API_KEY, LiteLLM openrouter/ model strings, and an open model catalog (same pattern as vLLM).
  • Introduce json_object_response_format as the single source of truth for which LiteLLM backends get OpenAI-style response_format: json_object (includes OpenRouter), and wire LangGraph + ADK capability metadata accordingly.
  • Document the env var in env.example and extend unit tests for OpenRouter and the shared allowlist.

Test plan

  • pipenv run pytest tests/unit/agent_framework/configs/test_llm_provider_config.py -v
  • Configure OPENROUTER_API_KEY and smoke-test an agent with llm_provider_name: openrouter and a valid OpenRouter model slug on LangGraph and/or ADK.

Made with Cursor

Abhishek-Khanna24 and others added 4 commits May 14, 2026 23:46
Centralize OpenAI-style response_format providers for LangGraph/ADK parity,
register openrouter in LLM config with OPENROUTER_API_KEY, and extend
engine capability sets and tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Qwen 2.5: adds qwen-2.5-72b-instruct, qwen-2.5-7b-instruct-fp16, and
  qwen-2.5-coder-32b-instruct to Groq provider
- Claude Haiku 4.5: adds claude-haiku-4-5 (→ claude-haiku-4-5-20251001)
  to the Claude provider
- GPT-5: already present in OpenAI provider (confirmed)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
New models added to existing providers:
- OpenAI: o4-mini, gpt-4.5-preview
- Groq: llama-4-scout-17b-16e-instruct, llama-4-maverick-17b-128e-instruct

New provider:
- DeepSeek: deepseek-chat (V3) and deepseek-reasoner (R1) via DeepSeek API
  Set DEEPSEEK_API_KEY to use.

Note: GPT-5.5 does not exist yet — GPT-5 and o4-mini cover the latest
OpenAI frontier.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Azure hosts OpenAI models behind a private endpoint. The llm_model value
is the Azure deployment name (user-defined in Azure AI Studio), so the
model list is open — any deployment name is accepted via LLMModel._missing_.

Required env vars: AZURE_API_KEY, AZURE_API_BASE, AZURE_API_VERSION.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@harshuljain13

harshuljain13 commented May 15, 2026

Copy link
Copy Markdown
Collaborator

@Abhishek-Khanna24 Can we create a github issue to update the Readme.md and Documentation ? Also need to update the webapp.

@harshuljain13 harshuljain13 self-assigned this May 15, 2026
feat: add new LLM models and providers — Qwen 2.5, Claude Haiku 4.5, o4-mini, Llama 4, DeepSeek, Azure
@harshuljain13
harshuljain13 merged commit 6ccfd31 into main May 23, 2026
7 checks passed
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.

2 participants