fix(provider): prevent async runtime panic during model refresh (#4261)

Wrap `fetch_live_models_for_provider` calls in
`tokio::task::spawn_blocking` so the `reqwest::blocking::Client`
is created and dropped on a dedicated thread pool instead of
inside the async Tokio context. This prevents the
"Cannot drop a runtime in a context where blocking is not allowed"
panic when running `models refresh --provider openai`.

Closes #4253
This commit is contained in:
Argenis
2026-03-22 14:22:47 -04:00
committed by Roman Tataurov
parent 016021f02f
commit 3d7f588f82

Diff Content Not Available