code-verify off (cold settings paths; dynamic_cast is one-shot per user action) * @brief Returns the configured base URL of the local model provider. */
| 826 | * @brief Returns the configured base URL of the local model provider. |
| 827 | */ |
| 828 | QString AI::Assistant::localBaseUrl() const |
| 829 | { |
| 830 | if (auto* lp = dynamic_cast<LocalProvider*>(m_local.get())) |
| 831 | return lp->baseUrl(); |
| 832 | |
| 833 | return LocalProvider::defaultBaseUrl(); |
| 834 | } |
| 835 | |
| 836 | /** |
| 837 | * @brief Updates the local-model base URL and triggers a fresh model query. |