Change the api key to local storage

This commit is contained in:
Rafi
2023-02-12 14:16:34 +08:00
parent edde4112c1
commit 6dfc92ede9
7 changed files with 119 additions and 19 deletions

View File

@@ -18,17 +18,17 @@
<v-card>
<v-card-title>
<span class="text-h5">OpenAI Models</span>
</v-card-title>
<v-divider></v-divider>
<v-card-text>
<div>
About the models:
<a target="_blank" href="https://platform.openai.com/docs/models/overview">https://platform.openai.com/docs/models/overview</a>
</div>
</v-card-title>
<v-divider></v-divider>
<v-card-text>
<div
v-for="(model, index) in models"
:key="index"
class="d-flex align-center"
class="mt-5 d-flex align-center"
>
<v-switch
v-model="currentModel"
@@ -109,7 +109,6 @@ const removeModel = (index) => {
models.value.splice(index, 1)
}
const save = async () => {
console.log(currentModel.value)
if (!currentModel.value) {
showWarning('Please select at least one model.')
return