feat: configure catalog token pricing
This commit is contained in:
1 parent
4e09dfa0e0
commit
05ed1fc9a4
5 files changed
+299
-8
No files matched your search
@@ -721,7 +721,7 @@ $env:OPENAI_API_KEY="你的 MOYI 用户 API Key"
|
||||
<strong>{{ group.sourceLabel || '默认分组' }}</strong><small>{{ group.provider }}</small>
|
||||
<label>调用模型 ID <code>{{ group.id }}</code></label>
|
||||
<button class="text-link" @click="copy(group.id, '调用模型 ID', group.id)"><Copy :size="14" />{{ copySucceeded(group.id) ? '已复制' : '复制调用 ID' }}</button>
|
||||
<small v-if="group.pricing?.unit">输入 {{ group.pricing.input ?? '待定' }} / 输出 {{ group.pricing.output ?? '待定' }} · {{ group.pricing.unit }}</small>
|
||||
<small v-if="group.pricing?.unit">输入 {{ group.pricing.input ?? '待定' }} / 输出 {{ group.pricing.output ?? '待定' }} · {{ group.pricing.unit }}<template v-if="group.pricing.discountLabel"> · 对外 {{ group.pricing.discountLabel }}</template></small>
|
||||
<button class="button secondary" @click="tryModel({ ...selectedModel, groups: [group] })">试用此分组</button>
|
||||
</section>
|
||||
<template #footer><button class="button primary full" :disabled="!selectedModel.groups.length" @click="tryModel(selectedModel)"><Play :size="16" />{{ selectedModel.groups.length ? '在线试用' : '分组待上线' }}</button><button class="button secondary full" @click="selectedModel = null; emit('navigate', 'docs')"><BookOpen :size="16" />查看文档</button></template>
|
||||
|
||||
Reference in new issue
Block a user