Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions acp_adapter/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,11 @@ def _make_agent(
"session_id": session_id,
"session_db": self._get_db(),
"model": model or default_model,
"fallback_model": (

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

model_cfg is config.get("model"), but fallback configuration is top-level. This will remain None for normal fallback_providers: config; use the full config with get_fallback_chain(config) instead.

(model_cfg.get("fallback_providers") or model_cfg.get("fallback_model"))
if isinstance(model_cfg, dict)
else None
),
}

try:
Expand Down