- 云记-鸿蒙-客户端
- 云记-管理平台
- 云记-国内-客户端
- 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-stream
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
默认值:
Bearer {{token}}
token
string
可选
默认值:
{{token}}
appVersionCode
string
云记-安卓-版本号
默认值:
408
Accept-Language
string
云记-鸿蒙-语言
默认值:
zh
Body 参数application/json
model
string
AI模型
stream
boolean
可选
questionId
string
问题ID
messages
array[object (Messages) {2}]
输入提示内容
role
string
可选
content
string
必需
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"
}
],
"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-stream' \
--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"
}
],
"stream_options": {
"include_usage": true
}
}'
返回响应
🟢200成功
text/event-stream
Body
array[string]
可选
示例
[
""
]
修改于 2025-06-10 09:23:23