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
28ca6fb6
Commit
28ca6fb6
authored
Jun 09, 2024
by
Timothy J. Baek
Browse files
refac
parent
da4586f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
24 deletions
+0
-24
backend/apps/ollama/main.py
backend/apps/ollama/main.py
+0
-1
backend/apps/openai/main.py
backend/apps/openai/main.py
+0
-1
src/lib/components/chat/Chat.svelte
src/lib/components/chat/Chat.svelte
+0
-22
No files found.
backend/apps/ollama/main.py
View file @
28ca6fb6
...
@@ -726,7 +726,6 @@ async def generate_chat_completion(
...
@@ -726,7 +726,6 @@ async def generate_chat_completion(
model_info
=
Models
.
get_model_by_id
(
model_id
)
model_info
=
Models
.
get_model_by_id
(
model_id
)
if
model_info
:
if
model_info
:
print
(
model_info
)
if
model_info
.
base_model_id
:
if
model_info
.
base_model_id
:
payload
[
"model"
]
=
model_info
.
base_model_id
payload
[
"model"
]
=
model_info
.
base_model_id
...
...
backend/apps/openai/main.py
View file @
28ca6fb6
...
@@ -359,7 +359,6 @@ async def generate_chat_completion(
...
@@ -359,7 +359,6 @@ async def generate_chat_completion(
model_info
=
Models
.
get_model_by_id
(
model_id
)
model_info
=
Models
.
get_model_by_id
(
model_id
)
if
model_info
:
if
model_info
:
print
(
model_info
)
if
model_info
.
base_model_id
:
if
model_info
.
base_model_id
:
payload
[
"model"
]
=
model_info
.
base_model_id
payload
[
"model"
]
=
model_info
.
base_model_id
...
...
src/lib/components/chat/Chat.svelte
View file @
28ca6fb6
...
@@ -1145,28 +1145,6 @@
...
@@ -1145,28 +1145,6 @@
return [];
return [];
});
});
};
};
const addTag = async (tagName) => {
const res = await addTagById(localStorage.token, $chatId, tagName);
tags = await getTags();
chat = await updateChatById(localStorage.token, $chatId, {
tags: tags
});
_tags.set(await getAllChatTags(localStorage.token));
};
const deleteTag = async (tagName) => {
const res = await deleteTagById(localStorage.token, $chatId, tagName);
tags = await getTags();
chat = await updateChatById(localStorage.token, $chatId, {
tags: tags
});
_tags.set(await getAllChatTags(localStorage.token));
};
</script>
</script>
<svelte:head>
<svelte:head>
...
...
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