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:
@@ -237,6 +237,10 @@ export function listAiEndpoints() {
|
||||
return request({ url: '/ai/endpoints', method: 'get' })
|
||||
}
|
||||
|
||||
export function getEndpointTestTemplate(id: string) {
|
||||
return request({ url: '/ai/endpoints/test-template', method: 'get', params: { id } })
|
||||
}
|
||||
|
||||
export function saveAiEndpoint(data: AiEndpointConfig) {
|
||||
return request({ url: '/ai/endpoints', method: data.id ? 'put' : 'post', data })
|
||||
}
|
||||
@@ -249,6 +253,10 @@ export function listAiScenes() {
|
||||
return request({ url: '/ai/scenes', method: 'get' })
|
||||
}
|
||||
|
||||
export function getSceneTestTemplate(sceneCode: string) {
|
||||
return request({ url: '/ai/scenes/test-template', method: 'get', params: { sceneCode } })
|
||||
}
|
||||
|
||||
export function saveAiScene(data: AiSceneBinding) {
|
||||
return request({ url: '/ai/scenes', method: data.id ? 'put' : 'post', data })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user