Expand description
Completion options, chat rendering, tokenization and context policy.
StructsΒ§
- Prepared
Request π - Tokenization and policy checks finish before the response starts.
- Request π
- Session
Input π - Resolved session input; the original HTTP JSON remains unchanged.
FunctionsΒ§
- context_
tokens π - legacy_
function_ πcall - parse_
legacy_ πfunction_ controls - Tolerate legacy OpenAI function controls the Qwen4 frontend ignores.
- parse_
parallel_ πtool_ calls - parse_
request π - parse_
tool_ πchoice - Resolve
tool_choice;falsesuppresses the tools block entirely. - parse_
tools π - Shape a requestβs tools for the checkpoint template; reject types the Qwen4 frontend cannot honor.
- render_
prompt π