Skip to content

Commit

Permalink
Update NewConversationForm.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
spammenotinoz authored Oct 9, 2023
1 parent 3542c9c commit 5ef339a
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<template>
<div class="mt-6">
<n-form :label-placement="'left'" :label-align="'left'" label-width="100px">
Expand Down Expand Up @@ -193,13 +194,11 @@ watch(
watch(
() => {
const model = newConversationInfo.value.model;
const gpt4Count = serverStatus.value?.gpt4_count_in_3_hours ?? 0;
const source = (model === 'gpt_4' && gpt4Count > 40) ? 'openai_api' : (model === 'gpt_4') ? 'openai_web' : 'openai_web'; // If GPT Usage is high, then use APIs
return {
title: newConversationInfo.value.title,
source: source,
model: model,
source: openai_web,
model: gpt_3_5,
openaiWebPlugins: newConversationInfo.value.openaiWebPlugins,
} as NewConversationInfo;
},
Expand Down

0 comments on commit 5ef339a

Please sign in to comment.