Skip to main content

Crate aither_cloud

Crate aither_cloud 

Source
Expand description

Unified cloud provider wrapping OpenAI, Claude, Gemini, and GitHub Copilot.

This crate provides a single CloudProvider enum that implements LanguageModel, allowing seamless switching between providers.

It also provides CloudModelProvider enum that implements LanguageModelProvider, allowing unified model listing and instantiation across providers.

Re-exports§

pub use aither_claude as claude;
pub use aither_codex as codex;
pub use aither_copilot as copilot;
pub use aither_gemini as gemini;
pub use aither_openai as openai;

Structs§

Claude
Claude chat model client for the Anthropic Messages API.
ClaudeProvider
Provider capable of listing and instantiating Claude models.
Codex
A LanguageModel for a single model on the Codex subscription backend.
CodexProvider
Provider over the ChatGPT Codex backend.
Copilot
GitHub Copilot language model client.
CopilotProvider
Provider capable of listing and instantiating Copilot models.
Gemini
Native Gemini backend wired up to the aither traits.
GeminiProvider
Provider capable of listing and instantiating Gemini models.
OpenAI
OpenAI model backed by the Responses API by default, with legacy chat.completions support for compatibility.
OpenAIProvider
Provider capable of listing and instantiating OpenAI models.

Enums§

CloudEmbedder
Unified embedding-capable cloud provider.
CloudEmbedderError
Error returned when a cloud provider cannot be used as an embedder.
CloudError
Error type for cloud provider operations.
CloudModelProvider
Unified model provider wrapping OpenAI, Claude, Gemini, and Copilot providers.
CloudProvider
Unified cloud provider wrapping OpenAI, Claude, Gemini, and GitHub Copilot.