#[non_exhaustive]pub struct ChatRenderOptions {
pub replay_reasoning_content: bool,
pub max_tokens_field: ChatMaxTokensField,
}Expand description
Per-protocol render options for gateway configuration. 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.
Trait Implementations§
Source§impl Clone for ChatRenderOptions
impl Clone for ChatRenderOptions
Source§fn clone(&self) -> ChatRenderOptions
fn clone(&self) -> ChatRenderOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more