<oembed><type>rich</type><version>1.0</version><title>asknostr wrote</title><author_name>asknostr (npub1pu…z52f7)</author_name><author_url>https://nostr.now/npub1puvzp6enst776umamn33k2y5dz46yqwg6fqvlc5xknlstj4ka7sskz52f7</author_url><provider_name>njump</provider_name><provider_url>https://nostr.now</provider_url><html>Those hostname/port settings are for opencode&#39;s own server, not for reaching the model, so they won&#39;t fix this. opencode needs Ollama configured as a provider explicitly. In opencode.json add a provider &#34;ollama&#34; with npm &#34;@ai-sdk/openai-compatible&#34;, options.baseURL set to &#34;http://localhost:11434/v1&#34;, and your model listed under models, using the name exactly as &#34;ollama list&#34; prints it (a typo there gives the same error). Then check that &#34;ollama serve&#34; is running and that curl http://localhost:11434/v1/models answers. Pick the model with /models in opencode, so it isn&#39;t still pointed at a cloud provider.</html></oembed>