mirror of
https://github.com/open-webui/open-webui
synced 2025-02-06 13:10:16 +00:00
refac
This commit is contained in:
parent
da4586f27d
commit
28ca6fb678
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user