[PR #12447] [MERGED] fix: make content parameter optional in OpenAI chat completion API endpoint #9711

Closed
opened 2025-11-11 18:29:31 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/12447
Author: @floriankick
Created: 4/4/2025
Status: Merged
Merged: 4/4/2025
Merged by: @tjbck

Base: devHead: fix-openai-api-empty-message-after-tool-call


📝 Commits (1)

  • ec3435d make content parameter optional in OpenAI chat completion API endpoint

📊 Changes

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

View changed files

📝 backend/open_webui/routers/ollama.py (+1 -1)

📄 Description

Changelog Entry

Description

Changed

  • content parameter in OpenAI chat completion endpoint is now optional.

🔄 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/open-webui/open-webui/pull/12447 **Author:** [@floriankick](https://github.com/floriankick) **Created:** 4/4/2025 **Status:** ✅ Merged **Merged:** 4/4/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `fix-openai-api-empty-message-after-tool-call` --- ### 📝 Commits (1) - [`ec3435d`](https://github.com/open-webui/open-webui/commit/ec3435de001c25b645fad189f0d5f811bb5d22f0) make content parameter optional in OpenAI chat completion API endpoint ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/routers/ollama.py` (+1 -1) </details> ### 📄 Description # Changelog Entry ### Description - Solves #12441 - Improve compatibility of OpenAI chat completion endpoint with the corresponding endpoint in Ollama ### Changed - `content` parameter in OpenAI chat completion endpoint is now optional. --- <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 2025-11-11 18:29:31 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#9711