Skip to content

feat: add admin controls for LLM provider visibility and default model#1192

Open
Nithishvb wants to merge 1 commit into
getnao:mainfrom
Nithishvb:feat/admin-llm-settings
Open

feat: add admin controls for LLM provider visibility and default model#1192
Nithishvb wants to merge 1 commit into
getnao:mainfrom
Nithishvb:feat/admin-llm-settings

Conversation

@Nithishvb

@Nithishvb Nithishvb commented Jul 15, 2026

Copy link
Copy Markdown

Summary

Closes #1183— gives admins control over which LLM providers/models users can see and which model is selected by default.

Problem

On self-hosted AWS instances, Bedrock is auto-generated from environment credentials and could not be removed. Deleting it from the UI didn't persist — it reappeared on the next request. There was no way to hide a provider or force a default model. The default shown to new users was purely positional (first available model).

Solution

Two-layer configuration (env vars + DB) that work together:

Deactivate providers

  • Env var: NAO_DISABLED_PROVIDERS=bedrock,vertex (comma-separated, always applied)
  • Admin UI: Toggle badges in Settings → Models section
  • Effective: Union of env + DB lists (env can add constraints, admin can add more)

Choose default model

  • Env var: NAO_DEFAULT_MODEL=anthropic:claude-sonnet-4-6 (provider:modelId format, fallback when DB is unset)
  • Admin UI: Dropdown in Settings → Models section
  • Effective: DB value takes precedence over env (admin can always override)

@github-actions

Copy link
Copy Markdown
Contributor

This PR was auto-closed. Only contributors approved with lgtm can open PRs. Open an issue first.

Maintainers review auto-closed issues daily. Issues that do not meet the quality bar in CONTRIBUTING.md will not be reopened or receive a reply.

If a maintainer replies lgtmi, your future issues will stay open. If a maintainer replies lgtm, your future issues and PRs will stay open.

See CONTRIBUTING.md.

@github-actions github-actions Bot closed this Jul 15, 2026
@Bl3f Bl3f reopened this Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] Let admins deactivate LLM / choose default LLM for all users

2 participants