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 12, 2023
1 parent 6398dc1 commit 9ae1007
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions frontend/src/views/conversation/components/NewConversationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,19 +199,8 @@ const renderPluginSelectionTag: SelectRenderTag = ({ option, handleClose }) => {
};
function setDefaultValues() {
if (appStore.lastSelectedModel) {
if (
newConversationInfo.value.source === 'openai_web' &&
availableModels.value.find((model) => model.value === appStore.lastSelectedModel)
) {
newConversationInfo.value.model = appStore.lastSelectedModel;
} else
{
newConversationInfo.value.source = 'openai_web';
newConversationInfo.value.model = 'gpt_3_5';
}
}
}
setDefaultValues();
Expand Down

0 comments on commit 9ae1007

Please sign in to comment.