Open AI Provider • Rust AI Agent SDK

OpenAiProvider: OpenAI-compatible LLM provider

OpenAiProvider

Defined in the LLM module.

Rust AI Agent SDK

OpenAI-compatible LLM provider

Fields

NameTypeDescription
configLlmConfig–
clientreqwest::Client–

Methods

new

rust
fn new(config: LlmConfig) -> Self

Create a new OpenAI provider

Parameters:

NameType
configLlmConfig

default_model

rust
fn default_model() -> Self

Create with default config

Source

View on GitHub

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


Related Documentation