增加 话语随机性选项
Some checks failed
Build / build (push) Failing after 8m37s

This commit is contained in:
ivamp 2024-09-18 22:02:38 +08:00
parent a17d53f453
commit 474570c1a7
3 changed files with 44 additions and 3 deletions

View File

@ -20,6 +20,8 @@ definitions:
type: string type: string
prompt: prompt:
type: string type: string
temperature:
type: number
updated_at: updated_at:
type: string type: string
user_id: user_id:
@ -297,6 +299,19 @@ definitions:
prompt: prompt:
maxLength: 512 maxLength: 512
type: string 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: required:
- description - description
- name - name
@ -336,6 +351,19 @@ definitions:
prompt: prompt:
maxLength: 512 maxLength: 512
type: string 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 type: object
schema.ChatCreateRequest: schema.ChatCreateRequest:
properties: properties:

View File

@ -109,6 +109,18 @@
</n-switch> </n-switch>
允许助理 API 读取记忆 允许助理 API 读取记忆
</div> </div>
<div class=mt-3>
话语随机性 (Temperature)
<n-slider
v-model:value="currentAssistant.temperature"
:step="0.1"
:min="0"
:max="1"
/>
</div>
</div> </div>
</n-form-item> </n-form-item>
@ -157,8 +169,9 @@
Completion API</n-text Completion API</n-text
> >
<n-text> <n-text>
我们的 API 端点是{{ config.backend }}/api/openai-compatible/v1 我们的 API 端点是{{
密钥为下方的 API Key config.backend
}}/api/openai-compatible/v1 密钥为下方的 API Key
</n-text> </n-text>
</div> </div>
</n-popover> </n-popover>

View File

@ -16,7 +16,7 @@ if (process.env.NODE_ENV === "production") {
config.oauth_client_id = "16"; 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); // console.log("api endpoint: " + config.backend);