You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Camel Stream (stream.camelai.com), model deepseek-v4-flash
Endpoint or capability
Custom-provider /v1/responses model routing and first-tool-round tool-selection behavior.
The provider-wide adapter remains openai-chat, while only deepseek-v4-flash is routed through openai-responses.
Remaining problem
This issue now tracks only whether Camel deepseek-v4-flash emits code-mode-style text/markup instead of a structured tool call on the first tool round when tool_choice: "auto" is used.
The second problem from the original report, loss of the unified exec custom-to-function input description, was fixed in #1763 and merged into dev. The exec JavaScript input contract is therefore no longer part of this issue's implementation scope.
Expected behavior
On the first tool round for stream.camelai.com + deepseek-v4-flash, the model should produce a structured tool call when it chooses to use a tool declared in the request.
Requests using an explicit tool_choice must preserve their current semantics.
Continuation turns containing tool results must preserve their current semantics.
Other hosts, models, and providers must remain unaffected.
Evidence required before implementation
The following evidence is required against current dev:
A redacted raw upstream response from the first tool round showing the actual text/markup shape returned instead of a structured tool call.
Confirmation that tool_choice: "auto" was used with the same request/tool catalog.
The result of a control request using an explicit tool choice.
Control evidence showing that a continuation turn after tool output still behaves normally.
Without this evidence, we should not add a host/model hardcode that forces first-round tool_choice: "required" only for stream.camelai.com + deepseek-v4-flash. There is no public upstream contract for that behavior, so a provider-specific policy change requires reproducible current evidence.
Client or integration
Codex App
Provider or upstream service
Camel Stream (
stream.camelai.com), modeldeepseek-v4-flashEndpoint or capability
Custom-provider
/v1/responsesmodel routing and first-tool-round tool-selection behavior.The provider-wide adapter remains
openai-chat, while onlydeepseek-v4-flashis routed throughopenai-responses.Remaining problem
This issue now tracks only whether Camel
deepseek-v4-flashemits code-mode-style text/markup instead of a structured tool call on the first tool round whentool_choice: "auto"is used.The second problem from the original report, loss of the unified
execcustom-to-function input description, was fixed in #1763 and merged intodev. TheexecJavaScript input contract is therefore no longer part of this issue's implementation scope.Expected behavior
stream.camelai.com+deepseek-v4-flash, the model should produce a structured tool call when it chooses to use a tool declared in the request.tool_choicemust preserve their current semantics.Evidence required before implementation
The following evidence is required against current
dev:tool_choice: "auto"was used with the same request/tool catalog.Without this evidence, we should not add a host/model hardcode that forces first-round
tool_choice: "required"only forstream.camelai.com+deepseek-v4-flash. There is no public upstream contract for that behavior, so a provider-specific policy change requires reproducible current evidence.Minimal redacted reproduction
{ "adapter": "openai-chat", "baseUrl": "https://stream.camelai.com/v1", "defaultModel": "deepseek-v4-flash", "modelAdapters": { "deepseek-v4-flash": "openai-responses" }, "responsesPath": null }dev, send a first request that includes tools.tool_choiceand tool catalog.Already fixed / out of scope
execcustom-to-function JavaScript input guidance: fixed by fix(responses): preserve unified exec input contract #1763 and merged intodev.execinput problem in this issue.Related
execinput-contract repair.Checks
devraw first-response evidence for the remaining Camel-specific behavior is still required.