pub fn build_request(
messages: &[Message],
options: &ChatOptions,
model: &str,
stream: bool,
) -> ValueExpand description
Build the /chat/completions request body.
model is the effective model id (already resolved from
options.model or the client default). Message/tool/option conversion is
delegated to [agent_framework_openai::convert] since GitHub Copilot’s
chat endpoint accepts the identical shapes.