This commit is contained in:
Timothy J. Baek 2024-06-09 15:08:23 -07:00
parent 28ca6fb678
commit a93645aee8
2 changed files with 12 additions and 15 deletions

View File

@ -881,7 +881,6 @@ async def generate_openai_chat_completion(
model_info = Models.get_model_by_id(model_id)
if model_info:
print(model_info)
if model_info.base_model_id:
payload["model"] = model_info.base_model_id

View File

@ -506,20 +506,18 @@
messages = messages;
const prompt = history.messages[parentId].content;
let searchQuery = prompt;
if (prompt.length > 100) {
searchQuery = await generateSearchQuery(localStorage.token, model, messages, prompt);
if (!searchQuery) {
toast.warning($i18n.t('No search query generated'));
responseMessage.status = {
...responseMessage.status,
done: true,
error: true,
description: 'No search query generated'
};
messages = messages;
return;
}
let searchQuery = await generateSearchQuery(localStorage.token, model, messages, prompt);
if (!searchQuery) {
toast.warning($i18n.t('No search query generated'));
responseMessage.status = {
...responseMessage.status,
done: true,
error: true,
description: 'No search query generated'
};
messages = messages;
searchQuery = prompt;
}
responseMessage.status = {