-
-
-
AI 接口地址
-
支持多种主流AI接口协议,一键切换
-
-
-
-
-
-
-
接口地址
-
- {{ baseUrl }}
- {{ currentApi.url }}
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
{{ api.name }}
+
+
+
-
-
-
-
-
+
+
+
+
API 接口文档
+
+
+
+
+
+
+
+
+
+ 自 2025 年末起,AI 领域接口标准逐渐分化,原有的统一接口 /v1/chat/completions 已不再兼容所有模型。各厂商推出的新接口差异较大,接入第三方工具时,请务必根据具体模型选择正确的 API 类型。您可前往
+ 模型库
+ 查看各模型对应的 API 信息。
+
+
+
+
+
+
+
+
{{ currentApi.name }}
+
+
{{ currentApi.description }}
+
+
+
+
+
+
+
+
+
请求地址 (Endpoint)
+
+
+ {{ baseUrl }}
+ {{ currentApi.url }}
+
+
+
+
+ Base
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
curl {{ fullUrl }} \
+ -H "Content-Type: application/json" \
+ -H "Authorization: Bearer YOUR_API_KEY" \
+ -d '{{ JSON.stringify(currentApi.requestBody, null, 2) }}'
+
+
+
+
+
diff --git a/Yi.Ai.Vue3/src/pages/chat/index.vue b/Yi.Ai.Vue3/src/pages/chat/index.vue
index 65e2ce38..a758d427 100644
--- a/Yi.Ai.Vue3/src/pages/chat/index.vue
+++ b/Yi.Ai.Vue3/src/pages/chat/index.vue
@@ -15,6 +15,7 @@ const navItems = [
{ name: 'image', label: 'AI图片', icon: 'Picture', path: '/chat/image' },
{ name: 'video', label: 'AI视频', icon: 'VideoCamera', path: '/chat/video' },
{ name: 'monitor', label: 'AI智能体', icon: 'Monitor', path: '/chat/agent' },
+ { name: 'ChatLineRound', label: 'AI接口', icon: 'ChatLineRound', path: '/chat/api' },
];
// 当前激活的菜单
diff --git a/Yi.Ai.Vue3/src/styles/dark-theme.scss b/Yi.Ai.Vue3/src/styles/dark-theme.scss
index 82b30894..c8d01305 100644
--- a/Yi.Ai.Vue3/src/styles/dark-theme.scss
+++ b/Yi.Ai.Vue3/src/styles/dark-theme.scss
@@ -2062,4 +2062,7 @@
.marked-markdown.theme-light .code-block-wrapper .code-block-body .line-numbers{
@include dark-theme-div;
}
+ .url-box{
+ @include dark-theme-div;
+ }
}
diff --git a/Yi.Ai.Vue3/types/components.d.ts b/Yi.Ai.Vue3/types/components.d.ts
index f139484a..2e45c353 100644
--- a/Yi.Ai.Vue3/types/components.d.ts
+++ b/Yi.Ai.Vue3/types/components.d.ts
@@ -18,6 +18,7 @@ declare module 'vue' {
DeepThinking: typeof import('./../src/components/DeepThinking/index.vue')['default']
Demo: typeof import('./../src/components/FontAwesomeIcon/demo.vue')['default']
ElAlert: typeof import('element-plus/es')['ElAlert']
+ ElAside: typeof import('element-plus/es')['ElAside']
ElAvatar: typeof import('element-plus/es')['ElAvatar']
ElButton: typeof import('element-plus/es')['ElButton']
ElCard: typeof import('element-plus/es')['ElCard']
diff --git a/Yi.Ai.Vue3/types/import_meta.d.ts b/Yi.Ai.Vue3/types/import_meta.d.ts
index 8f2a798b..c98d612e 100644
--- a/Yi.Ai.Vue3/types/import_meta.d.ts
+++ b/Yi.Ai.Vue3/types/import_meta.d.ts
@@ -7,6 +7,7 @@ interface ImportMetaEnv {
readonly VITE_WEB_BASE_API: string;
readonly VITE_API_URL: string;
readonly VITE_FILE_UPLOAD_API: string;
+ readonly VITE_BUILD_COMPRESS: string;
readonly VITE_SSO_SEVER_URL: string;
readonly VITE_APP_VERSION: string;
}