大模型
  1. 报告生成
大模型
  • 通用版智能问数
    • 登录登出
      • 登录
      • 登出
    • 找数
      • 创建会话
      • 获取会话
      • 删除会话
      • 找数
      • 用户反馈
      • 数据目录向量化
    • 问数
      • 创建会话
      • 获取会话
      • 删除会话
      • 下拉选数据源
      • 问答场景列表
      • 智能问数
      • 问答反馈
      • 问数以及问答
      • 查询数据
      • 猜你想问
    • 数据源管理
      • 添加数据源
      • 修改数据源
      • 测试连通性
      • 查询所有数据源
      • 删除数据源
    • 问答场景管理
      • 添加问答场景
      • 修改问答场景
      • 删除问答场景
      • 添加问题推荐
      • 关联数据源
      • 数据源所有表
      • 场景列表
    • 日志查询
      • 日志查询
    • 知识维护
      • 上传文件
      • 获取知识列表
      • 删除文件
      • 预览前缀地址
      • 文件预览
    • 分类
      POST
    • langchat
      POST
  • 重庆-智能问数
    • 重庆数据服务统一门户
      POST
    • 制度向量化
      POST
    • 典型成果向量化
      POST
    • 数据目录向量化
      POST
    • 新-问数
      POST
  • 新疆-智能问数
    • 新疆电量预测 - 智能问数
      POST
    • 新疆电量预测-查询数据
      POST
  • 报告生成
    • 测试
      • 自适应rag
      • 上传文档
      • manus测试
      • react测试
      • 数据库查询
      • 报告生成
      • subgraph测试
      • 继续执行
      • reflect测试
      • 报告保存
    • 数据源管理
      • 新增数据源
      • 修改数据源
      • 删除数据源
      • 根据ID获取数据源
      • 获取数据源列表
      • 分页获取数据源
    • 知识库管理
      • 新增知识库
      • 修改知识库
      • 删除知识库
      • 根据ID获取知识库
      • 获取知识库列表
      • 分页获取知识库
    • 文档管理
      • 上传文档
      • 删除文档
      • 获取文档列表
      • 根据ID获取文档
      • 分页获取文档
    • Xinfrence-Qwen3工具调用
      POST
    • 报告生成
      POST
  1. 报告生成

Xinfrence-Qwen3工具调用

开发中
POST
http://192.168.0.84:9997/v1/chat/completions

请求参数

Body 参数application/json
object {0}
示例
{
  "model" : "qwen3",
  "messages" : [ {
    "role" : "system",
    "content" : "You are an artificial intelligence assistant"
  }, {
    "role" : "user",
    "content" : "What is the sum of 1 and 2 /no_think"
  }, {
    "role" : "assistant",
    "content":null,
    "tool_calls" : [ {
      "id" : "call_550cfa69-7604-4578-a2d1-25fcc798603b",
      "type" : "function",
      "function" : {
        "id" : "call_550cfa69-7604-4578-a2d1-25fcc798603b",
        "name" : "add",
        "arguments" : "{\"arg0\": 1, \"arg1\": 2}"
      }
    } ]
  }, {
    "role" : "tool",
    "content" : "3.0",
    "tool_call_id" : "call_550cfa69-7604-4578-a2d1-25fcc798603b"
  } ],
  "temperature" : 0.1,
  "tools" : [ {
    "type" : "function",
    "function" : {
      "name" : "add",
      "description" : "求两个数的和",
      "parameters" : {
        "properties" : {
          "arg0" : {
            "type" : "integer",
            "description" : "数字"
          },
          "arg1" : {
            "type" : "integer",
            "description" : "数字"
          }
        },
        "required" : [ "arg0", "arg1" ]
      }
    }
  }, {
    "type" : "function",
    "function" : {
      "name" : "sqrt",
      "description" : "求平方根",
      "parameters" : {
        "properties" : {
          "arg0" : {
            "type" : "number",
            "description" : "数字"
          }
        },
        "required" : [ "arg0" ]
      }
    }
  } ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://192.168.0.84:9997/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data-raw '{
  "model" : "qwen3",
  "messages" : [ {
    "role" : "system",
    "content" : "You are an artificial intelligence assistant"
  }, {
    "role" : "user",
    "content" : "What is the sum of 1 and 2 /no_think"
  }, {
    "role" : "assistant",
    "content":null,
    "tool_calls" : [ {
      "id" : "call_550cfa69-7604-4578-a2d1-25fcc798603b",
      "type" : "function",
      "function" : {
        "id" : "call_550cfa69-7604-4578-a2d1-25fcc798603b",
        "name" : "add",
        "arguments" : "{\"arg0\": 1, \"arg1\": 2}"
      }
    } ]
  }, {
    "role" : "tool",
    "content" : "3.0",
    "tool_call_id" : "call_550cfa69-7604-4578-a2d1-25fcc798603b"
  } ],
  "temperature" : 0.1,
  "tools" : [ {
    "type" : "function",
    "function" : {
      "name" : "add",
      "description" : "求两个数的和",
      "parameters" : {
        "properties" : {
          "arg0" : {
            "type" : "integer",
            "description" : "数字"
          },
          "arg1" : {
            "type" : "integer",
            "description" : "数字"
          }
        },
        "required" : [ "arg0", "arg1" ]
      }
    }
  }, {
    "type" : "function",
    "function" : {
      "name" : "sqrt",
      "description" : "求平方根",
      "parameters" : {
        "properties" : {
          "arg0" : {
            "type" : "number",
            "description" : "数字"
          }
        },
        "required" : [ "arg0" ]
      }
    }
  } ]
}'

返回响应

🟢200成功
application/json
Body
id
string 
必需
model
string 
必需
object
string 
必需
created
integer 
必需
choices
array [object {3}] 
必需
index
integer 
可选
message
object 
可选
finish_reason
string 
可选
usage
object 
必需
prompt_tokens
integer 
必需
completion_tokens
integer 
必需
total_tokens
integer 
必需
示例
{
    "id": "string",
    "model": "string",
    "object": "string",
    "created": 0,
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "string",
                "content": "string",
                "tool_calls": [
                    null
                ],
                "reasoning_content": "string"
            },
            "finish_reason": "string"
        }
    ],
    "usage": {
        "prompt_tokens": 0,
        "completion_tokens": 0,
        "total_tokens": 0
    }
}
修改于 2025-07-08 06:01:39
上一页
分页获取文档
下一页
报告生成
Built with