Expand description
Unified LLM API with provider collections, automatic auth resolution, token and cost tracking, and session context hand-off between models.
Ported from @earendil-works/pi-ai.
Re-exports§
pub use api::codex_transport::CodexWebSocketDebugStats;pub use api::codex_transport::close_codex_websocket_sessions;pub use api::codex_transport::get_codex_websocket_debug_stats;pub use api::codex_transport::reset_codex_websocket_debug_stats;pub use api::faux::FauxResponseStep;pub use auth::oauth::OAuthApiKeyResult;pub use auth::oauth::OAuthProviderInterface;pub use auth::oauth::OPENAI_CODEX_BROWSER_LOGIN_METHOD;pub use auth::oauth::OPENAI_CODEX_DEVICE_CODE_LOGIN_METHOD;pub use auth::oauth::anthropic_oauth;pub use auth::oauth::builtin_oauth_provider_ids;pub use auth::oauth::get_oauth_api_key;pub use auth::oauth::get_oauth_provider;pub use auth::oauth::get_oauth_providers;pub use auth::oauth::github_copilot_oauth;pub use auth::oauth::oauth_provider_modify_models;pub use auth::oauth::openai_codex_oauth;pub use auth::oauth::refresh_oauth_token;pub use auth::oauth::register_oauth_provider;pub use auth::oauth::reset_oauth_providers;pub use auth::oauth::unregister_oauth_provider;pub use auth::DefaultAuthContext;pub use auth::InMemoryCredentialStore;pub use auth::ModelsError;pub use auth::ModelsErrorCode;pub use auth::OAuthCredential;pub use auth::default_auth_context;pub use auth::env_api_key_auth;pub use auth::resolve_provider_auth;pub use images::CreateImagesModelsOptions;pub use images::ImagesModels;pub use images::builtin_images_models;pub use images::generate_images;pub use models::CreateModelsOptions;pub use models::CreateProviderOptions;pub use models::Models;pub use models::MutableModels;pub use models::Provider;pub use models::calculate_cost;pub use models::clamp_thinking_level;pub use models::create_models;pub use models::create_provider;pub use models::get_supported_thinking_levels;pub use models::has_api;pub use models::models_are_equal;pub use providers::faux::FauxProviderHandle;pub use providers::faux::faux_assistant_message;pub use providers::faux::faux_provider;pub use providers::faux::faux_text;pub use providers::faux::faux_thinking;pub use providers::faux::faux_tool_call;pub use providers::builtin_models;pub use providers::get_builtin_model;pub use providers::get_builtin_models;pub use providers::get_builtin_providers;pub use utils::event_stream::EventStreamIterator;pub use utils::overflow;pub use utils::retry;pub use utils::validation;pub use types::*;
Modules§
- api
- Provider API implementation layer — ported from pi-ai
src/api/. - auth
- images
- models
- providers
- types
- Core types for elph-ai provider streaming.
- utils
Type Aliases§
- Result
Result<T, Error>