Skip to main content

Crate deepseek_recipe

Crate deepseek_recipe 

Source
Expand description

API protocol conversion and inference output parsing.

request::ProtocolRequest::convert produces a shared request::ConversationRequest. stream::StreamProcessor parses backend output and passes it to the selected protocol’s event generator. The caller supplies prompt rendering, token encoding, inference, usage, and transport.

Modules§

anthropic
Anthropic-compatible protocol types and conversion.
error_response
openai
request
Shared request data and the conversion contract for protocol adapters.
response
Protocol response construction and event accumulation.
stream
Parse model output and turn it into protocol-specific response events.
util