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
67053d28
Unverified
Commit
67053d28
authored
Feb 16, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Feb 16, 2024
Browse files
Merge pull request #762 from ollama-webui/continue
feat: stop continue regeneration
parents
30f0f347
5bcbb781
Changes
3
Hide 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 @
67053d28
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
await tick();
await tick();
if (tooltipInstance) {
if (tooltipInstance) {
tooltipInstance[0].destroy();
tooltipInstance[0]
?
.destroy();
}
}
renderLatex();
renderLatex();
...
...
src/routes/(app)/+page.svelte
View file @
67053d28
...
@@ -709,6 +709,9 @@
...
@@ -709,6 +709,9 @@
if (messages.length != 0 && messages.at(-1).done == true) {
if (messages.length != 0 && messages.at(-1).done == true) {
const responseMessage = history.messages[history.currentId];
const responseMessage = history.messages[history.currentId];
responseMessage.done = false;
await tick();
const modelTag = $models.filter((m) => m.name === responseMessage.model).at(0);
const modelTag = $models.filter((m) => m.name === responseMessage.model).at(0);
if (modelTag?.external) {
if (modelTag?.external) {
...
...
src/routes/(app)/c/[id]/+page.svelte
View file @
67053d28
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
} from '$lib/stores';
} from '$lib/stores';
import { copyToClipboard, splitStream, convertMessagesToHistory } from '$lib/utils';
import { copyToClipboard, splitStream, convertMessagesToHistory } from '$lib/utils';
import { generateChatCompletion, generateTitle } from '$lib/apis/ollama';
import { generateChatCompletion, generateTitle
, cancelChatCompletion
} from '$lib/apis/ollama';
import {
import {
addTagById,
addTagById,
createNewChat,
createNewChat,
...
@@ -711,6 +711,9 @@
...
@@ -711,6 +711,9 @@
if (messages.length != 0 && messages.at(-1).done == true) {
if (messages.length != 0 && messages.at(-1).done == true) {
const responseMessage = history.messages[history.currentId];
const responseMessage = history.messages[history.currentId];
responseMessage.done = false;
await tick();
const modelTag = $models.filter((m) => m.name === responseMessage.model).at(0);
const modelTag = $models.filter((m) => m.name === responseMessage.model).at(0);
if (modelTag?.external) {
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