llmgleam/client

Types

pub opaque type Client
pub type Provider {
  Gemini
  GPT
}

Constructors

  • Gemini
  • GPT

Values

pub fn completion(
  client: Client,
  model: String,
  messages: List(types.ChatMessage),
  system_instruction: option.Option(String),
) -> Result(types.Completion, types.CompletionError)
pub fn new_client(provider: Provider, api_key: String) -> Client
Search Document