Expand description
Extended /v1/chat/completions handler.
Adds support for tools (function calling), logprobs, n > 1 completions,
response format constraints (JSON mode / JSON Schema), stop sequences,
and frequency/presence penalties on top of the base server implementation.
Structs§
- Json
Mode Enforcer - Wraps generation to produce valid JSON output.
- Stop
Checker - Detects and truncates text at stop sequences.
Functions§
- apply_
frequency_ penalty - Apply frequency and presence penalties in-place to a logit vector.
- extended_
chat_ completions - Handler for
POST /v1/chat/completions/extended. - generate_
n_ completions - Generate
nindependent completions from the same prompt, seeding each run withbase_seed + ifor determinism.