* @brief Updates the local-model base URL and triggers a fresh model query. */
| 837 | * @brief Updates the local-model base URL and triggers a fresh model query. |
| 838 | */ |
| 839 | void AI::Assistant::setLocalBaseUrl(const QString& url) |
| 840 | { |
| 841 | if (auto* lp = dynamic_cast<LocalProvider*>(m_local.get())) { |
| 842 | lp->setBaseUrl(url); |
| 843 | Q_EMIT keysChanged(); |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | /** |
| 848 | * @brief Re-queries the local model list (typically after the user edits the URL). |
nothing calls this directly
no test coverage detected