[PR #8232] [CLOSED] Remove redundant image_url format check in fromChatRequest #23212

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8232
Author: @muzzlol
Created: 12/24/2024
Status: Closed

Base: mainHead: main


📝 Commits (2)

  • 2fe92ca openai: remove redundant image_url format check in fromChatRequest
  • b7eea92 Merge remote-tracking branch 'upstream/main'

📊 Changes

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

View changed files

📝 openai/openai.go (+8 -8)

📄 Description

Improves the fromChatRequest function by removing redundant checks for Ollama's direct string format and improving error messages for better debugging.

Summary of changes:

  • Removed the redundant check for image_url in Ollama format.
  • Clarified and enhanced error messages in the conversion logic.

🔄 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/8232 **Author:** [@muzzlol](https://github.com/muzzlol) **Created:** 12/24/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`2fe92ca`](https://github.com/ollama/ollama/commit/2fe92ca113ee95e60004d2781746d7cdfe7ee565) openai: remove redundant image_url format check in fromChatRequest - [`b7eea92`](https://github.com/ollama/ollama/commit/b7eea9229316048b6be6e07136498180d61579bc) Merge remote-tracking branch 'upstream/main' ### 📊 Changes **1 file changed** (+8 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `openai/openai.go` (+8 -8) </details> ### 📄 Description Improves the `fromChatRequest` function by removing redundant checks for Ollama's direct string format and improving error messages for better debugging. Summary of changes: - Removed the redundant check for `image_url` in Ollama format. - Clarified and enhanced error messages in the conversion logic. --- <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 16:50:25 -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#23212