Danny Avila
099aa9dead
✋ feat: Stop Sequences for Conversations & Presets ( #2536 )
...
* feat: `stop` conversation parameter
* feat: Tag primitive
* feat: dynamic tags
* refactor: update tag styling
* feat: add stop sequences to OpenAI settings
* fix(Presentation): prevent `SidePanel` re-renders that flicker side panel
* refactor: use stop placeholder
* feat: type and schema update for `stop` and `TPreset` in generation param related types
* refactor: pass conversation to dynamic settings
* refactor(OpenAIClient): remove default handling for `modelOptions.stop`
* docs: fix Google AI Setup formatting
* feat: current_model
* docs: WIP update
* fix(ChatRoute): prevent default preset override before `hasSetConversation.current` becomes true by including latest conversation state as template
* docs: update docs with more info on `stop`
* chore: bump config_version
* refactor: CURRENT_MODEL handling
2024-04-25 11:40:17 -04:00
Danny Avila
c937b8cd07
🧑💻 refactor: Display Client-facing Errors ( #2476 )
...
* fix(Google): allow presets to configure expected maxOutputTokens
* refactor: standardize client-facing errors
* refactor(checkUserKeyExpiry): pass endpoint instead of custom message
* feat(UserService): JSDocs and getUserKeyValues
* refactor: add NO_BASE_URL error type, make use of getUserKeyValues, throw user-specific errors
* ci: update tests with recent changes
2024-04-21 08:31:54 -04:00
Danny Avila
d2d9ac0280
✨ feat: Add 'EnterToSend' Option & Update Br. Translation 🇧🇷 ( #2413 )
...
* chore: Add EnterToSend, Translation Portuguese Brazilian Update
* Inverted selection and corrected translation
* fix: removed Trailing spaces not allowed
* feat: Refactor key event handler & updated translations
* fix: removed return; & updated files translations
* fix: duplicate switchs on General.tsx
* fix: added again switch
* refactor(useTextarea): limit refactoring of handleKeyDown
* refactor: correct keyDown handler and add English localization
---------
Co-authored-by: Raí Santos <140329135+itzraiss@users.noreply.github.com>
Co-authored-by: Raí Santos <raimorningstarchristus@gmail.com>
2024-04-14 19:06:20 -04:00
Danny Avila
8e5f1ad575
📦 feat: Model & Assistants Combobox for Side Panel ( #2380 )
...
* 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
2024-04-10 14:27:22 -04:00
Marco Beretta
e3c236ba3b
🔄 chore: converted translation files to .ts ( #2288 )
...
* chore: converted translation files to
* chore(Sv.ts): removed and the comment
* chore: add comment
2024-04-02 14:35:35 -04:00