- 云记-鸿蒙-客户端
- 云记-管理平台
- 云记-国内-客户端
- test测试
- AiController
- 短信
- 邮件
- 商城集市内容
- 封面
- 订单
- ToolsController
- AccessController
- MarketController
- 账号
- RecordController
- 广告信息收集与开关
- orcCount
- advertising
- advertisingStatus
- total
- startInfo
- vipSwitch
- advertisingAnalysis
- 广告返回
- 广告数据分流
- 穿山甲与快手点击统计
- 本地备份时间间隔
- 荣耀设备广告判断
- 配置
- 被微软调用
- 站内信
- text
- PDF指导
- 支付提醒
- openApply
- downloadApply
- fontConfig
- storageDeviceToken
- receiveOpOpNotify
- receiveFirmNotify
- timeLimitedCoupon
- receiveCoupon
- receiveExperience
- schoolShareConfig
- helpCenter
- cast
- deCompilation
- updateWarn
- questionSwitch
- clickCross
- documentConvert
- receiveFeature
- userClickFloatWindow
- recordAiDocTips
- 图形验证码
- 文档转换
- StrokesController
- 自动更新线上所有云记
- ActivityController
- HwCloudNotification
- 商城集市订单
- NoteTotalController
- TranslateController
- 大模型API
- 获取微信二维码信息
- 云盘选择
- 云同步锁
- PopUpWindowController
- UserBehaviorController
- UserIncreaseController
- 后台报表
- 文件上传下载
- 对外接口
- 设备安装记录
- alioss文件对象端口
- 日志文件端口
- ai阅读文档接口
- 云记-海外-客户端
- ai阅读文档接口
- 邮件
- 封面
- 订单
- ToolsController
- AccessController
- MarketController
- 账号
- RecordController
- 广告信息收集与开关
- orcCount
- advertising
- advertisingStatus
- total
- startInfo
- vipSwitch
- advertisingAnalysis
- 广告返回
- 广告数据分流
- 穿山甲与快手点击统计
- 本地备份时间间隔
- 荣耀设备广告判断
- 配置
- 被微软调用
- 站内信
- text
- PDF指导
- 支付提醒
- openApply
- downloadApply
- fontConfig
- storageDeviceToken
- receiveOpOpNotify
- receiveExperience
- helpCenter
- cast
- deCompilation
- updateWarn
- questionSwitch
- clickCross
- queryStartPageConfig
- googleBookPopMark
- 图形验证码
- StrokesController
- 自动更新线上所有云记
- HwCloudNotification
- NoteTotalController
- TranslateController
- 大模型API
- 获取微信二维码信息
- 云盘选择
- 云同步锁
- PopUpWindowController
- UserBehaviorController
- UserIncreaseController
- 后台报表
- 文件上传下载
- 云记-海外-内容集市管理后台
大模型ai调用(兼容旧版本文心一言)
云记-鸿蒙-客户端-test
https://jnotetest-hm.jideos.com/jnotes
云记-鸿蒙-客户端-test
https://jnotetest-hm.jideos.com/jnotes
POST
/largemodel/ai/chat
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{token}}
token
string
可选
默认值:
{{token}}
appVersionCode
string
云记-安卓-版本号
默认值:
408
Accept-Language
string
云记-鸿蒙-语言
默认值:
zh
Body 参数application/json
model
string
模型
stream
boolean
可选
questionId
string
问题ID
messages
array[object (Messages) {2}]
输入提示内容
role
string
可选
content
string
必需
aiChatRqt
object (AiChatRqt)
可选
source
integer
可选
1.
2.
chatRoomId
string
可选
questionId
string
必需
content
string
必需
type
integer
必需
needJoinAsk
boolean
可选
paramsJson
string
可选
point
integer
可选
stream_options
object (StreamOptions)
流式输出指定参数
include_usage
boolean
可选
· true:是,设置为true时,在最后一个chunk会输出一个字段,这个chunk上的usage字段显示整个请求的token统计信息
· false:否,流式响应默认不输出usage
示例
{
"model": "string",
"stream": true,
"questionId": "string",
"messages": [
{
"role": "string",
"content": "string"
}
],
"aiChatRqt": {
"source": 0,
"chatRoomId": "string",
"questionId": "string",
"content": "string",
"type": 0,
"needJoinAsk": true,
"paramsJson": "string",
"point": 0
},
"stream_options": {
"include_usage": true
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://jnotetest-hm.jideos.com/jnotes/largemodel/ai/chat' \
--header 'Authorization: Bearer 01uohrj-elUlvNnLxb3uuYDy28LD3Pum49U531TlDWhqS2QbLMm1LhhWaW42TN8UV6caM_E9bvB6qkSBXZu0jCHQ9PdX9NnDIb7UdofssDFhwkuOijQ6T6ZPbBl5jEO7' \
--header 'token: 01uohrj-elUlvNnLxb3uuYDy28LD3Pum49U531TlDWhqS2QbLMm1LhhWaW42TN8UV6caM_E9bvB6qkSBXZu0jCHQ9PdX9NnDIb7UdofssDFhwkuOijQ6T6ZPbBl5jEO7' \
--header 'appVersionCode: 408' \
--header 'Accept-Language: zh' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"stream": true,
"questionId": "string",
"messages": [
{
"role": "string",
"content": "string"
}
],
"aiChatRqt": {
"source": 0,
"chatRoomId": "string",
"questionId": "string",
"content": "string",
"type": 0,
"needJoinAsk": true,
"paramsJson": "string",
"point": 0
},
"stream_options": {
"include_usage": true
}
}'
返回响应
🟢200成功
application/json
Body
status
integer
可选
msg
string
可选
data
string
可选
示例
{
"status": 0,
"msg": "",
"data": ""
}
修改于 2025-06-10 04:00:46