Skip to content

Commit 94bffd0

Browse files
committed
完善api设置中api地址的占位符
1 parent b27248b commit 94bffd0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/components/ai/AIConfig.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@
7575
dense
7676
v-model="aiConfig.apiUrl"
7777
class="col-7"
78-
:placeholder="`${aiConfig.apiType} API地址`"
78+
:placeholder="
79+
aiConfig.apiType === 'openai'
80+
? '例:https://api.openai.com'
81+
: '例:http://localhost:11434'
82+
"
7983
>
8084
<template v-slot:prepend>
8185
<q-badge

0 commit comments

Comments
 (0)