Skip to main content

turn_prefix_request

Function turn_prefix_request 

Source
pub fn turn_prefix_request(
    messages: &[impl Borrow<Message>],
    instructions: &str,
    spec: &ModelSpec,
    reasoning: Option<Reasoning>,
) -> Result<CompletionRequest, UnsupportedOption>
Expand description

The request for the summary of a split turn’s earlier part, messages, to spec with the reasoning effort, focused on instructions.

§Errors

As summarization_request.