Skip to main content

NextConsole (1.0.0)

Download OpenAPI specification:Download

NextConsole 诞生于一个坚定的信念:大语言模型将成为未来数字化生态中操作系统级别的核心IT资源。我们预见,如同操作系统统一管理硬件资源一样,企业需要一种全新的、智能化的控制台(Console)来高效调度、组织和释放大模型的无限潜能。

NextConsole 正是这一愿景的实践——我们不止于构建工具,更在打造下一代智能控制中枢。它让企业能够像调用计算资源一样,自然、流畅地调用和组织大模型能力,将分散的AI力量转化为可管理、可扩展、可进化的企业智能基础设施。

在这里,大模型不再是孤立的技术组件,而是成为企业数字化的核心承载层:通过智能代理(Agents)实现认知决策,通过知识库(Knowledge Base)沉淀集体智慧,通过工作流(Workflows)编排复杂业务逻辑——这一切都在统一的控制台中无缝协同。

NextConsole,让每个组织都能站在智能时代的前沿,真正将大模型转化为驱动业务创新的核心操作系统。释放大语言模型赋能企业的无限潜力

用户

密码登录

功能说明

通过账号密码进行用户认证,成功登录后返回访问令牌和用户信息

安全要求

  1. 密码必须在前端进行SHA256哈希加密后传输
  2. 建议配合HTTPS协议使用
  3. 禁止明文传输密码

加密示例

JavaScript示例:

// 使用CryptoJS进行SHA256加密
const encryptedPassword = CryptoJS.SHA256(rawPassword.trim()).toString()

Python示例:

# 使用hashlib进行SHA256加密
import hashlib
def encrypt_password(raw_password: str) -> str:
  return hashlib.sha256(raw_password.strip().encode('utf-8')).hexdigest()
header Parameters
Authorization
string
Default: Bearer {{token}}
Example: Bearer {{token}}
Request Body schema: application/json
user_account
required
string (用户账号)

手机号或者邮箱

user_password
required
string (用户密码)

SHA256哈希加密后的密码字符串

session_30_flag
boolean (记住30天)

启用后过期时间延长至30天

Responses

Request samples

Content type
application/json
{
  • "user_account": "pariatur Excepteur mollit adipisicing",
  • "user_password": "u_OJ2XloK6D8xSu",
  • "session_30_flag": true
}

Response samples

Content type
application/json
Example
{
  • "error_code": 401,
  • "error_message": "账号或者密码错误!",
  • "error_status": true,
  • "result": null
}

获取用户详情

header Parameters
Authorization
string
Default: Bearer {{token}}
Example: Bearer {{token}}
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
No sample

Response samples

Content type
application/json
{
  • "error_code": 0,
  • "error_message": "string",
  • "error_status": true,
  • "result": {
    }
}

更新用户信息

更新用户相关信息(部分字段锁定不可以更新)

header Parameters
Authorization
string
Default: Bearer {{token}}
Example: Bearer {{token}}
Request Body schema: application/json
user_nick_name
required
string

Responses

Request samples

Content type
application/json
No sample

Response samples

Content type
application/json
{ }

注销用户

将用户信息从平台彻底删除

header Parameters
Authorization
string
Default: Bearer {{token}}
Example: Bearer {{token}}

Responses

Response samples

Content type
application/json
{ }

刷新Token

创建一个指定超时时间的令牌

header Parameters
Authorization
string
Default: Bearer {{token}}
Example: Bearer {{token}}
Request Body schema: application/json
expire_time
required
string (指定超时时间)

支持格式 %Y-%m-%d %H:%M:%S

Responses

Request samples

Content type
application/json
No sample

Response samples

Content type
application/json
{ }

ai工作台

创建智能应用会话

调用发布完成的应用前,需要调用此接口,创建一个应用会话。

header Parameters
Authorization
string
Default: Bearer {{token}}
Example: Bearer {{token}}
Request Body schema: application/json
app_code
required
string (应用编号)

发布的应用编号

session_code
string (会话编号)

默认为空则新建会话,否则获取指定会话信息

Responses

Request samples

Content type
application/json
No sample

Response samples

Content type
application/json
{
  • "error_code": 0,
  • "error_message": "",
  • "error_status": false,
  • "result": {
    }
}

智能应用问答

支持直接用openai客户端进行调用,如同调用一个大模型服务。

python示例如下


url = "https://www.turingops.com.cn/next_console/app_center/app_run/v2"

headers = {
    "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc1MzQzNTk4OCwianRpIjoiNzQzNDViMjktZGZhYy00ZWF"
}

data = {
    "app_code": "222b0cc1-8e8c-4b55-bf1b-689afdb4bcc6",
    "session_code": case_session_code,
    "messages": [{"role": "user", "content": "审批"}],
    "stream": True, "attachments": []
}

client = OpenAI(base_url=url, api_key='None')
response = client.chat.completions.create(
        model="",
        messages=data["messages"],
        stream=data["stream"],
        extra_headers=headers,
        extra_body=data,
    )
    for chunk in response:
        try:
            # print(chunk.choices[0].delta.reason_content)
            if chunk.choices[0].delta.reason_content:
                result += chunk.choices[0].delta.reason_content
        except Exception as e:
            pass
        try:
            # print(chunk.choices[0].delta.content)
            if chunk.choices[0].delta.content:
                result += chunk.choices[0].delta.content
        except Exception as e:
            pass
print(f"Result : {result}")
header Parameters
Authorization
string
Default: Bearer {{token}}
Example: Bearer {{token}}
Request Body schema: application/json
app_code
required
string (应用ID)
required
Array of objects (消息列表)
session_code
string (会话编号)

输入,则在指定会话中继续问答,否则新增会话问答

workflow_params
object (工作流参数)

根据定义输入

Responses

Request samples

Content type
application/json
No sample

Response samples

Content type
application/json
{ }

ai资源库

上传资源

上传各类资源至AI资源库,默认配置下会自动构建向量

header Parameters
Authorization
string
Default: Bearer {{token}}
Example: Bearer {{token}}
Request Body schema: multipart/form-data
data
string <binary>

资源

Responses

Request samples

Content type
multipart/form-data
No sample

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "url": "string"
}

删除资源

删除指定资源

header Parameters
Authorization
string
Default: Bearer {{token}}
Example: Bearer {{token}}
Request Body schema: application/json
resource_id
required
number (资源id)

Responses

Request samples

Content type
application/json
No sample

Response samples

Content type
application/json
{
  • "delete_cnt": 0
}

搜索资源

搜索资源,默认启用rag技术进行搜索

header Parameters
Authorization
string
Default: Bearer {{token}}
Example: Bearer {{token}}
Request Body schema: application/json
resource_keyword
required
string (搜索关键词)
rag_enhance
boolean (rag搜索开关)
Default: true
page_size
integer (分页数)
Default: 50
page_num
integer (页码)
Default: 1

Responses

Request samples

Content type
application/json
No sample

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "author_info": [
    ],
  • "total": "string"
}

下载资源

获取指定资源的下载地址

header Parameters
Authorization
string
Default: Bearer {{token}}
Example: Bearer {{token}}
Request Body schema: application/json
resource_id
required
string (资源id)

Responses

Request samples

Content type
application/json
No sample

Response samples

Content type
application/json
{
  • "download_url": "string"
}

构建资源向量

手动触发向量构建,重复调用,会清空之前的向量数据并启动一次新的重构任务。

可传入资源列表

header Parameters
Authorization
string
Default: Bearer {{token}}
Example: Bearer {{token}}
Request Body schema: application/json
resource_list
required
Array of numbers (资源id清单)

Responses

Request samples

Content type
application/json
No sample

Response samples

Content type
application/json
{
  • "build_cnt": 0
}