prompt

Function prompt 

Source
pub async fn prompt<P: ToString>(model: Model, prompt_str: P) -> String
Expand description

Sends a single message to a model.

ยงExample

use ic_llm::Model;

ic_llm::prompt(Model::Llama3_1_8B, "What's the speed of light?").await