[PR #1632] [MERGED] fix: use model name when outputting error message #36361

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

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/1632
Author: @cheahjs
Created: 4/20/2024
Status: Merged
Merged: 4/20/2024
Merged by: @tjbck

Base: devHead: fix/error-object-object


📝 Commits (1)

  • 7e5bda6 fix: use model name when outputting error message

📊 Changes

2 files changed (+10 additions, -6 deletions)

View changed files

📝 src/routes/(app)/+page.svelte (+5 -3)
📝 src/routes/(app)/c/[id]/+page.svelte (+5 -3)

📄 Description

Pull Request Checklist

  • Description: Briefly describe the changes in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?

Description

Addresses https://github.com/open-webui/open-webui/issues/1596, where we print [object Object] on an error with OpenAI responses because model is an object, not a string. Use the model's name or id instead.

image

Changelog Entry

Fixed


🔄 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/1632 **Author:** [@cheahjs](https://github.com/cheahjs) **Created:** 4/20/2024 **Status:** ✅ Merged **Merged:** 4/20/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `fix/error-object-object` --- ### 📝 Commits (1) - [`7e5bda6`](https://github.com/open-webui/open-webui/commit/7e5bda6016538de7959b56b04293168396ca83e4) fix: use model name when outputting error message ### 📊 Changes **2 files changed** (+10 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/routes/(app)/+page.svelte` (+5 -3) 📝 `src/routes/(app)/c/[id]/+page.svelte` (+5 -3) </details> ### 📄 Description ## Pull Request Checklist - [x] **Description:** Briefly describe the changes in this pull request. - [ ] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Have you updated relevant documentation? - [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? --- ## Description Addresses https://github.com/open-webui/open-webui/issues/1596, where we print `[object Object]` on an error with OpenAI responses because `model` is an object, not a string. Use the model's name or id instead. <img width="844" alt="image" src="https://github.com/open-webui/open-webui/assets/818368/e5bfa5b6-7fb5-4c48-8646-c02ea02db250"> --- ### Changelog Entry ### Fixed - --- <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-25 10:16:24 -05: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#36361