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.
Description
Introduce WHISPER_MODEL_AUTO_UPDATE env var with disabled default. Pass this variable with local_files_only to WhisperModel(). Use try/except to handle cases where auto-update is disabled but model is non-existent.
Handle cases where auto-update is disabled but model is non-existent
Fixed
Eliminate auto-connection to HuggingFace for WhisperModel download.
Changed
Update backend/config.py to add env var
Update backend/apps/audio/main.py to use env var
🔄 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/1499
**Author:** [@ghost](https://github.com/ghost)
**Created:** 4/11/2024
**Status:** ✅ Merged
**Merged:** 4/14/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `whisper_auto_update`
---
### 📝 Commits (3)
- [`429242b`](https://github.com/open-webui/open-webui/commit/429242b4d3bb6e24badfc403f690540b3b44cd6f) Introduce Whisper model auto-update control.
- [`81c8717`](https://github.com/open-webui/open-webui/commit/81c8717d75170a5d5a8526dea35894060105d222) Format fix
- [`faa5884`](https://github.com/open-webui/open-webui/commit/faa58841508c181a08e816c1a90d487910adf20c) Use log.warning instead of log.debug
### 📊 Changes
**2 files changed** (+22 additions, -6 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/apps/audio/main.py` (+19 -6)
📝 `backend/config.py` (+3 -0)
</details>
### 📄 Description
## Pull Request Checklist
- [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.
---
## Description
Introduce `WHISPER_MODEL_AUTO_UPDATE` env var with disabled default. Pass this variable with local_files_only to `WhisperModel()`. Use try/except to handle cases where auto-update is disabled but model is non-existent.
Relates to: #1302
---
### Changelog Entry
### Added
- Introduce `WHISPER_MODEL_AUTO_UPDATE` env var
- Pass local_files_only to `WhisperModel()`
- Handle cases where auto-update is disabled but model is non-existent
### Fixed
- Eliminate auto-connection to HuggingFace for WhisperModel download.
### Changed
- Update backend/config.py to add env var
- Update backend/apps/audio/main.py to use env var
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1499
Author: @ghost
Created: 4/11/2024
Status: ✅ Merged
Merged: 4/14/2024
Merged by: @tjbck
Base:
dev← Head:whisper_auto_update📝 Commits (3)
429242bIntroduce Whisper model auto-update control.81c8717Format fixfaa5884Use log.warning instead of log.debug📊 Changes
2 files changed (+22 additions, -6 deletions)
View changed files
📝
backend/apps/audio/main.py(+19 -6)📝
backend/config.py(+3 -0)📄 Description
Pull Request Checklist
Description
Introduce
WHISPER_MODEL_AUTO_UPDATEenv var with disabled default. Pass this variable with local_files_only toWhisperModel(). Use try/except to handle cases where auto-update is disabled but model is non-existent.Relates to: #1302
Changelog Entry
Added
WHISPER_MODEL_AUTO_UPDATEenv varWhisperModel()Fixed
Changed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.