MCPcopy Index your code
hub / github.com/AI45Lab/Code / complete

Method complete

core/src/llm/openai.rs:487–495  ·  view source on GitHub ↗
(
        &self,
        messages: &[Message],
        system: Option<&str>,
        tools: &[ToolDefinition],
    )

Source from the content-addressed store, hash-verified

485#[async_trait]
486impl LlmClient for OpenAiClient {
487 async fn complete(
488 &self,
489 messages: &[Message],
490 system: Option<&str>,
491 tools: &[ToolDefinition],
492 ) -> Result<LlmResponse> {
493 self.send_request(self.build_chat_request(messages, system, tools, None))
494 .await
495 }
496
497 async fn complete_structured(
498 &self,

Callers

nothing calls this directly

Calls 2

build_chat_requestMethod · 0.80
send_requestMethod · 0.45

Tested by

no test coverage detected