Skip to main content

wrap_response

Function wrap_response 

Source
pub fn wrap_response(stdout: &str, model_id: &str, prompt: &str) -> Value
Expand description

Wrap raw llama-cli stdout in an OpenAI chat.completion object so the local API / studio consumers parse it uniformly with the synthetic + in-process engines. Pure.