Skip to main content

llm_chat

Function llm_chat 

Source
pub async fn llm_chat(
    llm: &LlmConfig,
    system: &str,
    user: &str,
) -> Option<String>
Expand description

Sends a chat completion request to the LLM.

Returns Some(content) on success, None on any error.

Prefer llm_chat_with_usage if you need token counting.