[PR #2124] [MERGED] changed: replace deprecated on_event with lifespan #7698

Closed
opened 2025-11-11 17:33:40 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/2124
Author: @tcztzy
Created: 5/9/2024
Status: Merged
Merged: 5/13/2024
Merged by: @tjbck

Base: devHead: main


📝 Commits (8)

📊 Changes

2 files changed (+25 additions, -21 deletions)

View changed files

📝 backend/apps/litellm/main.py (+11 -8)
📝 backend/main.py (+14 -13)

📄 Description

Pull Request Checklist

  • Target branch: Pull requests should target the dev branch.
  • 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 Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for the changes?
  • Code Review: Have you self-reviewed your code and addressed any coding standard issues?

Description

on_event is deprecated


Changelog Entry

Changed

  • replace deprecated on_event with lifespan

Additional Information

  • try to engaged in the workflow with a minor improvement.

🔄 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/2124 **Author:** [@tcztzy](https://github.com/tcztzy) **Created:** 5/9/2024 **Status:** ✅ Merged **Merged:** 5/13/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `main` --- ### 📝 Commits (8) - [`b8d7fdf`](https://github.com/open-webui/open-webui/commit/b8d7fdf16e57deaf7faaa4dad7c2c5666e8b18ed) Merge pull request #1965 from open-webui/dev - [`9f2b846`](https://github.com/open-webui/open-webui/commit/9f2b846ea7201c320851f78c3a4620408921684c) Merge pull request #2101 from open-webui/dev - [`61ffbf5`](https://github.com/open-webui/open-webui/commit/61ffbf5b5b82829a7d0d248cbc6e03b350d4b634) Merge pull request #2114 from open-webui/dev - [`78c2f16`](https://github.com/open-webui/open-webui/commit/78c2f16c3cc0465930b55f5ac8ab07d90f582ead) Merge pull request #2115 from open-webui/dev - [`943c49a`](https://github.com/open-webui/open-webui/commit/943c49a07ae01198566611ef5931ef108d3584a0) Merge pull request #2116 from open-webui/dev - [`734e62b`](https://github.com/open-webui/open-webui/commit/734e62b865165a54b2717586d3041e157dc5c579) Merge pull request #2117 from open-webui/dev - [`90503be`](https://github.com/open-webui/open-webui/commit/90503be2edef1a1f7ce2074286b6316d5cb8868a) Merge pull request #2118 from open-webui/dev - [`1d9c745`](https://github.com/open-webui/open-webui/commit/1d9c745b35048ff0a04b08da42c2c9d0e1021dcb) fix: replace deprecated on_event with lifespan ### 📊 Changes **2 files changed** (+25 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `backend/apps/litellm/main.py` (+11 -8) 📝 `backend/main.py` (+14 -13) </details> ### 📄 Description ## Pull Request Checklist - [x] **Target branch:** Pull requests should target the `dev` branch. - [x] **Description:** Briefly describe the changes in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [x] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [x] **Testing:** Have you written and run sufficient tests for the changes? - [x] **Code Review:** Have you self-reviewed your code and addressed any coding standard issues? --- ## Description [`on_event` is deprecated](https://fastapi.tiangolo.com/advanced/events/#alternative-events-deprecated) --- ### Changelog Entry ### Changed - replace deprecated `on_event` with `lifespan` --- ### Additional Information - try to engaged in the workflow with a minor improvement. --- <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 17:33:40 -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#7698