@x-otto/interchange 0.1.0-alpha.21 → 0.1.0-alpha.23
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 +10 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -205,6 +205,16 @@ interface Model<T = Api> {
|
|
|
205
205
|
*/
|
|
206
206
|
sendMaxOutputTokens?: boolean;
|
|
207
207
|
};
|
|
208
|
+
/**
|
|
209
|
+
* Chat Completions 协议下 `reasoning_effort` 与 `tools` 是否互斥声明(同 `responseBodyPolicy`
|
|
210
|
+
* 声明化模式):部分 openai-completions 兼容网关把 reasoning 模型代理到 Responses-only 后端,
|
|
211
|
+
* 该后端在收到 `tools` 字段时拒绝同时携带 `reasoning_effort`(400: "Function tools with
|
|
212
|
+
* reasoning_effort are not supported ... use /v1/responses or set reasoning_effort to ...")。
|
|
213
|
+
* 缺省 `undefined`/`false` = 不互斥(向后兼容,DeepSeek 等厂商已验证可共存);`true` 时
|
|
214
|
+
* `buildChatCompletionsBody` 在请求含 `tools` 时跳过 `reasoning_effort`,保留工具调用能力
|
|
215
|
+
* (优先级:功能可用 > 推理力度)。引擎侧零厂商字符串判断,仅读该布尔声明。
|
|
216
|
+
*/
|
|
217
|
+
reasoningToolsExclusive?: boolean;
|
|
208
218
|
}
|
|
209
219
|
type ModelSpec = string | {
|
|
210
220
|
provider: string;
|