feat: AI端点测试动态参数表单、接口工作流行内测试、本地开发环境改为线上域名
- 后端新增 /ai/endpoint/test 和 /ai/endpoint/stream 接口,支持直接端点测试 - 前端增加行内测试功能(场景绑定+接口工作流) - 测试对话框增加动态参数表单和参数定义编辑 - 支持 _meta 格式的默认输入参数处理 - web、web-admin 本地开发环境 API 调用改为线上域名 https://lifescript.happylifeos.com Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -4,9 +4,9 @@ VITE_APP_TITLE=情绪博物馆 - 开发
|
||||
VITE_APP_VERSION=1.0.0
|
||||
|
||||
# API配置
|
||||
VITE_API_BASE_URL=http://localhost:19089/api
|
||||
VITE_WS_BASE_URL=ws://localhost:19089/api
|
||||
VITE_UPLOAD_URL=http://localhost:19089/api/upload
|
||||
VITE_API_BASE_URL=https://lifescript.happylifeos.com/api
|
||||
VITE_WS_BASE_URL=wss://lifescript.happylifeos.com/ws
|
||||
VITE_UPLOAD_URL=https://lifescript.happylifeos.com/api/upload
|
||||
|
||||
# 调试配置
|
||||
VITE_DEBUG=true
|
||||
|
||||
@@ -79,9 +79,9 @@ export const getEnvConfig = (): EnvConfig => {
|
||||
case 'local':
|
||||
return {
|
||||
name: '本地环境',
|
||||
apiBaseUrl: 'http://localhost:19089/api',
|
||||
wsBaseUrl: 'ws://localhost:19089/api',
|
||||
uploadUrl: 'http://localhost:19089/api/upload',
|
||||
apiBaseUrl: 'https://lifescript.happylifeos.com/api',
|
||||
wsBaseUrl: 'wss://lifescript.happylifeos.com/ws',
|
||||
uploadUrl: 'https://lifescript.happylifeos.com/api/upload',
|
||||
debug: true,
|
||||
mock: false,
|
||||
appTitle: '情绪博物馆 - 本地',
|
||||
@@ -91,9 +91,9 @@ export const getEnvConfig = (): EnvConfig => {
|
||||
case 'dev':
|
||||
return {
|
||||
name: '开发环境',
|
||||
apiBaseUrl: 'http://localhost:19089/api',
|
||||
wsBaseUrl: 'ws://localhost:19089/api',
|
||||
uploadUrl: 'http://localhost:19089/api/upload',
|
||||
apiBaseUrl: 'https://lifescript.happylifeos.com/api',
|
||||
wsBaseUrl: 'wss://lifescript.happylifeos.com/ws',
|
||||
uploadUrl: 'https://lifescript.happylifeos.com/api/upload',
|
||||
debug: true,
|
||||
mock: false,
|
||||
appTitle: '情绪博物馆 - 开发',
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ export default defineConfig({
|
||||
open: true,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:19089',
|
||||
target: 'https://lifescript.happylifeos.com',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user