Skip to main content

Crate siumai_provider_openai

Crate siumai_provider_openai 

Source
Expand description

siumai-provider-openai

OpenAI provider implementation.

This crate owns:

  • the OpenAI provider implementation (client + builder + extensions)
  • the OpenAI-compatible vendor provider implementation (configuration presets + adapter wiring)

The reusable OpenAI-like protocol mapping lives in siumai-protocol-openai and is re-exported under crate::standards for compatibility.

Modules§

auth
Authentication helpers and token providers. This module defines a minimal trait to supply Bearer tokens (e.g., for Vertex AI).
builder
Builder utilities shared across provider crates.
client
Client Module
core
Core Abstractions
defaults
Default Configuration Values
error
Error handling (re-export).
execution
Execution Layer - Unified Public API
hosted_tools
Provider-defined tools (core crate).
observability
Observability entrypoint: unified namespace for tracing and telemetry.
params
Provider-owned legacy parameter types. Provider-owned parameter types (legacy).
provider_metadata
Provider-owned typed metadata structs (OpenAI-specific). Provider-specific metadata (provider-owned).
provider_options
Provider-owned typed option structs (OpenAI-specific). Provider-specific options (provider-owned).
providers
OpenAI family provider implementations.
retry
Retry module (ergonomic namespace)
retry_api
Public Retry API Facade
standards
Protocol standards re-exported by this crate for compatibility.
streaming
Streaming Module
tools
Provider-defined tool factories (re-export).
traits
Core Trait Definitions
types
Core data type definitions (re-export).
utils
Utility modules for siumai

Enums§

LlmError
The primary error type for the LLM library.