[{"data":1,"prerenderedAt":1192},["ShallowReactive",2],{"navigation":3,"/api/chat":55,"/api/chat-surround":1187},[4,25],{"title":5,"path":6,"stem":7,"children":8,"page":24},"快速开始","/guide","1.guide",[9,14,19],{"title":10,"path":11,"stem":12,"icon":13},"快速入门","/guide/getting-started","1.guide/1.getting-started","i-lucide-rocket",{"title":15,"path":16,"stem":17,"icon":18},"认证","/guide/authentication","1.guide/2.authentication","i-lucide-lock",{"title":20,"path":21,"stem":22,"icon":23},"错误处理","/guide/error-handling","1.guide/3.error-handling","i-lucide-alert-triangle",false,{"title":26,"path":27,"stem":28,"children":29,"page":24},"API文档","/api","2.api",[30,35,40,45,50],{"title":31,"path":32,"stem":33,"icon":34},"用户认证","/api/auth","2.api/1.auth","i-lucide-key-round",{"title":36,"path":37,"stem":38,"icon":39},"AI 角色","/api/characters","2.api/2.characters","i-lucide-bot",{"title":41,"path":42,"stem":43,"icon":44},"知识库","/api/knowledge","2.api/3.knowledge","i-lucide-book-open",{"title":46,"path":47,"stem":48,"icon":49},"聊天会话","/api/chat","2.api/4.chat","i-lucide-message-circle",{"title":51,"path":52,"stem":53,"icon":54},"插件","/api/plugins","2.api/5.plugins","i-lucide-puzzle",{"id":56,"title":46,"body":57,"description":1180,"extension":1181,"links":1182,"meta":1183,"navigation":1184,"path":47,"seo":1185,"stem":48,"__hash__":1186},"docs/2.api/4.chat.md",{"type":58,"value":59,"toc":1161},"minimark",[60,64,74,80,88,94,101,106,150,153,156,162,167,173,179,183,216,218,221,227,231,271,273,276,283,287,292,296,333,335,338,344,348,386,388,392,398,402,409,414,549,554,617,621,658,660,663,668,672,676,680,697,701,743,745,748,754,758,795,797,800,805,809,845,847,850,856,860,896,898,901,906,910,917,924,930,936,940,976,978,981,987,991,1027,1029,1033,1039,1043,1049,1053,1098,1100,1103,1109,1113,1120,1124],[61,62,63],"h2",{"id":63},"创建会话",[65,66,70],"endpoint",{":auth":67,"method":68,"path":69},"true","POST","/chats",[71,72,73],"p",{},"创建一个新的私聊会话，需要指定对话的角色 ID。",[71,75,76],{},[77,78,79],"strong",{},"请求参数：",[81,82,85],"field",{"name":83,"type":84,":required":67},"characterId","string",[71,86,87],{},"关联的角色 ID（UUID 格式）",[81,89,91],{"name":90,"type":84},"name",[71,92,93],{},"聊天会话名称",[81,95,98],{"name":96,"type":97},"temporary","boolean",[71,99,100],{},"是否为临时会话",[71,102,103],{},[77,104,105],{},"响应状态码：",[107,108,109,122],"table",{},[110,111,112],"thead",{},[113,114,115,119],"tr",{},[116,117,118],"th",{},"状态码",[116,120,121],{},"说明",[123,124,125,134,142],"tbody",{},[113,126,127,131],{},[128,129,130],"td",{},"201",[128,132,133],{},"创建成功",[113,135,136,139],{},[128,137,138],{},"400",[128,140,141],{},"输入参数无效",[113,143,144,147],{},[128,145,146],{},"401",[128,148,149],{},"未登录或令牌无效",[151,152],"hr",{},[61,154,155],{"id":155},"获取会话列表",[65,157,159],{":auth":67,"method":158,"path":69},"GET",[71,160,161],{},"获取当前用户的所有会话，支持分页。",[71,163,164],{},[77,165,166],{},"查询参数：",[81,168,170],{"name":169,"type":84},"page",[71,171,172],{},"页码，从 1 开始",[81,174,176],{"name":175,"type":84},"limit",[71,177,178],{},"每页数量，1-100",[71,180,181],{},[77,182,105],{},[107,184,185,193],{},[110,186,187],{},[113,188,189,191],{},[116,190,118],{},[116,192,121],{},[123,194,195,203,210],{},[113,196,197,200],{},[128,198,199],{},"200",[128,201,202],{},"获取成功",[113,204,205,207],{},[128,206,138],{},[128,208,209],{},"分页参数无效",[113,211,212,214],{},[128,213,146],{},[128,215,149],{},[151,217],{},[61,219,220],{"id":220},"获取会话详情",[65,222,224],{":auth":67,"method":158,"path":223},"/chats/{chatId}",[71,225,226],{},"获取指定会话的详细信息，需要是会话的所有者。",[71,228,229],{},[77,230,105],{},[107,232,233,241],{},[110,234,235],{},[113,236,237,239],{},[116,238,118],{},[116,240,121],{},[123,242,243,249,255,263],{},[113,244,245,247],{},[128,246,199],{},[128,248,202],{},[113,250,251,253],{},[128,252,146],{},[128,254,149],{},[113,256,257,260],{},[128,258,259],{},"403",[128,261,262],{},"权限不足",[113,264,265,268],{},[128,266,267],{},"404",[128,269,270],{},"会话不存在",[151,272],{},[61,274,275],{"id":275},"更新会话名称",[65,277,280],{":auth":67,"method":278,"path":279},"PUT","/chats/{chatId}/name",[71,281,282],{},"更新指定会话的名称，需要是会话的所有者。",[71,284,285],{},[77,286,79],{},[81,288,289],{"name":90,"type":84},[71,290,291],{},"新的会话名称",[71,293,294],{},[77,295,105],{},[107,297,298,306],{},[110,299,300],{},[113,301,302,304],{},[116,303,118],{},[116,305,121],{},[123,307,308,315,321,327],{},[113,309,310,312],{},[128,311,199],{},[128,313,314],{},"更新成功",[113,316,317,319],{},[128,318,146],{},[128,320,149],{},[113,322,323,325],{},[128,324,259],{},[128,326,262],{},[113,328,329,331],{},[128,330,267],{},[128,332,270],{},[151,334],{},[61,336,337],{"id":337},"删除会话",[65,339,341],{":auth":67,"method":340,"path":223},"DELETE",[71,342,343],{},"永久删除指定会话及其所有消息、配置和插件订阅，需要是会话的所有者。",[71,345,346],{},[77,347,105],{},[107,349,350,358],{},[110,351,352],{},[113,353,354,356],{},[116,355,118],{},[116,357,121],{},[123,359,360,368,374,380],{},[113,361,362,365],{},[128,363,364],{},"204",[128,366,367],{},"删除成功",[113,369,370,372],{},[128,371,146],{},[128,373,149],{},[113,375,376,378],{},[128,377,259],{},[128,379,262],{},[113,381,382,384],{},[128,383,267],{},[128,385,270],{},[151,387],{},[61,389,391],{"id":390},"发送消息sse-流式响应","发送消息（SSE 流式响应）",[65,393,395],{":auth":67,"method":68,"path":394},"/chats/{chatId}/messages",[71,396,397],{},"向指定会话发送消息并获取 AI 回复，响应为 SSE (Server-Sent Events) 流式格式。",[71,399,400],{},[77,401,79],{},[81,403,406],{"name":404,"type":405,":required":67},"content","MessageContentDto[]",[71,407,408],{},"消息内容数组，支持多模态（文本、图片、文件、代码、音频、视频、PDF）",[71,410,411],{},[77,412,413],{},"消息内容类型：",[107,415,416,428],{},[110,417,418],{},[113,419,420,423,426],{},[116,421,422],{},"类型",[116,424,425],{},"字段",[116,427,121],{},[123,429,430,445,464,484,500,517,533],{},[113,431,432,438,442],{},[128,433,434],{},[435,436,437],"code",{},"text",[128,439,440],{},[435,441,404],{},[128,443,444],{},"文本内容",[113,446,447,452,461],{},[128,448,449],{},[435,450,451],{},"image",[128,453,454,457,458],{},[435,455,456],{},"url",", ",[435,459,460],{},"alt",[128,462,463],{},"图片地址和描述",[113,465,466,471,481],{},[128,467,468],{},[435,469,470],{},"file",[128,472,473,457,475,457,478],{},[435,474,456],{},[435,476,477],{},"fileName",[435,479,480],{},"fileSize",[128,482,483],{},"文件信息",[113,485,486,490,497],{},[128,487,488],{},[435,489,435],{},[128,491,492,457,494],{},[435,493,404],{},[435,495,496],{},"language",[128,498,499],{},"代码内容和语言",[113,501,502,507,514],{},[128,503,504],{},[435,505,506],{},"audio",[128,508,509,457,511],{},[435,510,456],{},[435,512,513],{},"mimeType",[128,515,516],{},"音频信息",[113,518,519,524,530],{},[128,520,521],{},[435,522,523],{},"video",[128,525,526,457,528],{},[435,527,456],{},[435,529,513],{},[128,531,532],{},"视频信息",[113,534,535,540,546],{},[128,536,537],{},[435,538,539],{},"pdf",[128,541,542,457,544],{},[435,543,456],{},[435,545,477],{},[128,547,548],{},"PDF 信息",[71,550,551],{},[77,552,553],{},"SSE 事件类型：",[107,555,556,565],{},[110,557,558],{},[113,559,560,563],{},[116,561,562],{},"事件",[116,564,121],{},[123,566,567,577,587,597,607],{},[113,568,569,574],{},[128,570,571],{},[435,572,573],{},"delta",[128,575,576],{},"增量文本",[113,578,579,584],{},[128,580,581],{},[435,582,583],{},"tool_call_start",[128,585,586],{},"工具调用开始",[113,588,589,594],{},[128,590,591],{},[435,592,593],{},"tool_call_result",[128,595,596],{},"工具调用结果",[113,598,599,604],{},[128,600,601],{},[435,602,603],{},"done",[128,605,606],{},"完成",[113,608,609,614],{},[128,610,611],{},[435,612,613],{},"error",[128,615,616],{},"错误",[71,618,619],{},[77,620,105],{},[107,622,623,631],{},[110,624,625],{},[113,626,627,629],{},[116,628,118],{},[116,630,121],{},[123,632,633,640,646,652],{},[113,634,635,637],{},[128,636,199],{},[128,638,639],{},"SSE 流式响应",[113,641,642,644],{},[128,643,146],{},[128,645,149],{},[113,647,648,650],{},[128,649,259],{},[128,651,262],{},[113,653,654,656],{},[128,655,267],{},[128,657,270],{},[151,659],{},[61,661,662],{"id":662},"获取历史消息",[65,664,665],{":auth":67,"method":158,"path":394},[71,666,667],{},"获取指定会话的历史消息，支持分页，需要是会话的所有者。",[71,669,670],{},[77,671,166],{},[81,673,674],{"name":169,"type":84},[71,675,172],{},[81,677,678],{"name":175,"type":84},[71,679,178],{},[71,681,682,685,688,689,692,693,696],{},[77,683,684],{},"说明：",[435,686,687],{},"senderType"," 实际枚举值为 ",[435,690,691],{},"USER"," / ",[435,694,695],{},"CHARACTER","。",[71,698,699],{},[77,700,105],{},[107,702,703,711],{},[110,704,705],{},[113,706,707,709],{},[116,708,118],{},[116,710,121],{},[123,712,713,719,725,731,737],{},[113,714,715,717],{},[128,716,199],{},[128,718,202],{},[113,720,721,723],{},[128,722,138],{},[128,724,209],{},[113,726,727,729],{},[128,728,146],{},[128,730,149],{},[113,732,733,735],{},[128,734,259],{},[128,736,262],{},[113,738,739,741],{},[128,740,267],{},[128,742,270],{},[151,744],{},[61,746,747],{"id":747},"删除指定消息",[65,749,751],{":auth":67,"method":340,"path":750},"/chats/{chatId}/messages/{messageId}",[71,752,753],{},"删除指定会话中的指定消息。",[71,755,756],{},[77,757,105],{},[107,759,760,768],{},[110,761,762],{},[113,763,764,766],{},[116,765,118],{},[116,767,121],{},[123,769,770,777,783,789],{},[113,771,772,774],{},[128,773,364],{},[128,775,776],{},"删除消息成功",[113,778,779,781],{},[128,780,146],{},[128,782,149],{},[113,784,785,787],{},[128,786,259],{},[128,788,262],{},[113,790,791,793],{},[128,792,267],{},[128,794,270],{},[151,796],{},[61,798,799],{"id":799},"清空历史消息",[65,801,802],{":auth":67,"method":340,"path":394},[71,803,804],{},"删除指定会话中的所有消息。",[71,806,807],{},[77,808,105],{},[107,810,811,819],{},[110,812,813],{},[113,814,815,817],{},[116,816,118],{},[116,818,121],{},[123,820,821,827,833,839],{},[113,822,823,825],{},[128,824,364],{},[128,826,776],{},[113,828,829,831],{},[128,830,146],{},[128,832,149],{},[113,834,835,837],{},[128,836,259],{},[128,838,262],{},[113,840,841,843],{},[128,842,267],{},[128,844,270],{},[151,846],{},[61,848,849],{"id":849},"获取会话配置",[65,851,853],{":auth":67,"method":158,"path":852},"/chats/{chatId}/config",[71,854,855],{},"获取指定会话的 LLM 配置参数，需要是会话的所有者。",[71,857,858],{},[77,859,105],{},[107,861,862,870],{},[110,863,864],{},[113,865,866,868],{},[116,867,118],{},[116,869,121],{},[123,871,872,878,884,890],{},[113,873,874,876],{},[128,875,199],{},[128,877,202],{},[113,879,880,882],{},[128,881,146],{},[128,883,149],{},[113,885,886,888],{},[128,887,259],{},[128,889,262],{},[113,891,892,894],{},[128,893,267],{},[128,895,270],{},[151,897],{},[61,899,900],{"id":900},"更新会话配置",[65,902,903],{":auth":67,"method":278,"path":852},[71,904,905],{},"更新指定会话的 LLM 配置参数，需要是会话的所有者。",[71,907,908],{},[77,909,79],{},[81,911,914],{"name":912,"type":913},"temperature","number",[71,915,916],{},"温度参数 (0-2)，控制随机性",[81,918,921],{"name":919,"type":920},"maxTokens","integer",[71,922,923],{},"最大生成 token 数",[81,925,927],{"name":926,"type":913},"topP",[71,928,929],{},"Top-P 采样参数 (0-1)",[81,931,933],{"name":932,"type":84},"systemPrompt",[71,934,935],{},"系统提示词",[71,937,938],{},[77,939,105],{},[107,941,942,950],{},[110,943,944],{},[113,945,946,948],{},[116,947,118],{},[116,949,121],{},[123,951,952,958,964,970],{},[113,953,954,956],{},[128,955,199],{},[128,957,314],{},[113,959,960,962],{},[128,961,146],{},[128,963,149],{},[113,965,966,968],{},[128,967,259],{},[128,969,262],{},[113,971,972,974],{},[128,973,267],{},[128,975,270],{},[151,977],{},[61,979,980],{"id":980},"获取插件订阅列表",[65,982,984],{":auth":67,"method":158,"path":983},"/chats/{chatId}/plugins",[71,985,986],{},"获取指定会话的所有插件订阅，需要是会话的所有者。",[71,988,989],{},[77,990,105],{},[107,992,993,1001],{},[110,994,995],{},[113,996,997,999],{},[116,998,118],{},[116,1000,121],{},[123,1002,1003,1009,1015,1021],{},[113,1004,1005,1007],{},[128,1006,199],{},[128,1008,202],{},[113,1010,1011,1013],{},[128,1012,146],{},[128,1014,149],{},[113,1016,1017,1019],{},[128,1018,259],{},[128,1020,262],{},[113,1022,1023,1025],{},[128,1024,267],{},[128,1026,270],{},[151,1028],{},[61,1030,1032],{"id":1031},"启用禁用插件","启用/禁用插件",[65,1034,1036],{":auth":67,"method":278,"path":1035},"/chats/{chatId}/plugins/{pluginId}",[71,1037,1038],{},"为指定会话启用或禁用一个插件，如果订阅不存在则自动创建。",[71,1040,1041],{},[77,1042,79],{},[81,1044,1046],{"name":1045,"type":97,":required":67},"enabled",[71,1047,1048],{},"是否启用",[71,1050,1051],{},[77,1052,105],{},[107,1054,1055,1063],{},[110,1056,1057],{},[113,1058,1059,1061],{},[116,1060,118],{},[116,1062,121],{},[123,1064,1065,1072,1079,1085,1091],{},[113,1066,1067,1069],{},[128,1068,199],{},[128,1070,1071],{},"操作成功",[113,1073,1074,1076],{},[128,1075,138],{},[128,1077,1078],{},"插件状态不允许启用（如未审核通过）",[113,1080,1081,1083],{},[128,1082,146],{},[128,1084,149],{},[113,1086,1087,1089],{},[128,1088,259],{},[128,1090,262],{},[113,1092,1093,1095],{},[128,1094,267],{},[128,1096,1097],{},"会话或插件不存在",[151,1099],{},[61,1101,1102],{"id":1102},"更新插件配置",[65,1104,1106],{":auth":67,"method":278,"path":1105},"/chats/{chatId}/plugins/{pluginId}/config",[71,1107,1108],{},"更新指定会话中某个插件的配置参数，插件订阅必须已存在。",[71,1110,1111],{},[77,1112,79],{},[81,1114,1117],{"name":1115,"type":1116,":required":67},"config","object",[71,1118,1119],{},"插件配置（JSON 对象）",[71,1121,1122],{},[77,1123,105],{},[107,1125,1126,1134],{},[110,1127,1128],{},[113,1129,1130,1132],{},[116,1131,118],{},[116,1133,121],{},[123,1135,1136,1142,1148,1154],{},[113,1137,1138,1140],{},[128,1139,199],{},[128,1141,314],{},[113,1143,1144,1146],{},[128,1145,146],{},[128,1147,149],{},[113,1149,1150,1152],{},[128,1151,259],{},[128,1153,262],{},[113,1155,1156,1158],{},[128,1157,267],{},[128,1159,1160],{},"会话或插件订阅不存在",{"title":1162,"searchDepth":1163,"depth":1164,"links":1165},"",1,2,[1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179],{"id":63,"depth":1164,"text":63},{"id":155,"depth":1164,"text":155},{"id":220,"depth":1164,"text":220},{"id":275,"depth":1164,"text":275},{"id":337,"depth":1164,"text":337},{"id":390,"depth":1164,"text":391},{"id":662,"depth":1164,"text":662},{"id":747,"depth":1164,"text":747},{"id":799,"depth":1164,"text":799},{"id":849,"depth":1164,"text":849},{"id":900,"depth":1164,"text":900},{"id":980,"depth":1164,"text":980},{"id":1031,"depth":1164,"text":1032},{"id":1102,"depth":1164,"text":1102},"聊天会话和消息 API","md",null,{},{"icon":49},{"title":46,"description":1180},"6LYR2xlWXaaDjqjipFTmjsnKOyCAiE85lPDesXv5-ls",[1188,1190],{"title":41,"path":42,"stem":43,"description":1189,"icon":44,"children":-1},"知识库管理 API",{"title":51,"path":52,"stem":53,"description":1191,"icon":54,"children":-1},"插件系统 API",1772535254109]