Add support for GenericOpenAi LLM provider in the open-webui project.
Backend Changes:
Add environment variables GENERIC_OPEN_AI_BASE_PATH, GENERIC_OPEN_AI_API_KEY, GENERIC_OPEN_AI_MODEL_PREF, and GENERIC_OPEN_AI_MODEL_TOKEN_LIMIT in backend/open_webui/config.py.
Implement GenericOpenAi LLM provider in backend/open_webui/apps/openai/main.py using the new environment variables.
Frontend Changes:
Add frontend/src/components/LLMSelection/GenericOpenAiOptions/index.jsx to include input fields for GENERIC_OPEN_AI_BASE_PATH, GENERIC_OPEN_AI_API_KEY, GENERIC_OPEN_AI_MODEL_PREF, and GENERIC_OPEN_AI_MODEL_TOKEN_LIMIT.
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/5847
Author: @actus7
Created: 10/1/2024
Status: ❌ Closed
Base:
main← Head:add-generic-openai📝 Commits (1)
793e7e0Feature Request: Include GenericOpenAi LLM Provider📊 Changes
3 files changed (+189 additions, -1 deletions)
View changed files
📝
backend/open_webui/apps/openai/main.py(+91 -1)📝
backend/open_webui/config.py(+28 -0)➕
frontend/src/components/LLMSelection/GenericOpenAiOptions/index.jsx(+70 -0)📄 Description
Fixes #5846
Add support for GenericOpenAi LLM provider in the
open-webuiproject.Backend Changes:
GENERIC_OPEN_AI_BASE_PATH,GENERIC_OPEN_AI_API_KEY,GENERIC_OPEN_AI_MODEL_PREF, andGENERIC_OPEN_AI_MODEL_TOKEN_LIMITinbackend/open_webui/config.py.backend/open_webui/apps/openai/main.pyusing the new environment variables.Frontend Changes:
frontend/src/components/LLMSelection/GenericOpenAiOptions/index.jsxto include input fields forGENERIC_OPEN_AI_BASE_PATH,GENERIC_OPEN_AI_API_KEY,GENERIC_OPEN_AI_MODEL_PREF, andGENERIC_OPEN_AI_MODEL_TOKEN_LIMIT.For more details, open the Copilot Workspace session.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.