@x-otto/interchange 0.1.0-alpha.23 → 0.1.0-alpha.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +13 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -215,6 +215,19 @@ interface Model<T = Api> {
|
|
|
215
215
|
* (优先级:功能可用 > 推理力度)。引擎侧零厂商字符串判断,仅读该布尔声明。
|
|
216
216
|
*/
|
|
217
217
|
reasoningToolsExclusive?: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* 该模型的服务端 thinking 默认开启且**不可关闭**(DeepSeek 等),因此历史 assistant 消息
|
|
220
|
+
* 必须回传 `reasoning_content`(无思考记录填 `null`)——省略即确定性 400:
|
|
221
|
+
* `The reasoning_content in the thinking mode must be passed back to the API`。
|
|
222
|
+
*
|
|
223
|
+
* 与 `reasoningToolsExclusive` 同属「声明式吸收厂商协议怪癖」:引擎侧零厂商字符串判断。
|
|
224
|
+
* 缺省 `undefined`/`false` = 仅当消息自身有 thinking 时才回传(既有行为,其他
|
|
225
|
+
* openai-completions 厂商零行为变化)。
|
|
226
|
+
*
|
|
227
|
+
* 为什么不能复用 `thinkingLevel` 判据:用户在 `thinkingLevel: none/undefined` 档位下,
|
|
228
|
+
* 请求体不再发 `reasoning_effort`,但服务端 thinking 仍默认开启 → 历史仍必须回传。
|
|
229
|
+
*/
|
|
230
|
+
reasoningContentRequired?: boolean;
|
|
218
231
|
}
|
|
219
232
|
type ModelSpec = string | {
|
|
220
233
|
provider: string;
|