feat: 增强智能体模型调用兼容能力

- 增加模型流式开关和 HTTP 传输策略配置

- 使用 AgentScope 执行基础连接、流式与 VLM 双阶段验证

- 固定多模态校验图片并统一验证状态展示
This commit is contained in:
2026-07-17 19:57:06 +08:00
parent ba21f861f4
commit 791649c7d5
22 changed files with 1492 additions and 107 deletions

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
/* eslint-disable vue/no-mutating-props */
import type {AgentInfo, AgentOption} from '../types';
import type { AgentInfo, AgentOption } from '../types';
import {InfoFilled} from '@element-plus/icons-vue';
import { InfoFilled } from '@element-plus/icons-vue';
import {
ElForm,
ElFormItem,
@@ -11,6 +11,7 @@ import {
ElInputNumber,
ElOption,
ElSelect,
ElSwitch,
ElTooltip,
} from 'element-plus';
@@ -75,6 +76,27 @@ const emit = defineEmits<{ change: [] }>();
/>
</ElSelect>
</ElFormItem>
<ElFormItem>
<template #label>
<span class="agent-form__label">
模型流式响应
<ElTooltip
content="关闭后,模型会在生成完成后一次性返回回答。"
effect="light"
placement="top"
>
<ElIcon class="agent-form__info" aria-label="模型流式响应说明">
<InfoFilled />
</ElIcon>
</ElTooltip>
</span>
</template>
<ElSwitch
v-model="agent.generationConfigJson!.stream"
aria-label="模型流式响应"
@change="emit('change')"
/>
</ElFormItem>
<ElFormItem label="系统提示词">
<ElInput
v-model="agent.promptConfigJson!.systemPrompt"