Commit 1ecd84e
committed
fix: fetch models before opening model picker
The /models command was showing 'No models available' even when
the user was logged in because available_models() only returns
cached models. The cache was never populated because fetch_models()
was not called before opening the picker.
This fix ensures fetch_models() is called first to populate the
cache from the backend API before the model picker modal is opened.1 parent a06e511 commit 1ecd84e
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
394 | 412 | | |
395 | 413 | | |
396 | 414 | | |
| |||
0 commit comments