[PR #1227] [MERGED] update python client create example #21058

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1227
Author: @BruceMacD
Created: 11/21/2023
Status: Merged
Merged: 11/27/2023
Merged by: @BruceMacD

Base: mainHead: brucemacd/python-create


📝 Commits (3)

📊 Changes

1 file changed (+67 additions, -9 deletions)

View changed files

📝 api/client.py (+67 -9)

📄 Description

When we updated our CLI to upload modelfile contents directly to the ollama server we missed updating the python example client. This change brings the logic in the python client in-line with our Go client


🔄 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/1227 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 11/21/2023 **Status:** ✅ Merged **Merged:** 11/27/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/python-create` --- ### 📝 Commits (3) - [`b933db9`](https://github.com/ollama/ollama/commit/b933db98ceff629719a71e2cff11376d0cd9cbd1) add remote create to python example client - [`b2982e3`](https://github.com/ollama/ollama/commit/b2982e3319f8adac9dd22fc89f6ecdbb3fae09fd) remove type hints - [`11eebbd`](https://github.com/ollama/ollama/commit/11eebbd4758fe17a6562c65731c7fb3177149101) PR feedback ### 📊 Changes **1 file changed** (+67 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `api/client.py` (+67 -9) </details> ### 📄 Description When we updated our CLI to upload modelfile contents directly to the ollama server we missed updating the python example client. This change brings the logic in the python client in-line with our Go client --- <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:25:04 -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#21058