feat: implement capability-aware routing for OpenAI Responses API, enhancing model selection and error handling for unsupported tools

This commit is contained in:
Musa 2026-02-25 13:45:44 -08:00
parent eed196bc81
commit 2210f69db0
No known key found for this signature in database
8 changed files with 189 additions and 39 deletions

View file

@ -7,22 +7,22 @@ listeners:
model_providers:
# OpenAI Models
- model: openai/gpt-5-2025-08-07
- model: openai/gpt-5.3-codex
default: true
access_key: $OPENAI_API_KEY
routing_preferences:
- name: code generation
description: generating new code snippets, functions, or boilerplate based on user prompts or requirements
- model: openai/gpt-4.1-2025-04-14
- model: openai/gpt-5-2025-08-07
access_key: $OPENAI_API_KEY
routing_preferences:
- name: code understanding
description: understand and explain existing code snippets, functions, or libraries
# Anthropic Model
- model: anthropic/claude-sonnet-4-6
access_key: $ANTHROPIC_API_KEY
# # Anthropic Model
# - model: anthropic/claude-sonnet-4-6
# access_key: $ANTHROPIC_API_KEY
# Ollama Model (optional local fallback)
- model: ollama/llama3.1
@ -32,7 +32,7 @@ model_providers:
model_aliases:
# Default model Codex should request when launched by planoai cli-agent codex
arch.codex.default:
target: gpt-5-2025-08-07
target: gpt-5.3-codex
tracing:
random_sampling: 100