Skip to content

fix: read OLLAMA_HOST when its scheme is not lowercase - #12

Merged
VikramLex merged 1 commit into
Graphicle-AI:mainfrom
rudycelekli:fix/ollama-host-scheme
Oct 26, 2026
Merged

VikramLex merged 1 commit into
Graphicle-AI:mainfrom
rudycelekli:fix/ollama-host-scheme

Conversation

@rudycelekli

Copy link
Copy Markdown
Contributor

Summary

  • OLLAMA_HOST=HTTP://… was rejected because the scheme match was case-sensitive.
  • graphicle config set model ollama then saved http://127.0.0.1:11434 instead of that host. Schemes are matched case-insensitively, the same way RFC 3986 defines them.

Test plan

  • On current main, cargo test --lib -- ollama_host_is_read_as_ollama_reads_it fails: HTTP://gpu.lan:11434 returns None.
  • After this change the same test passes, including HTTP://, Https://, and an IPv6 host.
  • OLLAMA_HOST=HTTP://gpu.lan:11434 graphicle config set model ollama writes http://gpu.lan:11434.

Made with Cursor

HTTP://gpu.lan:11434 is the same server as http://gpu.lan:11434.
The scheme was matched case-sensitively, so the value was rejected and
graphicle config set model ollama saved http://127.0.0.1:11434 instead.

Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
@VikramLex
VikramLex merged commit d3c5e23 into Graphicle-AI:main Oct 26, 2026
11 checks passed
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.

2 participants