Context
PR for #73 adds opt-in tools passthrough on /v1/chat/completions but does not map OpenAI tool_choice (auto / none / required / specific function). Provider defaults apply.
Flagged during implementation of #73.
Proposal
When openai_compat tools mode is passthrough, forward or map tool_choice through the chat/AI SDK path so clients (e.g. Open WebUI) can force or suppress tool use.
References
Context
PR for #73 adds opt-in
toolspassthrough on/v1/chat/completionsbut does not map OpenAItool_choice(auto/none/required/ specific function). Provider defaults apply.Flagged during implementation of #73.
Proposal
When
openai_compattools mode ispassthrough, forward or maptool_choicethrough the chat/AI SDK path so clients (e.g. Open WebUI) can force or suppress tool use.References