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
6fb03671
Commit
6fb03671
authored
Jan 04, 2024
by
Timothy J. Baek
Browse files
fix: openai multi-user issue
parent
a96795d7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
288 additions
and
296 deletions
+288
-296
src/routes/(app)/+page.svelte
src/routes/(app)/+page.svelte
+144
-148
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+144
-148
No files found.
src/routes/(app)/+page.svelte
View file @
6fb03671
...
@@ -322,8 +322,6 @@
...
@@ -322,8 +322,6 @@
};
};
const sendPromptOpenAI = async (model, userPrompt, parentId, _chatId) => {
const sendPromptOpenAI = async (model, userPrompt, parentId, _chatId) => {
if ($settings.OPENAI_API_KEY) {
if (models) {
let responseMessageId = uuidv4();
let responseMessageId = uuidv4();
let responseMessage = {
let responseMessage = {
...
@@ -490,8 +488,6 @@
...
@@ -490,8 +488,6 @@
window.history.replaceState(history.state, '', `/c/${_chatId}`);
window.history.replaceState(history.state, '', `/c/${_chatId}`);
await setChatTitle(_chatId, userPrompt);
await setChatTitle(_chatId, userPrompt);
}
}
}
}
};
};
const submitPrompt = async (userPrompt) => {
const submitPrompt = async (userPrompt) => {
...
...
src/routes/(app)/c/[id]/+page.svelte
View file @
6fb03671
...
@@ -340,8 +340,6 @@
...
@@ -340,8 +340,6 @@
};
};
const sendPromptOpenAI = async (model, userPrompt, parentId, _chatId) => {
const sendPromptOpenAI = async (model, userPrompt, parentId, _chatId) => {
if ($settings.OPENAI_API_KEY) {
if (models) {
let responseMessageId = uuidv4();
let responseMessageId = uuidv4();
let responseMessage = {
let responseMessage = {
...
@@ -508,8 +506,6 @@
...
@@ -508,8 +506,6 @@
window.history.replaceState(history.state, '', `/c/${_chatId}`);
window.history.replaceState(history.state, '', `/c/${_chatId}`);
await setChatTitle(_chatId, userPrompt);
await setChatTitle(_chatId, userPrompt);
}
}
}
}
};
};
const submitPrompt = async (userPrompt) => {
const submitPrompt = async (userPrompt) => {
...
...
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