mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-23 11:18:08 +00:00
* fix(ollama): skip auto-discovery for remote/cloud base URLs When the Ollama provider base URL points to a remote/cloud instance (e.g. ollama.com), the plugin should not auto-discover all available models via /api/tags. Cloud instances are shared tenants where the provider manages the model catalog; users should only get models they explicitly configure. - Add remote-baseUrl guard in resolveOllamaDiscoveryResult - Local/loopback URLs still auto-discover as before - Remote URLs with explicit models return only those models - Remote URLs without explicit models return null (skip discovery) - Add tests covering remote guard, explicit models, and local fallback * fix ollama cloud discovery ci * fix(ollama): narrow discovery guard to hosted Ollama Cloud only The previous guard blocked auto-discovery for ALL remote base URLs without explicit models. This was too broad — it also blocked self-hosted Ollama instances at custom domains (e.g., https://ollama.mycompany.com). Replace the !isLocalOllamaBaseUrl() check with a targeted isHostedOllamaCloud() check that only matches *.ollama.com hostnames. Remote self-hosted Ollama endpoints now correctly auto-discover as before. Add isHostedOllamaCloud() helper with unit tests and a regression test confirming remote self-hosted URLs still auto-discover. * fix(ollama): ensure models array in explicit-models return path * fix(ollama): replace deprecated config-types import with local type The openclaw/plugin-sdk/config-types subpath is deprecated and flagged by the CI architecture check. Replace it with a local OllamaProviderConfigInput type alias defined from non-deprecated provider-model-shared exports. - discovery-shared.ts: define OllamaProviderConfigInput locally - provider-base-url.ts: define OllamaProviderConfigInput locally - Both files: remove import from openclaw/plugin-sdk/config-types * chore(ollama): drop unrelated formatting churn