Commit Graph

61 Commits

Author SHA1 Message Date
Mckay Wrigley fda784028d
Add temp display (#596)
* Made the Model Name Bar Sticky at the top of the Chat Window

* Added Temp to the top bar display

* barliens

---------

Co-authored-by: Chris Wall <cwall@wooldata.com>
2023-04-18 08:35:31 -06:00
Aldo Santiago 00f6189a42
fix: sroll down button overlaping chat input (#564) 2023-04-18 08:28:19 -06:00
Shemar Lindie 836c24680b
fix: chat messages disappear on edit (#575)
Resolves #574
2023-04-18 08:21:43 -06:00
Ivan Fioravanti ea1d09244a
Feature request: Adding temperature as parameter (#513)
* Adding temperature as parameter

* NEXT_PUBLIC_ prefix added

* add spacing

---------

Co-authored-by: Ivan Fioravanti <>
Co-authored-by: Mckay Wrigley <mckaywrigley@gmail.com>
2023-04-13 05:09:03 -06:00
Mckay Wrigley 6500db9c1c
MAJOR REFACTOR (#494)
* move index to home folder, create state and context files and barrell folder

* Sanity Check Commit:  reducer added to home.tsx manual QA all working

* WIP: promptBar

* fix missing json parse on folders and prompts

* split context and add promptbar context

* add context to nested prompt componets and componetize Folder componet

* remove log

* Create buttons folder and componetize sidebar action button

* tidy up prompt handlers

* componetized sidebar

* added back chatbar componet to left side sidebar

* monster commit: Componetized the common code between chatbar and promptbar into new componet Sidebar and added context to both bars

* add useFetch service

* added prettier import sort to keep imports ordered and easier to indentify

* added react query and useFetch to work with RQ

* added apiService, errorService and reactQuery

* add callback and tidy up error service

* refactor chat and child componets to useContext

* fix extra calls and bad calls to mel endpoint

* minor import cleanup

---------

Co-authored-by: jc.durbin <jc.durbin@ardanis.com>
2023-04-10 21:10:18 -06:00
Mckay Wrigley e1f286efb8
push (#414) 2023-04-04 09:41:24 -06:00
Syed Muzamil 91cbe0b104
fix: some ui issues (#346)
* fix: scroll button not visible in light mode

* fix: sidebar when there is a folder

When a folder is added in the sidebar and there are less items scroll
bar appears. This simple change fixes that behaviour

* fix: small devices regerate/Stop button below input

Below 768px Stop Genrating and Regerate Button remains hidden behind the
input. This is the fix for that
2023-04-01 23:11:03 -06:00
Daniel 9683ce21b3
Fix icon color (#344) 2023-04-01 04:36:46 -06:00
Syed Muzamil 5cdd3e56b7
fix: small ui issue (#311)
* fix: unnecessary lines before the chats or prompts

Removed unncessary lines if there are no folders before prompts and
chats.

* added the light mode for scroll down button
2023-03-30 13:31:57 -06:00
Dasun Nimantha 4d7adf477a
fix: In light mode, the arrow in the "scroll to bottom" icon is difficult to see #299 (#304) 2023-03-30 03:52:22 -06:00
Mckay Wrigley e020de47ce change messaging 2023-03-29 15:21:50 -06:00
Thomas LÉVEIL 00c6c72270
feat: add DEFAULT_MODEL environment variable (#280)
*  feat: add DEFAULT_MODEL environment variable

* set the model maxLength setting in the models definition

* set the model tokenLimit setting in the models definition
2023-03-28 21:10:47 -06:00
Mohammed Sohail b2ef40cf6f
Fix invalid Tailwind property (#275) 2023-03-28 14:57:10 -06:00
Dasun Nimantha cd49445491
style: changed scroll icon size via size attribute as suggested (#263) 2023-03-28 07:59:31 -06:00
Mckay Wrigley 1f9d17f8bf
scroll btn (#256)
* feat: added scroll down button

when the use scrolls up on the chat a button will appear on the bottom right side of the screen. It will smoothly scroll down to the bottom of the chat when the button was pressed.

* remove env

---------

Co-authored-by: dasunNimantha <dasun4@pm.me>
2023-03-28 02:52:45 -06:00
Brad Ullman a78a8c4a94
make all chat area components tabbable (accessibility) (#246)
* make all chat area components tabbable

* align message role description

* remove inline styles on icons

* remove inline styles on icons
2023-03-28 02:35:57 -06:00
Mckay Wrigley 34c79c0d66
Prompts (#229) 2023-03-27 09:38:56 -06:00
Danil Shishkevich 2269403806
chore: fix styles in "OpenAI Key" div (#228)
chore: do nothing if the name of the renamed dialog contains nothing.
chore: fix some styles
chore: remake conversation settings on mobile
2023-03-27 09:20:33 -06:00
Mckay Wrigley a1743c82cc fix regenerate 2023-03-27 07:48:51 -06:00
Danil Shishkevich 3ca503a3f2
chore: some small improvements (#223)
* chore: stylize error message div
chore: correct styles for sidebar btn
chore: add spinner and replace header "Please wait" on spinner
chore: correct Russian translate
chore: hide clear conversation btn if not conversations
chore: stylize "Need OpenAI key" div

* chore: corrent Russian translate
2023-03-27 07:43:01 -06:00
Mckay Wrigley 82401a4142
Option for clear all messages (#222)
Co-authored-by: ryanhex53 <ouyang.em@gmail.com>
2023-03-27 01:38:01 -06:00
Thomas LÉVEIL 46e1857489
Fix rendering performances issues related to scrolling events (#174)
* memoize chat related components

* Avoid re-rendering ChatInput on every message udpate

* change the way the horizontal scrollbar is hidden

* make the scroll event listener passive

* perf(Chat): fix performances issues related to autoscroll

Uses the intersection API to determine autoscroll mode instead of listening for scroll events

* tuning detection of autoscroll
2023-03-27 01:22:38 -06:00
Danny Aziz df7c363ccb
Add some additional text for API Key (#210)
* feat: API Key Link

* feat: key input placeholder
2023-03-26 14:48:34 -06:00
Danil Shishkevich 6d5d09d69f
chore: restyle modal with model select (#202)
chore: set normal font size for sidebar
chore: set normal gradient for `ChatInput`
2023-03-26 09:14:47 -06:00
Jiayao Yu 5d9bc10cf4
Allow switching GPT model in the middle of a conversation (#181)
* Allow switching model in the middle of a conversation

* Hide model selection menu behind a settings button

* rename

* Touch up the settings icon
2023-03-26 09:09:10 -06:00
Danil Shishkevich 0f07812cc5
chore: delete code light theme, like chatgpt (#186) 2023-03-26 02:25:58 -06:00
Simon Holmes d6973b9ccc
feat: add in prettier and format code for consistency (#168) 2023-03-25 23:13:18 -06:00
Thomas LÉVEIL b89ca2082e
Precise error messages (#150)
* Introduce a component to display error messages

* precise error message when api key is invalid
2023-03-25 10:32:59 -06:00
Jungley 92eab6c634
feat: Add i18n support for Chinese language (#142)
* feat: Add i18n support for Chinese language

* fix: locale not working in Docker environment
2023-03-25 09:42:48 -06:00
Thomas LÉVEIL 698c3bda29
smoother autoscroll down (#141) 2023-03-25 08:00:40 -06:00
Mckay Wrigley 93a8e814d6 fix send params 2023-03-25 07:18:57 -06:00
Mckay Wrigley d27326125b
regenerate button (#138) 2023-03-25 07:12:51 -06:00
Thomas LÉVEIL 2c8e8547d0
Do not rely on user to figure out if server is configured with an api key (#136)
Fixes #105 (and probably also #115)

Co-authored-by: Mckay Wrigley <mckaywrigley@gmail.com>
2023-03-25 06:35:08 -06:00
Mckay Wrigley a03d8b2ba9 edit message 2023-03-25 05:49:41 -06:00
Mckay Wrigley f5118e3037
folders (#108)
* folders

* fixes

* storage fix
2023-03-23 17:59:40 -06:00
Tony 7ce2d5ec2c
autofocus textarea (#103) 2023-03-23 13:01:35 -06:00
Mckay Wrigley 42c48f290f fix rogue messages 2023-03-23 09:20:11 -06:00
Mckay Wrigley 83217c6d83 new load behavior 2023-03-23 08:54:22 -06:00
Mckay Wrigley 71a770c24e tweak scroll tolerance 2023-03-23 08:14:37 -06:00
Mckay Wrigley 68cd41a6dc fix scroll behavior 2023-03-23 08:11:37 -06:00
Xiangxuan Liu cccf753743
Update the Stop Generating button style (#79) 2023-03-22 11:38:48 -06:00
Mckay Wrigley e8902354e4 okay good 2023-03-22 11:07:42 -06:00
Mckay Wrigley ec84eb2c49
Feat/add stop conversation button (#76)
* chore add in stop conversation button

* feat: use abort controller

* chore: formatting

---------

Co-authored-by: Simon Holmes <srsholmes@gmail.com>
2023-03-22 11:01:51 -06:00
Khairul Haaziq 4055e84450
enhance ui and fix layout problems (#63) 2023-03-22 07:10:31 -06:00
Mckay Wrigley 0d6ff739a2
add custom system prompt (#39) 2023-03-21 01:39:32 -06:00
Mckay Wrigley 537957d5f5
Token based and model conditional limits (#36)
* use tiktoken for api limit

* model conditional char limits on frontend

* adjust for completion tokens

---------

Co-authored-by: Alan Pogrebinschi <alanpog@gmail.com>
2023-03-20 22:02:24 -06:00
Mckay Wrigley dd439bb4a8
error handling (#27) 2023-03-20 07:17:58 -06:00
Mckay Wrigley 7810a3e7dc
Add GPT-4 support (#25)
* mobile ui updates

* fixes sidebar btn

* return if null

* mobile input blur

* handle mobile enter key

* new convo name

* new delete mechanism

* test height

* revert

* change padding

* remove overflow

* check relative

* padding

* done

* retry

* test

* test

* should work now

* test

* test

* more

* max h

* revert

* done
2023-03-20 03:53:00 -06:00
Mckay Wrigley 7e6651dea7
add more mobile ui (#18) 2023-03-19 06:48:57 -06:00
Mckay Wrigley a387b3d1cd change to auto scroll 2023-03-18 22:32:09 -06:00