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

Add chat-plugin #134

Open
wants to merge 66 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
d69ae27
created chat plugin template
Jun 3, 2024
6e290b8
finished example html case for testing
Jun 3, 2024
b0ccb02
Initial barebones implementation of chat interface
Bankminer78 Jun 3, 2024
4e26a02
finished chat interface styling
Jun 3, 2024
20ec85b
fixed displaying of newlines and text processing
Jun 3, 2024
0dd071a
Added data/transcript with rt recording functionality for the chat
Bankminer78 Jun 3, 2024
182708c
Merge branch 'chat-plugin' of https://github.com/vzhang03/jspsych-con…
Bankminer78 Jun 3, 2024
74878b0
Added function to streamline conversation data collection and rounded…
Bankminer78 Jun 3, 2024
63b669e
added parameters
Jun 3, 2024
c9a9981
Merge branch 'chat-plugin' of https://github.com/vzhang03/jspsych-con…
Jun 3, 2024
fa35f65
cleaning up code
Jun 4, 2024
61007fc
consolidated code and implemented prompting features. Beginning to wo…
Jun 4, 2024
7022122
finished up initial parameters and chatting with ai functionality
Jun 4, 2024
f5a6a43
finished inital backend server implemenetation and tested
Jun 4, 2024
920bf09
Finalized parameters and ChatGPT prompting
Jun 5, 2024
e406340
Finishing edits, moving to implementing prompting system
Jun 5, 2024
a0ca273
Built out researcher_prompts feature, need to implement option of bot…
Jun 5, 2024
f7961c3
Finished researchers_prompt features and tested, plugin complete outs…
Jun 5, 2024
20f7448
Pushing updates for initial testing period
vzhang03 Jun 18, 2024
2602a96
Fixing issues with styling, moving on to implement a continue feature…
vzhang03 Jun 20, 2024
6cec0bd
Figuring out best way to display timeout, fixed error checking and da…
vzhang03 Jun 20, 2024
0ba5820
Finished final edits, refactored error checking and 'continue paramet…
vzhang03 Jun 20, 2024
02bc77d
Adjusting styling, moving onto building out functionality with prompt…
vzhang03 Jun 25, 2024
1786b90
Implemented own streaming method, moving to implement native streamin…
vzhang03 Jun 26, 2024
7834e77
Got streaming to work from backend to frontend
vzhang03 Jun 26, 2024
b0d59f1
Finishing streaming and added more styling, implementing more feature…
vzhang03 Jun 26, 2024
454ff55
Finished inital version of prompt_chaining
vzhang03 Jun 26, 2024
5380a64
Fixed error that requires prompt_chain parameter
vzhang03 Jun 26, 2024
7b6a03b
Fixed errors crashing code when there wasn't chain of prompts defined
vzhang03 Jun 27, 2024
cefe7e8
Fixing bot message and making print statements more informative
vzhang03 Jun 27, 2024
7f230cb
Adjusting naming (system-prompt instead of prompt), deleted chatbot-f…
vzhang03 Jun 27, 2024
64766ec
Added functionality to display wait message above loading graphics du…
Bankminer78 Jun 27, 2024
a2aefa3
Merge branch 'chat-plugin' of https://github.com/vzhang03/jspsych-con…
Bankminer78 Jun 27, 2024
8ca96c8
Message bubble styling, and small bug fixes and tests
vzhang03 Jun 27, 2024
40d4507
Merging plugin pipe changes with chat plugin
vzhang03 Jun 27, 2024
58b7200
Fixing errors with missing parameters that aren't required, making er…
vzhang03 Jun 27, 2024
2a03ea9
Adjusting the chain prompting to keep track of conversations
vzhang03 Jun 27, 2024
21eac68
Allow for multiple system prompts to overwrite the others, need to wo…
vzhang03 Jun 27, 2024
f810420
Finishing the initial key log functionality, building out into sepera…
vzhang03 Jun 28, 2024
b605fd1
Implemented chatLog to keep track of logs and prompts and updated to …
vzhang03 Jun 28, 2024
c83e8f5
Finished new ChatLogging for the chainPrompting
vzhang03 Jun 28, 2024
79e18cb
Fixed empty string error and small fixes
vzhang03 Jun 28, 2024
ddc04c9
Implementing minor changes to ChatLog to make it more convenient
vzhang03 Jun 28, 2024
1eaf932
Small edits reducing code
vzhang03 Jun 28, 2024
32edb17
Additional small comments - preparing for next week
vzhang03 Jun 28, 2024
f750460
Cleaning comments
vzhang03 Jun 28, 2024
a8797bd
Manually built adding system prompts at end - transfering from ian-ch…
vzhang03 Jul 9, 2024
7be8e4e
Fixed api calls to be consistent with server
vzhang03 Jul 9, 2024
de40701
Fixing chatLog generation
vzhang03 Jul 9, 2024
fffdf61
Fixing the errors with printing and prompt error
vzhang03 Jul 9, 2024
70ec0ad
Compability for server and local testing
vzhang03 Jul 10, 2024
77e2118
Beginning changing fonts, fixing the displaying of data, allowing for…
vzhang03 Jul 10, 2024
d1da798
Fixing UI and issue where wasn't scrolling up, need to work on backgr…
vzhang03 Jul 10, 2024
8a64b1a
Finalizing prompt messages
vzhang03 Jul 10, 2024
1119384
Updated styles
vzhang03 Jul 10, 2024
6606a81
Changed user message to white
vzhang03 Jul 10, 2024
57d4af2
Fixing background color
vzhang03 Jul 10, 2024
7d41f8e
Working with selection prompt and setting up andgetting ready to push
vzhang03 Jul 26, 2024
efa8c74
finished inital version of prompt_selection, only issue is prompting …
vzhang03 Jul 26, 2024
735d45e
Working selection prompt
vzhang03 Jul 26, 2024
321cbad
Fixed the structure to be back to normal
vzhang03 Jul 26, 2024
2a38a34
Verified prompt working with new selectionPrompt()
vzhang03 Jul 26, 2024
38edf17
Adjusting data output
vzhang03 Jul 29, 2024
bb0f135
Moving around chat-plugin files and creating documentation to work on…
vzhang03 Aug 16, 2024
100f2b7
Updated to use esmodules and import syntax
vzhang03 Aug 16, 2024
80b5c60
Adding changeset
vzhang03 Aug 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/rotten-coins-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@jspsych-contrib/plugin-chat": major
---

Initial version of chat-plugin
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ coverage/
.vscode/
dist.zip
.idea
.env
Loading