forked from Leaf/amber-ui
增加 话语随机性选项
This commit is contained in:
parent
a17d53f453
commit
474570c1a7
@ -20,6 +20,8 @@ definitions:
|
||||
type: string
|
||||
prompt:
|
||||
type: string
|
||||
temperature:
|
||||
type: number
|
||||
updated_at:
|
||||
type: string
|
||||
user_id:
|
||||
@ -297,6 +299,19 @@ definitions:
|
||||
prompt:
|
||||
maxLength: 512
|
||||
type: string
|
||||
temperature:
|
||||
enum:
|
||||
- 0.1
|
||||
- 0.2
|
||||
- 0.3
|
||||
- 0.4
|
||||
- 0.5
|
||||
- 0.6
|
||||
- 0.7
|
||||
- 0.8
|
||||
- 0.9
|
||||
- 1
|
||||
type: number
|
||||
required:
|
||||
- description
|
||||
- name
|
||||
@ -336,6 +351,19 @@ definitions:
|
||||
prompt:
|
||||
maxLength: 512
|
||||
type: string
|
||||
temperature:
|
||||
enum:
|
||||
- 0.1
|
||||
- 0.2
|
||||
- 0.3
|
||||
- 0.4
|
||||
- 0.5
|
||||
- 0.6
|
||||
- 0.7
|
||||
- 0.8
|
||||
- 0.9
|
||||
- 1
|
||||
type: number
|
||||
type: object
|
||||
schema.ChatCreateRequest:
|
||||
properties:
|
||||
|
@ -109,6 +109,18 @@
|
||||
</n-switch>
|
||||
允许助理 API 读取记忆
|
||||
</div>
|
||||
|
||||
<div class=mt-3>
|
||||
话语随机性 (Temperature)
|
||||
<n-slider
|
||||
v-model:value="currentAssistant.temperature"
|
||||
:step="0.1"
|
||||
:min="0"
|
||||
:max="1"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</n-form-item>
|
||||
|
||||
@ -157,8 +169,9 @@
|
||||
Completion API。</n-text
|
||||
>
|
||||
<n-text>
|
||||
我们的 API 端点是:{{ config.backend }}/api/openai-compatible/v1
|
||||
。密钥为下方的 API Key。
|
||||
我们的 API 端点是:{{
|
||||
config.backend
|
||||
}}/api/openai-compatible/v1 。密钥为下方的 API Key。
|
||||
</n-text>
|
||||
</div>
|
||||
</n-popover>
|
||||
|
@ -16,7 +16,7 @@ if (process.env.NODE_ENV === "production") {
|
||||
config.oauth_client_id = "16";
|
||||
}
|
||||
|
||||
config.backend = "https://amber-api.leaflow.cn";
|
||||
// config.backend = "https://amber-api.leaflow.cn";
|
||||
|
||||
// console.log("api endpoint: " + config.backend);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user