mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-23 11:46:38 +08:00
fix(ui): 细节调整
This commit is contained in:
parent
a590d0497f
commit
ff4b267858
@ -38,7 +38,8 @@ onMounted(async () => {
|
||||
});
|
||||
</script>
|
||||
<template>
|
||||
<a-form ref="formRef" :model="system" :rules="rules" auto-label-width>
|
||||
<a-card :bordered="false">
|
||||
<a-form ref="formRef" :model="system" :rules="rules" auto-label-width :disabled="submitting">
|
||||
<a-form-item label="网站标题" field="title">
|
||||
<a-input v-model="system['title']" />
|
||||
</a-form-item>
|
||||
@ -150,4 +151,5 @@ onMounted(async () => {
|
||||
<a-button type="primary" :loading="submitting" @click="handleSave">提交</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-card>
|
||||
</template>
|
||||
|
@ -46,7 +46,8 @@ const reload = async () => {
|
||||
onMounted(reload);
|
||||
</script>
|
||||
<template>
|
||||
<a-form ref="formRef" :model="chat" :rules="rules" auto-label-width>
|
||||
<a-card :bordered="false">
|
||||
<a-form ref="formRef" :model="chat" :rules="rules" auto-label-width :disabled="submitting">
|
||||
<a-form-item label="开启聊天上下文">
|
||||
<a-switch v-model="chat['enable_context']" />
|
||||
</a-form-item>
|
||||
@ -63,7 +64,10 @@ onMounted(reload);
|
||||
</a-form-item>
|
||||
|
||||
<a-divider content-position="center">OpenAI</a-divider>
|
||||
<a-form-item label="模型创意度" extra="值越大 AI 回答越发散,值越小回答越保守,建议保持默认值">
|
||||
<a-form-item
|
||||
label="模型创意度"
|
||||
extra="值越大 AI 回答越发散,值越小回答越保守,建议保持默认值"
|
||||
>
|
||||
<a-slider v-model="chat['open_ai']['temperature']" :max="2" :step="0.1" />
|
||||
</a-form-item>
|
||||
<a-form-item label="最大响应长度">
|
||||
@ -74,7 +78,10 @@ onMounted(reload);
|
||||
</a-form-item>
|
||||
|
||||
<a-divider content-position="center">Azure</a-divider>
|
||||
<a-form-item label="模型创意度" extra="值越大 AI 回答越发散,值越小回答越保守,建议保持默认值">
|
||||
<a-form-item
|
||||
label="模型创意度"
|
||||
extra="值越大 AI 回答越发散,值越小回答越保守,建议保持默认值"
|
||||
>
|
||||
<a-slider v-model="chat['azure']['temperature']" :max="2" :step="0.1" />
|
||||
</a-form-item>
|
||||
<a-form-item label="最大响应长度">
|
||||
@ -85,7 +92,10 @@ onMounted(reload);
|
||||
</a-form-item>
|
||||
|
||||
<a-divider content-position="center">ChatGLM</a-divider>
|
||||
<a-form-item label="模型创意度" extra="值越大 AI 回答越发散,值越小回答越保守,建议保持默认值">
|
||||
<a-form-item
|
||||
label="模型创意度"
|
||||
extra="值越大 AI 回答越发散,值越小回答越保守,建议保持默认值"
|
||||
>
|
||||
<a-slider v-model="chat['chat_gml']['temperature']" :max="1" :step="0.01" />
|
||||
</a-form-item>
|
||||
<a-form-item label="最大响应长度">
|
||||
@ -96,7 +106,10 @@ onMounted(reload);
|
||||
</a-form-item>
|
||||
|
||||
<a-divider content-position="center">文心一言</a-divider>
|
||||
<a-form-item label="模型创意度" extra="值越大 AI 回答越发散,值越小回答越保守,建议保持默认值">
|
||||
<a-form-item
|
||||
label="模型创意度"
|
||||
extra="值越大 AI 回答越发散,值越小回答越保守,建议保持默认值"
|
||||
>
|
||||
<a-slider v-model="chat['baidu']['temperature']" :max="1" :step="0.01" />
|
||||
</a-form-item>
|
||||
<a-form-item label="最大响应长度">
|
||||
@ -107,7 +120,10 @@ onMounted(reload);
|
||||
</a-form-item>
|
||||
|
||||
<a-divider content-position="center">讯飞星火</a-divider>
|
||||
<a-form-item label="模型创意度" extra="值越大 AI 回答越发散,值越小回答越保守,建议保持默认值">
|
||||
<a-form-item
|
||||
label="模型创意度"
|
||||
extra="值越大 AI 回答越发散,值越小回答越保守,建议保持默认值"
|
||||
>
|
||||
<a-slider v-model="chat['xun_fei']['temperature']" :max="1" :step="0.1" />
|
||||
</a-form-item>
|
||||
<a-form-item label="最大响应长度">
|
||||
@ -128,4 +144,5 @@ onMounted(reload);
|
||||
<a-button type="primary" :loading="submitting" @click="handleSave">提交</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-card>
|
||||
</template>
|
||||
|
@ -56,8 +56,10 @@ const onUploadImg = (files, callback) => {
|
||||
onMounted(reload);
|
||||
</script>
|
||||
<template>
|
||||
<a-form ref="formRef" :model="formData" auto-label-width>
|
||||
<a-form ref="formRef" :model="formData" auto-label-width :disabled="submitting">
|
||||
<a-form-item>
|
||||
<md-editor v-model="formData.content" @on-upload-img="onUploadImg" />
|
||||
</a-form-item>
|
||||
<a-form-item>
|
||||
<a-button type="primary" :loading="submitting" @click="handleSave">提交</a-button>
|
||||
</a-form-item>
|
||||
|
Loading…
Reference in New Issue
Block a user