mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #1798] [MERGED] feat: abort openai text completion when stopping responses #7583
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1798
Author: @cheahjs
Created: 4/27/2024
Status: ✅ Merged
Merged: 4/27/2024
Merged by: @tjbck
Base:
dev← Head:feat/abort-openai-responses-on-stop📝 Commits (1)
c095a7cfeat: abort openai text completion when stopping responses📊 Changes
4 files changed (+20 additions, -8 deletions)
View changed files
📝
src/lib/apis/openai/index.ts(+4 -2)📝
src/routes/(app)/+page.svelte(+6 -1)📝
src/routes/(app)/c/[id]/+page.svelte(+6 -1)📝
src/routes/(app)/playground/+page.svelte(+4 -4)📄 Description
Pull Request Checklist
Description
Attach an abort controller to the OpenAI streaming completion call and abort generation when pressing the stop button.
Previously, the request was not aborted or closed, so it would still be streaming in events in the background.
Changelog Entry
Added
Fixed
Changed
Removed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.