Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
5bcbb781
Commit
5bcbb781
authored
Feb 16, 2024
by
Timothy J. Baek
Browse files
feat: stop continue regeneration
parent
30f0f347
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
src/lib/components/chat/Messages/ResponseMessage.svelte
src/lib/components/chat/Messages/ResponseMessage.svelte
+1
-1
src/routes/(app)/+page.svelte
src/routes/(app)/+page.svelte
+3
-0
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+4
-1
No files found.
src/lib/components/chat/Messages/ResponseMessage.svelte
View file @
5bcbb781
...
...
@@ -65,7 +65,7 @@
await tick();
if (tooltipInstance) {
tooltipInstance[0].destroy();
tooltipInstance[0]
?
.destroy();
}
renderLatex();
...
...
src/routes/(app)/+page.svelte
View file @
5bcbb781
...
...
@@ -709,6 +709,9 @@
if (messages.length != 0 && messages.at(-1).done == true) {
const responseMessage = history.messages[history.currentId];
responseMessage.done = false;
await tick();
const modelTag = $models.filter((m) => m.name === responseMessage.model).at(0);
if (modelTag?.external) {
...
...
src/routes/(app)/c/[id]/+page.svelte
View file @
5bcbb781
...
...
@@ -18,7 +18,7 @@
} from '$lib/stores';
import { copyToClipboard, splitStream, convertMessagesToHistory } from '$lib/utils';
import { generateChatCompletion, generateTitle } from '$lib/apis/ollama';
import { generateChatCompletion, generateTitle
, cancelChatCompletion
} from '$lib/apis/ollama';
import {
addTagById,
createNewChat,
...
...
@@ -711,6 +711,9 @@
if (messages.length != 0 && messages.at(-1).done == true) {
const responseMessage = history.messages[history.currentId];
responseMessage.done = false;
await tick();
const modelTag = $models.filter((m) => m.name === responseMessage.model).at(0);
if (modelTag?.external) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment