Skip to content

Replace hardcoded default model with dynamic Ollama detection#184

Open
bussyjd wants to merge 1 commit intomainfrom
fix/dynamic-ollama-model-defaults
Open

Replace hardcoded default model with dynamic Ollama detection#184
bussyjd wants to merge 1 commit intomainfrom
fix/dynamic-ollama-model-defaults

Conversation

@bussyjd
Copy link
Collaborator

@bussyjd bussyjd commented Feb 18, 2026

Summary

  • Remove hardcoded gpt-oss:120b-cloud default model (does not exist) from OpenClaw overlay and llmspy config
  • Add listOllamaModels() to query the host's Ollama for actually pulled models during SetupDefault()
  • Populate the OpenClaw overlay with real available models; set agentModel to the first one
  • When Ollama has no models pulled, deploy with empty model list and guide users to obol model setup or ollama pull
  • Update llmspy llms.json default model from gpt-oss:120b-cloud to empty string

Test plan

  • go test ./... passes
  • With Ollama running and models pulled: obol stack up deploys OpenClaw with detected models in overlay
  • With Ollama running but no models: deploys with empty model list, prints guidance
  • Without Ollama: skips OpenClaw setup, prints guidance to run obol model setup

The default model gpt-oss:120b-cloud does not exist and caused OpenClaw
to deploy with a non-functional model configuration. Instead, query the
host's Ollama server for actually available models and use those in the
overlay. When no models are pulled, deploy with an empty model list and
guide users to `obol model setup` or `ollama pull`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments