Omni
  1. OmniGPT
Omni
  • Omni WEB
    • 获取系统配置
      GET
    • 获取验证码
      GET
    • 用户登录
      POST
    • 获取聊天历史
      POST
    • 聊天
      POST
    • 文件上传
      POST
    • 获取企业微信配置
      GET
    • 获取命名空间列表
      GET
    • 命名空间选中
      POST
    • 用户登录V2
      POST
    • 获取智能体列表
      GET
  • Omni BOSS
    • BOSS账号初始化
    • 获取验证码
    • BOSS登录
    • BOSS登出
    • 获取租户列表
    • 新增租户
    • 获取租户详情
    • 更新租户状态
    • 租户管理员密码重置
    • 租户更新
    • 获取模型供应商列表
    • 获取供应商的已添加模型
    • 添加或修改应商模型
    • 删除供应商的已添加模型
    • 模型启用
    • 模型禁用
    • 供应商配置(新增/修改)
    • 删除模型供应商
    • 获取供应商认证配置
    • 获取模型认证配置
  • E-HR
    • 文件上传
    • 获取待处理的简历列表
    • 简历基础筛选
    • 获取简历结果
  • ollama
    • chat
  • ESB
    • 账号新增
    • 账号密码更新
    • 账号停用
    • 账号启用
    • 连接测试
  • OmniGPT
    • 召回测试
      POST
    • 获取验证码
      GET
    • 登录
      POST
    • 取消发布
      POST
    • 智能体列表
      GET
    • 聊天页-应用列表
      GET
    • 获取发布历史
      GET
    • 获取模型供应商
      GET
    • 获取工具列表
      GET
    • agent聊天
      POST
    • 获取模型参数规则
      GET
    • 租户成员分页查询
      GET
    • 通过工号邀请成员
      POST
    • 获取模型供应商的配置
      GET
    • chat消息(chatflow)
      POST
    • chat消息(agent)
      POST
    • 未命名接口
      POST
    • 获取智能体参数
      GET
    • think消息(workflow)
      POST
  • 获取简历评分
    POST
  • 获取员工公司code
    GET
  • 创建待评分简历记录
    POST
  • 服务重新部署
    POST
  • 新增数据
    POST
  • chat
    POST
  • 测试
    GET
  • RAG文件上传
    POST
  • 知识库分页查询
    GET
  1. OmniGPT

agent聊天

开发中
POST
/console/api/apps/ecf7242f-1385-4ba7-81a8-e516f03bfa78/chat-messages

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Body 参数application/json

示例
{
    "response_mode": "string",
    "conversation_id": "string",
    "files": [
        "string"
    ],
    "query": "string",
    "inputs": {},
    "model_config": {
        "pre_prompt": "string",
        "prompt_type": "string",
        "chat_prompt_config": {},
        "completion_prompt_config": {},
        "user_input_form": [
            "string"
        ],
        "dataset_query_variable": "string",
        "opening_statement": "string",
        "more_like_this": {
            "enabled": true
        },
        "suggested_questions": [
            "string"
        ],
        "suggested_questions_after_answer": {
            "enabled": true
        },
        "text_to_speech": {
            "enabled": true,
            "voice": "string",
            "language": "string"
        },
        "speech_to_text": {
            "enabled": true
        },
        "retriever_resource": {
            "enabled": true
        },
        "sensitive_word_avoidance": {
            "enabled": true,
            "type": "string",
            "configs": [
                "string"
            ]
        },
        "agent_mode": {
            "max_iteration": 0,
            "enabled": true,
            "strategy": "string",
            "tools": [
                "string"
            ],
            "prompt": null
        },
        "dataset_configs": {
            "retrieval_model": "string",
            "top_k": 0,
            "reranking_enable": true,
            "datasets": {
                "datasets": [
                    "string"
                ]
            }
        },
        "file_upload": {
            "image": {
                "detail": "string",
                "enabled": true,
                "number_limits": 0,
                "transfer_methods": [
                    "string"
                ]
            },
            "enabled": true,
            "allowed_file_types": [
                "string"
            ],
            "allowed_file_extensions": [
                "string"
            ],
            "allowed_file_upload_methods": [
                "string"
            ],
            "number_limits": 0,
            "fileUploadConfig": {
                "file_size_limit": 0,
                "batch_count_limit": 0,
                "image_file_size_limit": 0,
                "video_file_size_limit": 0,
                "audio_file_size_limit": 0,
                "workflow_file_upload_limit": 0
            }
        },
        "annotation_reply": {
            "enabled": true
        },
        "supportAnnotation": true,
        "appId": "string",
        "supportCitationHitInfo": true,
        "model": {
            "provider": "string",
            "name": "string",
            "mode": "string",
            "completion_params": {}
        }
    },
    "parent_message_id": null
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/console/api/apps/ecf7242f-1385-4ba7-81a8-e516f03bfa78/chat-messages' \
--header 'Content-Type: application/json' \
--data-raw '{
    "response_mode": "string",
    "conversation_id": "string",
    "files": [
        "string"
    ],
    "query": "string",
    "inputs": {},
    "model_config": {
        "pre_prompt": "string",
        "prompt_type": "string",
        "chat_prompt_config": {},
        "completion_prompt_config": {},
        "user_input_form": [
            "string"
        ],
        "dataset_query_variable": "string",
        "opening_statement": "string",
        "more_like_this": {
            "enabled": true
        },
        "suggested_questions": [
            "string"
        ],
        "suggested_questions_after_answer": {
            "enabled": true
        },
        "text_to_speech": {
            "enabled": true,
            "voice": "string",
            "language": "string"
        },
        "speech_to_text": {
            "enabled": true
        },
        "retriever_resource": {
            "enabled": true
        },
        "sensitive_word_avoidance": {
            "enabled": true,
            "type": "string",
            "configs": [
                "string"
            ]
        },
        "agent_mode": {
            "max_iteration": 0,
            "enabled": true,
            "strategy": "string",
            "tools": [
                "string"
            ],
            "prompt": null
        },
        "dataset_configs": {
            "retrieval_model": "string",
            "top_k": 0,
            "reranking_enable": true,
            "datasets": {
                "datasets": [
                    "string"
                ]
            }
        },
        "file_upload": {
            "image": {
                "detail": "string",
                "enabled": true,
                "number_limits": 0,
                "transfer_methods": [
                    "string"
                ]
            },
            "enabled": true,
            "allowed_file_types": [
                "string"
            ],
            "allowed_file_extensions": [
                "string"
            ],
            "allowed_file_upload_methods": [
                "string"
            ],
            "number_limits": 0,
            "fileUploadConfig": {
                "file_size_limit": 0,
                "batch_count_limit": 0,
                "image_file_size_limit": 0,
                "video_file_size_limit": 0,
                "audio_file_size_limit": 0,
                "workflow_file_upload_limit": 0
            }
        },
        "annotation_reply": {
            "enabled": true
        },
        "supportAnnotation": true,
        "appId": "string",
        "supportCitationHitInfo": true,
        "model": {
            "provider": "string",
            "name": "string",
            "mode": "string",
            "completion_params": {}
        }
    },
    "parent_message_id": null
}'

返回响应

🟢200成功
application/json
Body

示例
{}
修改于 2025-04-11 05:59:44
上一页
获取工具列表
下一页
获取模型参数规则
Built with