聊天
@@ -67,6 +76,9 @@
+
+
+
{{
@@ -125,6 +137,7 @@ const item = ref({})
const showDialog = ref(false)
const rules = reactive({
platform: [{required: true, message: '请选择平台', trigger: 'change',}],
+ name: [{required: true, message: '请输入名称', trigger: 'change',}],
type: [{required: true, message: '请选择用途', trigger: 'change',}],
value: [{required: true, message: '请输入 API KEY 值', trigger: 'change',}]
})
@@ -135,8 +148,8 @@ const platforms = ref([
{
name: "【OpenAI】ChatGPT",
value: "OpenAI",
- api_url: "https://api.fast-tunnel.one/v1/chat/completions",
- img_url: "https://api.openai.com/v1/images/generations"
+ api_url: "https://gpt.bemore.lol/v1/chat/completions",
+ img_url: "https://gpt.bemore.lol/v1/images/generations"
},
{
name: "【讯飞】星火大模型",
diff --git a/web/src/views/admin/SysConfig.vue b/web/src/views/admin/SysConfig.vue
index 772d914c..2046d352 100644
--- a/web/src/views/admin/SysConfig.vue
+++ b/web/src/views/admin/SysConfig.vue
@@ -204,9 +204,6 @@
OpenAI
-
-
-
值越大 AI 回答越发散,值越小回答越保守,建议保持默认值
@@ -216,9 +213,6 @@
Azure
-
-
-
值越大 AI 回答越发散,值越小回答越保守,建议保持默认值
@@ -228,9 +222,6 @@
ChatGLM
-
-
-
值越大 AI 回答越发散,值越小回答越保守,建议保持默认值
@@ -240,9 +231,6 @@
文心一言
-
-
-
值越大 AI 回答越发散,值越小回答越保守,建议保持默认值
@@ -252,9 +240,6 @@
讯飞星火
-
-
-
值越大 AI 回答越发散,值越小回答越保守,建议保持默认值
@@ -264,10 +249,7 @@
AI绘图
-
-
-
-
+
@@ -287,11 +269,11 @@ import {InfoFilled, UploadFilled} from "@element-plus/icons-vue";
const system = ref({models: []})
const chat = ref({
- open_ai: {api_url: "", temperature: 1, max_tokens: 1024},
- azure: {api_url: "", temperature: 1, max_tokens: 1024},
- chat_gml: {api_url: "", temperature: 0.95, max_tokens: 1024},
- baidu: {api_url: "", temperature: 0.95, max_tokens: 1024},
- xun_fei: {api_url: "", temperature: 0.5, max_tokens: 1024},
+ open_ai: {temperature: 1, max_tokens: 1024},
+ azure: {temperature: 1, max_tokens: 1024},
+ chat_gml: {temperature: 0.95, max_tokens: 1024},
+ baidu: {temperature: 0.95, max_tokens: 1024},
+ xun_fei: {temperature: 0.5, max_tokens: 1024},
context_deep: 0,
enable_context: true,
enable_history: true,