[PR #2227] [CLOSED] fix/chore: (wip) DRY API error handling #43981

Closed
opened 2026-04-29 17:58:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/2227
Author: @akx
Created: 5/13/2024
Status: Closed

Base: devHead: async-correct


📝 Commits (2)

  • 815d6b4 Add API request helpers
  • 967799e DRY off audio/auths/ollama APIs

📊 Changes

4 files changed (+174 additions, -912 deletions)

View changed files

📝 src/lib/apis/audio/index.ts (+9 -106)
📝 src/lib/apis/auths/index.ts (+39 -381)
src/lib/apis/helpers.ts (+66 -0)
📝 src/lib/apis/ollama/index.ts (+60 -425)

📄 Description

Description

This starts to clean up the copy-pasted frontend API access code.


Changelog Entry

TBD


Additional Information


🔄 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/2227 **Author:** [@akx](https://github.com/akx) **Created:** 5/13/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `async-correct` --- ### 📝 Commits (2) - [`815d6b4`](https://github.com/open-webui/open-webui/commit/815d6b41d99f0eff586efe26d95c2d00b3cb8591) Add API request helpers - [`967799e`](https://github.com/open-webui/open-webui/commit/967799eecb27ded4b9b0dfe490bb34275a4bdcb6) DRY off audio/auths/ollama APIs ### 📊 Changes **4 files changed** (+174 additions, -912 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/apis/audio/index.ts` (+9 -106) 📝 `src/lib/apis/auths/index.ts` (+39 -381) ➕ `src/lib/apis/helpers.ts` (+66 -0) 📝 `src/lib/apis/ollama/index.ts` (+60 -425) </details> ### 📄 Description ## Description This starts to clean up the copy-pasted frontend API access code. --- ### Changelog Entry TBD <!-- ### Added - [List any new features, functionalities, or additions] ### Fixed - [List any fixes, corrections, or bug fixes] ### Changed - [List any changes, updates, refactorings, or optimizations] ### Removed - [List any removed features, files, or deprecated functionalities] ### Security - [List any new or updated security-related changes, including vulnerability fixes] ### Breaking Changes - [List any breaking changes affecting compatibility or functionality] --> --- ### Additional Information - See https://github.com/open-webui/open-webui/pull/2182#discussion_r1598129838 --- <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-29 17:58:42 -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#43981