fix(team): qualify fallback session model as well

Apply qualify_for_provider to the session model fallback too so
the custom-openai prefix is added to bare model names from config.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
TheArchitectit 2026-06-17 13:19:19 -05:00
parent a27e9c5ff9
commit f9bd60d1c1
1 changed files with 1 additions and 1 deletions

View File

@ -5645,7 +5645,7 @@ fn resolve_agent_model(model: Option<&str>) -> String {
// the same provider the user is actually connected with, rather than the
// hard-coded DEFAULT_AGENT_MODEL (which may not exist on a custom endpoint).
if let Some(session_model) = load_main_model_from_config() {
return session_model;
return qualify_for_provider(&session_model);
}
DEFAULT_AGENT_MODEL.to_string()
}