Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📦 feat: Model & Assistants Combobox for Side Panel #2380

Merged
merged 28 commits into from
Apr 10, 2024

Conversation

danny-avila
Copy link
Owner

@danny-avila danny-avila commented Apr 10, 2024

Summary

This PR started off initially to scaffold upcoming dynamic settings, which will improve DX and Admin Experience for all endpoints, through granular control over settings for conversations.

There was success in implementing this but still much left to do, so a foundation is enough for now.

The main observable difference is as title suggests, new searchable model/assistant combobox where previously only a select for Assistants. This makes the side panel immediately useful for all endpoints. Eventually, the model select will migrate to the side panel along with all conversation settings or "Parameters"

Other Changes

  • Improvements to textarea focus app-wide
  • Textarea focus on model/assistant select from side panel
  • fix([useOriginNavigate): change path to '/c/' 0bc8cfe
  • Assistant Side Panel options are now only available when the Assistants endpoint is selected.
  • For those primarily using Assistants, I have "pinned" presets/assistants planned but not for now (outside of current scope)
  • bump client packages as a result of npm audit

Change Type

  • New feature (non-breaking change which adds functionality)

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes
  • Any changes dependent on mine have been merged and published in downstream modules.
  • New documents have been locally validated with mkdocs

…hare and maintain statefulness in side panel
@danny-avila danny-avila merged commit 8e5f1ad into main Apr 10, 2024
1 check passed
@danny-avila danny-avila deleted the dynamic-settings branch April 10, 2024 18:27
kenshinsamue pushed a commit to intelequia/LibreChat that referenced this pull request Sep 17, 2024
* WIP: dynamic settings

* WIP: update tests and validations

* refactor(SidePanel): use hook for Links

* WIP: dynamic settings, slider implemented

* feat(useDebouncedInput): dynamic typing with generic

* refactor(generate): add `custom` optionType to be non-conforming to conversation schema

* feat: DynamicDropdown

* refactor(DynamicSlider): custom optionType handling and useEffect for conversation updates elsewhere

* refactor(Panel): add more test cases

* chore(DynamicSlider): note

* refactor(useDebouncedInput): import defaultDebouncedDelay from ~/common`

* WIP: implement remaining ComponentTypes

* chore: add com_sidepanel_parameters

* refactor: add langCode handling for dynamic settings

* chore(useOriginNavigate): change path to '/c/'

* refactor: explicit textarea focus on new convo, share textarea idea via ~/common

* refactor: useParameterEffects: reset if convo or preset Ids change, share and maintain statefulness in side panel

* wip: combobox

* chore: minor styling for Select components

* wip: combobox select styling for side panel

* feat: complete combobox

* refactor: model select for side panel switcher

* refactor(Combobox): add portal

* chore: comment out dynamic parameters panel for future PR and delete prompt files

* refactor(Combobox): add icon field for options, change hover bg-color, add displayValue

* fix(useNewConvo): proper textarea focus with setTimeout

* refactor(AssistantSwitcher): use Combobox

* refactor(ModelSwitcher): add textarea focus on model switch
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.

1 participant