Spaces:
Lockthewi
/
Paused

nsarrazin Mishig commited on
Commit
77399ca
·
unverified ·
1 Parent(s): 6e0b0ea

Continue generation feature (#707)

Browse files

* Initial work on continue feature

* Move continue button

* Fix websearch with continue

* Make it work with every model

* Update src/routes/conversation/[id]/+server.ts

Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>

* fixes

* async all the things

* add reduce comment

* remove log

* Only show loading indicator if not continuing

---------

Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>

11 files changed +211 -83
Files changed (11)
.env.template+4-2
src/lib/buildPrompt.ts+18-16
src/lib/components/ContinueBtn.svelteAdded+13
src/lib/components/chat/ChatMessage.svelte+1
src/lib/components/chat/ChatMessages.svelte+2-1
src/lib/components/chat/ChatWindow.svelte+17-2
src/lib/server/endpoints/endpoints.ts+1
src/lib/server/endpoints/tgi/endpointTgi.ts+13-2
src/lib/types/Message.ts+1
src/routes/conversation/[id]/+page.svelte+76-25
src/routes/conversation/[id]/+server.ts+65-35