Skip to content

Conversation

raunakab
Copy link
Contributor

@raunakab raunakab commented Apr 9, 2025

Description

When adding a new custom LLM provider, the model contains an "Advanced Options" toggle at the bottom. However, for non-enterprise users, the dropdown will be empty. However, the toggle still exists; it just expands to nothing.

This PR removes that toggle if enterprise features are not enabled.

Addresses: https://linear.app/danswer/issue/DAN-1789/remove-advanced-options-toggle-if-paid-enterprise-features-are-not

How Has This Been Tested?

UI fix; only visually tested.

Screenshots

Before:
image

After:
image

@raunakab raunakab requested a review from a team as a code owner April 9, 2025 19:54
Copy link

vercel bot commented Apr 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2025 7:54pm

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR conditionally removes the Advanced Options toggle on the custom LLM provider form for non-enterprise users.

  • Conditionally wrap the Advanced Options block in /web/src/app/admin/configuration/llm/CustomLLMProviderUpdateForm.tsx using the usePaidEnterpriseFeaturesEnabled hook.
  • Prevents rendering an empty dropdown by omitting the toggle for non-enterprise accounts.
  • Applies minor formatting tweaks to className strings.

💡 (5/5) You can turn off certain types of comments like style here!

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@raunakab raunakab enabled auto-merge April 9, 2025 20:05
@raunakab raunakab added this pull request to the merge queue Apr 9, 2025
github-merge-queue bot pushed a commit that referenced this pull request Apr 9, 2025
…abled (#4489)

* Only show advanced options for custom llm providers *if* the paid features are enabled

* Change variable name
Merged via the queue into main with commit eeab3f0 Apr 9, 2025
9 of 11 checks passed
@raunakab raunakab deleted the fix/custom-llm-provider-remove-advanced-options branch April 10, 2025 00:15
tim-dim pushed a commit to GrantHive/grantgpt-dev that referenced this pull request Apr 10, 2025
…abled (onyx-dot-app#4489)

* Only show advanced options for custom llm providers *if* the paid features are enabled

* Change variable name
aronszanto pushed a commit to aronszanto/onyx that referenced this pull request Apr 26, 2025
…abled (onyx-dot-app#4489)

* Only show advanced options for custom llm providers *if* the paid features are enabled

* Change variable name
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
…abled (onyx-dot-app#4489)

* Only show advanced options for custom llm providers *if* the paid features are enabled

* Change variable name
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.

2 participants