[PR #743] [MERGED] handle upstream proxies #20849

Closed
opened 2026-04-19 15:16:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: mainHead: mxyng/http-proxy


📝 Commits (2)

📊 Changes

3 files changed (+58 additions, -45 deletions)

View changed files

📝 api/client.go (+36 -34)
📝 cmd/cmd.go (+10 -10)
📝 server/images.go (+12 -1)

📄 Description

http.ProxyFromEnvironment returns the appropriate *_PROXY for the request. e.g. HTTP_PROXY for http:// requests, HTTPS_PROXY for https:// requests.

Resolves #729


🔄 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/743 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 10/9/2023 **Status:** ✅ Merged **Merged:** 10/10/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/http-proxy` --- ### 📝 Commits (2) - [`f6e9833`](https://github.com/ollama/ollama/commit/f6e98334e44298601a31d15984c4c1f2e71e3a33) handle upstream proxies - [`2cfffea`](https://github.com/ollama/ollama/commit/2cfffea02eb2b9118848955177c2557d0c61ddbe) handle client proxy ### 📊 Changes **3 files changed** (+58 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+36 -34) 📝 `cmd/cmd.go` (+10 -10) 📝 `server/images.go` (+12 -1) </details> ### 📄 Description `http.ProxyFromEnvironment` returns the appropriate `*_PROXY` for the request. e.g. `HTTP_PROXY` for `http://` requests, `HTTPS_PROXY` for `https://` requests. Resolves #729 --- <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-19 15:16:54 -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#20849