#[non_exhaustive]pub struct ChatRenderOptions {
pub replay_reasoning_content: bool,
pub max_tokens_field: ChatMaxTokensField,
}Expand description
OpenAI Chat Completions render options.
Configuration, not context: see the module docs for what the serialized form promises and who decides support.
Default replays sealed reasoning_content and writes the output limit
as max_completion_tokens.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.replay_reasoning_content: boolReplay the frame’s own-format sealed reasoning_content message-level
items (default true). DeepSeek requires reasoning_content back on
every request that carries tools and ignores it otherwise; other
compatible providers differ, which is what this option is for. When it
is off, the renderer removes the reasoning_content key from its own
sealed items — dropping an item that carries nothing else — and changes
nothing else. Other sealed message fields still replay.
max_tokens_field: ChatMaxTokensFieldThe request field that carries GenerationOptions::max_tokens
(default ChatMaxTokensField::MaxCompletionTokens). Only the chosen
field is written. A server that does not read the chosen field
applies no limit and reports no error, so the response can run past
the host’s limit.