feat(generic-openai): saved endpoint connections dropdown - #6065
Open
Souravrajvi0 wants to merge 1 commit into
Open
feat(generic-openai): saved endpoint connections dropdown#6065Souravrajvi0 wants to merge 1 commit into
Souravrajvi0 wants to merge 1 commit into
Conversation
Resolves Mintplex-Labs#3871 by persisting named Generic OpenAI profiles (base URL, API key, model, token limits) in storage/config/generic-openai-connections.json. - Admin API to list, save, activate, and delete saved connections - LLM Preference UI dropdown to switch profiles without retyping settings - API keys stay server-side; summaries never return secret values - Unit tests for connection manager lifecycle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Type
Relevant Issues
resolves #3871
Description
Adds saved Generic OpenAI endpoint profiles so users can store multiple base URLs / API keys / models (e.g. RunPod workers, LAN servers, LiteLLM routes) and switch between them from a dropdown in LLM Preference — without retyping settings each time.
Backend
storage/config/generic-openai-connections.json(gitignored; example file included)updateENVpathFrontend
This is a scoped first step toward the broader “stored connections” direction noted on #3871 / #2002 / #1567 (Generic OpenAI only for now).
Visuals (if applicable)
N/A — dropdown + buttons above existing Generic OpenAI fields in LLM Preference.
Additional Information
Local testing
Results:
yarn lint:ci— passupdateENV, delete)yarn build(frontend) — passLive API smoke test (
yarn devserver +curl):setup-completereflects applied Generic OpenAI fields after save/activatehasApiKeyonly (no rawapiKeyfield)Docker build & runtime (from
docker/per HOW_TO_USE_DOCKER.md):docker compose up -d --build— success (anythingllm-anything-llm:latest, ~4.67GB)anythingllm— healthy,http://localhost:3001/api/ping→{"online":true}setup-completepassDeveloper Validations
yarn lintfrom the root of the repo & committed changes