LibreChat/client/src/components/ui
Danny Avila d59b62174f
🪨 feat: AWS Bedrock support (#3935)
* feat: Add BedrockIcon component to SVG library

* feat: EModelEndpoint.bedrock

* feat: first pass, bedrock chat. note: AgentClient is returning `agents` as conversation.endpoint

* fix: declare endpoint in initialization step

* chore: Update @librechat/agents dependency to version 1.4.5

* feat: backend content aggregation for agents/bedrock

* feat: abort agent requests

* feat: AWS Bedrock icons

* WIP: agent provider schema parsing

* chore: Update EditIcon props type

* refactor(useGenerationsByLatest): make agents and bedrock editable

* refactor: non-assistant message content, parts

* fix: Bedrock response `sender`

* fix: use endpointOption.model_parameters not endpointOption.modelOptions

* fix: types for step handler

* refactor: Update Agents.ToolCallDelta type

* refactor: Remove unnecessary assignment of parentMessageId in AskController

* refactor: remove unnecessary assignment of parentMessageId (agent request handler)

* fix(bedrock/agents): message regeneration

* refactor: dynamic form elements using react-hook-form Controllers

* fix: agent icons/labels for messages

* fix: agent actions

* fix: use of new dynamic tags causing application crash

* refactor: dynamic settings touch-ups

* refactor: update Slider component to allow custom track class name

* refactor: update DynamicSlider component styles

* refactor: use Constants value for GLOBAL_PROJECT_NAME (enum)

* feat: agent share global methods/controllers

* fix: agents query

* fix: `getResponseModel`

* fix: share prompt a11y issue

* refactor: update SharePrompt dialog theme styles

* refactor: explicit typing for SharePrompt

* feat: add agent roles/permissions

* chore: update @librechat/agents dependency to version 1.4.7 for tool_call_ids edge case

* fix(Anthropic): messages.X.content.Y.tool_use.input: Input should be a valid dictionary

* fix: handle text parts with tool_call_ids and empty text

* fix: role initialization

* refactor: don't make instructions required

* refactor: improve typing of Text part

* fix: setShowStopButton for agents route

* chore: remove params for now

* fix: add streamBuffer and streamRate to help prevent 'Overloaded' errors from Anthropic API

* refactor: remove console.log statement in ContentRender component

* chore: typing, rename Context to Delete Button

* chore(DeleteButton): logging

* refactor(Action): make accessible

* style(Action): improve a11y again

* refactor: remove use/mention of mongoose sessions

* feat: first pass, sharing agents

* feat: visual indicator for global agent, remove author when serving to non-author

* wip: params

* chore: fix typing issues

* fix(schemas): typing

* refactor: improve accessibility of ListCard component and fix console React warning

* wip: reset templates for non-legacy new convos

* Revert "wip: params"

This reverts commit f8067e91d4.

* Revert "refactor: dynamic form elements using react-hook-form Controllers"

This reverts commit 2150c4815d.

* fix(Parameters): types and parameter effect update to only update local state to parameters

* refactor: optimize useDebouncedInput hook for better performance

* feat: first pass, anthropic bedrock params

* chore: paramEndpoints check for endpointType too

* fix: maxTokens to use coerceNumber.optional(),

* feat: extra chat model params

* chore: reduce code repetition

* refactor: improve preset title handling in SaveAsPresetDialog component

* refactor: improve preset handling in HeaderOptions component

* chore: improve typing, replace legacy dialog for SaveAsPresetDialog

* feat: save as preset from parameters panel

* fix: multi-search in select dropdown when using Option type

* refactor: update default showDefault value to false in Dynamic components

* feat: Bedrock presets settings

* chore: config, fix agents schema, update config version

* refactor: update AWS region variable name in bedrock options endpoint to BEDROCK_AWS_DEFAULT_REGION

* refactor: update baseEndpointSchema in config.ts to include baseURL property

* refactor: update createRun function to include req parameter and set streamRate based on provider

* feat: availableRegions via config

* refactor: remove unused demo agent controller file

* WIP: title

* Update @librechat/agents to version 1.5.0

* chore: addTitle.js to handle empty responseText

* feat: support images and titles

* feat: context token updates

* Refactor BaseClient test to use expect.objectContaining

* refactor: add model select, remove header options params, move side panel params below prompts

* chore: update models list, catch title error

* feat: model service for bedrock models (env)

* chore: Remove verbose debug log in AgentClient class following stream

* feat(bedrock): track token spend; fix: token rates, value key mapping for AWS models

* refactor: handle streamRate in `handleLLMNewToken` callback

* chore: AWS Bedrock example config in `.env.example`

* refactor: Rename bedrockMeta to bedrockGeneral in settings.ts and use for AI21 and Amazon Bedrock providers

* refactor: Update `.env.example` with AWS Bedrock model IDs URL and additional notes

* feat: titleModel support for bedrock

* refactor: Update `.env.example` with additional notes for AWS Bedrock model IDs
2024-09-09 12:06:59 -04:00
..
Accordion.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
AlertDialog.tsx 🔄 refactor(EditPresetDialog): Update Model on Endpoint Change (#2936) 2024-05-31 11:43:14 -04:00
Breadcrumb.tsx 🗨️ feat: Prompts (#3131) 2024-06-20 20:24:32 -04:00
Button.tsx 🖼️ style: Conversation Menu and Dialogs update (#3601) 2024-08-16 04:30:14 -04:00
Checkbox.tsx 🌑 style(File Manager): Localize and Update Dark Mode Stylings (#2155) 2024-03-21 10:52:45 -04:00
Collapsible.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
Combobox.tsx 📱 fix: Resolve Android Device and Accessibility Issues of Sidebar Combobox (#3689) 2024-08-18 19:02:46 -04:00
ControlCombobox.tsx 🖱️ fix: Message Scrolling UX; refactor: Frontend UX/DX Optimizations (#3733) 2024-08-21 18:18:45 -04:00
DataTableColumnHeader.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
DelayedRender.tsx WIP: Update UI to match Official Style; Vision and Assistants 👷🏽 (#1190) 2023-11-16 10:42:24 -05:00
Dialog.tsx 🎨 style: settings tab update (#3088) 2024-06-21 09:58:04 -04:00
DialogTemplate.spec.tsx feat: Add More Translation Text & Minor UI Fixes (#861) 2023-09-04 09:23:26 -04:00
DialogTemplate.tsx 🔧 fix: Preset Dialog Styling and Values (#2657) 2024-05-10 03:05:45 -04:00
Dropdown.tsx 🎛️ fix: Improve Frontend Practices for Audio Settings (#3624) 2024-08-13 02:42:49 -04:00
DropdownMenu.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
DropdownNoState.tsx 🎛️ fix: Improve Frontend Practices for Audio Settings (#3624) 2024-08-13 02:42:49 -04:00
DropdownPopup.tsx 👐 a11y: Accessible Conversation Menu Options (#3864) 2024-08-30 13:39:30 -04:00
FileUpload.tsx feat: Vision Support + New UI (#1203) 2023-11-21 20:12:48 -05:00
HoverCard.tsx 🎨 style: update Assistants builder (#3397) 2024-07-21 13:46:43 -04:00
index.ts 🚧 chore: merge latest dev build to main repo (#3844) 2024-08-31 16:33:51 -04:00
Input.tsx 🧪 feat: Prompt Dropdown Variable; style: Add Markdown Support (#3681) 2024-08-18 05:52:05 -04:00
InputCombobox.tsx 🗨️ refactor(VariableForm): use InputCombobox, fix Dropdown Variables (#3692) 2024-08-18 22:23:19 -04:00
InputNumber.tsx 🖌️ style: Improve Dark Theme Accessibility (#2125) 2024-03-21 09:02:00 -04:00
InputWithDropDown.tsx 🧪 feat: Prompt Dropdown Variable; style: Add Markdown Support (#3681) 2024-08-18 05:52:05 -04:00
Label.tsx fix(typing): minor typing resolutions and convert SearchBar to TS (#766) 2023-08-06 21:30:16 -04:00
ModelParameters.tsx 🚧 chore: merge latest dev build to main repo (#3844) 2024-08-31 16:33:51 -04:00
MultiSearch.tsx 🪨 feat: AWS Bedrock support (#3935) 2024-09-09 12:06:59 -04:00
MultiSelectDropDown.tsx 🔧 fix+chore: Resolve Overflow in Settings Modal & Upgrade to Headless UI 2.0 (#2661) 2024-07-10 16:45:58 -04:00
MultiSelectPop.tsx 🤖 feat: Model Specs & Save Tools per Convo/Preset (#2578) 2024-04-30 22:11:48 -04:00
OGDialogTemplate.tsx 🪨 feat: AWS Bedrock support (#3935) 2024-09-09 12:06:59 -04:00
OriginalDialog.tsx 🪨 feat: AWS Bedrock support (#3935) 2024-09-09 12:06:59 -04:00
Prompt.tsx 🖌️ style: Update Light/Dark UI Themes (#1754) 2024-03-06 12:05:43 -05:00
QuestionMark.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
Resizable.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
Select.tsx 📦 feat: Model & Assistants Combobox for Side Panel (#2380) 2024-04-10 14:27:22 -04:00
SelectDropDown.tsx 🪨 feat: AWS Bedrock support (#3935) 2024-09-09 12:06:59 -04:00
SelectDropDownPop.tsx 🤲 feat(a11y): Initial a11y improvements, added linters, tests; fix: close sidebars in mobile view (#3536) 2024-08-04 20:39:52 -04:00
Separator.tsx WIP: Update UI to match Official Style; Vision and Assistants 👷🏽 (#1190) 2023-11-16 10:42:24 -05:00
Skeleton.tsx 🗨️ feat: Prompts (#3131) 2024-06-20 20:24:32 -04:00
Slider.tsx 🪨 feat: AWS Bedrock support (#3935) 2024-09-09 12:06:59 -04:00
Switch.tsx 🎨 style: settings tab update (#3088) 2024-06-21 09:58:04 -04:00
Table.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
Tabs.tsx 🖌️ style: Update Light/Dark UI Themes (#1754) 2024-03-06 12:05:43 -05:00
Tag.tsx 🗨️ feat: Prompts (#3131) 2024-06-20 20:24:32 -04:00
TermsAndConditionsModal.tsx ⚖️ feat: Terms and Conditions Dialog (#3712) 2024-08-31 16:08:04 -04:00
Textarea.tsx 🖌️ style: Improve Dark Theme Accessibility (#2125) 2024-03-21 09:02:00 -04:00
TextareaAutosize.tsx 🔄 feat: chat direction (LTR-RTL) (#3260) 2024-07-17 10:08:13 -04:00
ThemeSelector.tsx 🗨️ feat: Prompts (#3131) 2024-06-20 20:24:32 -04:00
Toast.tsx feat(Toast): add Toast nearly identical to ChatGPT's (#1108) 2023-10-27 15:48:05 -04:00
Tooltip.tsx 🚀feat: Archive conversations (#2590) 2024-05-06 23:07:00 -04:00
TooltipIcon.tsx 🎨 style: bookmarks UI update (#3479) 2024-07-29 19:25:36 -04:00