Repository navigation
Commit 85019b8
authored
fix(api): 连通性探测改发 user 消息——system-only 对话被 0.1.6-alpha.1 拒绝 (#197)
实测 0.1.6-alpha.1 上 test-model 返回 502「INVALID_REQUEST: messages:
at least one message is required」:新适配器把 system 消息抽成顶层
参数后,探测此前发送的 system-only 单条消息成了零条对话,官方 API
整单拒绝。同一探测在 0.1.2-rc.1 时代(system 进 messages)一直正常。
探测改为一条 user 消息(保留 #189 的 source 标注)——user 在任何
适配器/校验下都是合法对话,不怕 host 侧继续演进。回归断言锁定
role=user + source.kind=plugin。
主链路无恙:dream/summarize/实体抽取本就发送 system+user,alpha 上
实测 dream_consolidate success(53.8s 真实运行)。
(叠在 #190 之上,先合 #190 再合本 PR。)1 parent f76a8ab commit 85019b8
3 files changed
Lines changed: 27 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
334 | 344 | | |
335 | 345 | | |
336 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
334 | 344 | | |
335 | 345 | | |
336 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1394 | 1394 | | |
1395 | 1395 | | |
1396 | 1396 | | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
1397 | 1402 | | |
1398 | 1403 | | |
1399 | 1404 | | |
| |||
0 commit comments