Skip to main content

OpenAiProvider

Defined in the LLM module.
Rust AI Agent SDK OpenAI-compatible LLM provider

Fields

NameTypeDescription
configLlmConfig-
clientreqwest::Client-

Methods

new

fn new(config: LlmConfig) -> Self
Create a new OpenAI provider Parameters:
NameType
configLlmConfig

default_model

fn default_model() -> Self
Create with default config

Source

View on GitHub

praisonai/src/llm/mod.rs at line 254

Rust Providers

Rust LLM