Fix model provider lookup for TUI history (#49171)

Read `model_provider` from the effective configuration's nested `config`
field in `history_model_provider`, retaining the `openai` fallback.

GitOrigin-RevId: 06a8b3da1b499e673f80b8827951020c469c3970
This commit is contained in:
Eric Traut
2026-09-29 05:10:13 +00:00
committed by copyberry
parent fbc169827e
commit c248f6d48b
@@ -58,6 +58,7 @@ impl AppServerSession {
.await?
.map(|config| {
config
.config
.model_provider
.unwrap_or_else(|| "openai".to_string())
}))