[PR #2026] [MERGED] fix: normalize name path before splitting #10763

Closed
opened 2026-04-12 23:10:00 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2026
Author: @mxyng
Created: 1/17/2024
Status: Merged
Merged: 1/17/2024
Merged by: @mxyng

Base: mainHead: mxyng/fix-windows


📝 Commits (1)

  • 96cfb62 fix: normalize name path before splitting

📊 Changes

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

View changed files

📝 server/modelpath.go (+1 -0)

📄 Description

During pruning input to ParseModelPath is a file path which on Windows will cause the split to not work as expected. It's still necessary to split on / because the most common case is a URL path which is platform agnostic


🔄 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/2026 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 1/17/2024 **Status:** ✅ Merged **Merged:** 1/17/2024 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/fix-windows` --- ### 📝 Commits (1) - [`96cfb62`](https://github.com/ollama/ollama/commit/96cfb626415cd811ab545c134bd0d16fa7aca044) fix: normalize name path before splitting ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/modelpath.go` (+1 -0) </details> ### 📄 Description During pruning input to ParseModelPath is a file path which on Windows will cause the split to not work as expected. It's still necessary to split on `/` because the most common case is a URL path which is platform agnostic --- <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-12 23:10:00 -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#10763