Skip to content

Commit

Permalink
updateto gpt-4-turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
yangjiakai committed Apr 15, 2024
1 parent 403c267 commit b2d7d1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/components/ApiKeyDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,24 @@ const promptList = computed(() => {
<v-label class="font-weight-medium mb-2 ml-2 mt-5">{{
$t("chatgpt.config.model")
}}</v-label>
<v-card variant="outlined" style="width: 220px" class="flex ml-2 pa-2">
<v-card variant="outlined" style="width: 430px" class="flex ml-2 pa-2">
<v-btn
:variant="chatGPTStore.model === 'gpt-3.5-turbo' ? 'flat' : 'text'"
color="primary"
class="flex-fill mr-3"
@click="chatGPTStore.updateModel('gpt-3.5-turbo')"
width="200"
>GPT-3.5</v-btn
>
<v-btn
:variant="
chatGPTStore.model === 'gpt-4-1106-preview' ? 'flat' : 'text'
chatGPTStore.model === 'gpt-4-turbo-2024-04-09' ? 'flat' : 'text'
"
color="primary"
class="flex-fill"
@click="chatGPTStore.updateModel('gpt-4-1106-preview')"
>GPT-4.0</v-btn
width="200"
@click="chatGPTStore.updateModel('gpt-4-turbo-2024-04-09')"
>GPT-4 turbo</v-btn
>
</v-card>

Expand Down
2 changes: 1 addition & 1 deletion src/stores/chatGPTStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const useChatGPTStore = defineStore({
configDialog: false,
apiKey: "",
proxyUrl: "https://api.openai-proxy.com",
model: "gpt-3.5-turbo",
model: "gpt-4-turbo-2024-04-09",
}),

persist: {
Expand Down

0 comments on commit b2d7d1d

Please sign in to comment.