Compare commits

...

1 Commits

Author SHA1 Message Date
claude[bot] 54873689bc AIX: Enable strict tool invocations for DeepSeek models
DeepSeek requires strict: true on tool definitions for reliable function
calling. This change automatically enables strict mode when the dialect
is DeepSeek, ensuring tools work properly without requiring explicit
user configuration.

Fixes #908

Co-authored-by: Enrico Ros <enricoros@users.noreply.github.com>
2026-01-09 07:14:08 +00:00
@@ -69,7 +69,8 @@ export function aixToOpenAIChatCompletions(openAIDialect: OpenAIDialects, model:
// constrained output modes - both JSON and tool invocations
// const strictJsonOutput = !!model.strictJsonOutput;
const strictToolInvocations = !!model.strictToolInvocations;
// [DeepSeek, 2025-01] DeepSeek requires strict: true for reliable function calling
const strictToolInvocations = !!model.strictToolInvocations || openAIDialect === 'deepseek';
// Construct the request payload
let payload: TRequest = {