Skip to main content

Crate siumai_openai_compatible

Crate siumai_openai_compatible 

Source
Expand description

Reusable OpenAI-compatible provider runtime for Siumai.

This crate composes siumai-protocol-openai and siumai-transport into a configurable execution engine. It owns explicit generic/custom provider construction and a bounded, versioned codec seam. Branded provider crates own their profiles, options, evidence, and model advisories while reusing this engine for protocol execution.

Modules§

extension
Versioned, provider-neutral composition hooks for branded provider crates.

Structs§

BearerCredential
A bearer credential with optional proactive-refresh time.
CredentialSourceError
Sanitized failure returned by a dynamic credential source.
OpenAiCompatibleLanguageModel
Lightweight language model handle sharing one configured provider runtime.
OpenAiCompatibleProfile
One immutable endpoint and evidence-backed set of OpenAI-family language modes.
OpenAiCompatibleProvider
A synchronously configured OpenAI-compatible provider.
OpenAiCompatibleProviderBuilder
ResponsesWireDialect
Describes the documented wire contractions a configured Responses codec may normalize.

Enums§

CredentialRequest
Why a dynamic source is being consulted.
OpenAiCompatibleApiMode
OpenAI-family language API selected by one model handle or Registry route.
OpenAiCompatibleConfigError
OpenAiCompatibleCredential
Explicit authentication mode for one configured provider.

Traits§

DynamicCredentialSource