[PR #859] [MERGED] fix: ollama host for hostname #15632

Closed
opened 2026-04-16 05:03:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/859
Author: @mxyng
Created: 10/20/2023
Status: Merged
Merged: 10/20/2023
Merged by: @mxyng

Base: mainHead: mxyng/fix-hostname


📝 Commits (1)

  • 459f4a7 fix: ollama host for hostname

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 api/client.go (+3 -1)

📄 Description

This fixes the client when setting OLLAMA_HOST to just the hostname, e.g. OLLAMA_HOST=myhost. OLLAMA_HOST=myhost:11434 currently works as does OLLAMA_HOST=127.0.0.1 and OLLAMA_HOST=127.0.0.1:11434


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/859 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 10/20/2023 **Status:** ✅ Merged **Merged:** 10/20/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/fix-hostname` --- ### 📝 Commits (1) - [`459f4a7`](https://github.com/ollama/ollama/commit/459f4a7889f4acf30ef2542287becf2308ff51ef) fix: ollama host for hostname ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+3 -1) </details> ### 📄 Description This fixes the client when setting `OLLAMA_HOST` to just the hostname, e.g. `OLLAMA_HOST=myhost`. `OLLAMA_HOST=myhost:11434` currently works as does `OLLAMA_HOST=127.0.0.1` and `OLLAMA_HOST=127.0.0.1:11434` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 05:03:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#15632