视频对话智能体
视频对话智能体
POST http://{ip:port}/uran/assistants/v1
参数
参数 | 类型 | 默认值 | 说明 |
---|---|---|---|
chatId | str | [] | 对话ID用来关联上下文 |
model | str | [] | 模型名 |
tools | list[string] | [] | 插件名,目前插件有data_vista(智能图表),docx_generator(智能文档),retrieval(知识库检索)。 |
messages | list[string] | [] | 用户消息 |
plugins | list[string] | [] | 插件以及查询参数(用于替代tools) |
调用示例
请求示例
{
"chatId": "1231456789",
"tools": [
"video_chat"
],
"messages": [
{
"role": "user",
"content": "视频里面有车出现吗",
}
],
"plugins":[
{
"type": "video_chat",
"videoId": 1782953582692560898
}
]
}
参数 | 类型 | 默认值 | 说明 |
---|---|---|---|
step | str | [] | 展示系统正在执行过程 |
content | str | [] | 模型回答内容 |
extraData | map[] | [] | 额外信息 |
+videoLocation | map[string] | [] | 视频定位 |
++videoPos | list[string] | [] | 视频位置单位秒 |
响应示例
{ "choices": [{"delta": {"step": "video_chat"}}]}
{ "choices": [{"delta": {"step": "视频分析中"}}]}
{ "choices": [{"delta": {"step": "视频分析成功"}}]}
{ "choices": [{"delta": {"content": "是的,视频里面有车出现。"}}]}
{ "choices": [{"delta": {"content": "\n![](http://10.10.8.3/storage/files/1783075265630441473.jpg)"}}]}
{
"choices": [
{
"delta": {
"extraData": {
"videoLocation":{
"videoPos":5,
}
}
}
}
]
}