Skip to main content

Module chat

Module chat 

Source

Re-exports§

pub use reasoning::ReasoningDetail;
pub use reasoning::ReasoningDetailKind;
pub use reasoning::visible_reasoning;
pub use content::*;
pub use request::*;
pub use response::*;
pub use stream::*;
pub use tools::*;

Modules§

content
reasoning
DeepSeek reasoning_content and OpenRouter reasoning/reasoning_details. Source: upstream_docs/openrouter/Create a chat completion.md, ReasoningDetailUnion.
request
response
stream
Typed JSON records for Chat Completions streaming; [DONE] is SSE framing, not a JSON chunk. StreamResponse carries raw transport bytes separately.
tools

Functions§

reasoning_text
Select one provider spelling without duplicating reasoning when both are present. Native passthrough retains both fields independently.