[PR #5695] [MERGED] server: lowercase roles for compatibility with clients #11888

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5695
Author: @jmorganca
Created: 7/15/2024
Status: Merged
Merged: 7/15/2024
Merged by: @jmorganca

Base: mainHead: jmorganca/lowercase-roles


📝 Commits (3)

  • f08810f server: lowercase roles for compatibility with clients
  • ca074e6 add test
  • 90247bf fix test output

📊 Changes

2 files changed (+37 additions, -2 deletions)

View changed files

📝 api/types.go (+14 -2)
📝 api/types_test.go (+23 -0)

📄 Description

Fixes https://github.com/ollama/ollama/issues/5687. Note: we may first want to make sure that there are no cases where roles may be uppercase.


🔄 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/5695 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 7/15/2024 **Status:** ✅ Merged **Merged:** 7/15/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/lowercase-roles` --- ### 📝 Commits (3) - [`f08810f`](https://github.com/ollama/ollama/commit/f08810f243bef596d6c4a892c478820e4caa07c4) server: lowercase roles for compatibility with clients - [`ca074e6`](https://github.com/ollama/ollama/commit/ca074e62319257283293657bf483012b152304e3) add test - [`90247bf`](https://github.com/ollama/ollama/commit/90247bf772d4d98d5f9834071f85af907e3d8aea) fix test output ### 📊 Changes **2 files changed** (+37 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+14 -2) 📝 `api/types_test.go` (+23 -0) </details> ### 📄 Description Fixes https://github.com/ollama/ollama/issues/5687. Note: we may first want to make sure that there are no cases where roles may be uppercase. --- <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:41:53 -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#11888