Skip to main content

messages_to_api_params

Function messages_to_api_params 

Source
pub fn messages_to_api_params(messages: &[Message]) -> Vec<Value>
Expand description

Convert messages to the API wire format (for sending to the LLM).