Crate toast_api

Source
Expand description

Toast API Server

This library provides CLI clients and an OpenAI-compatible API server built on Claude and DeepSeek.

Re-exports§

pub use api::Claude;
pub use api::Session;
pub use config::HAIKU_MODEL;
pub use config::OPUS_MODEL;
pub use config::SONNET_MODEL;
pub use deepseek::DeepSeek;
pub use deepseek::Session as DeepSeekSession;

Modules§

api
API client for interacting with Claude
config
Configuration constants and defaults
deepseek
API client for interacting with DeepSeek
server
Server implementation for the OpenAI-compatible API
sha3
SHA3-based proof-of-work implementation
shared_utils
Shared utilities for CLI implementations
unified_cli
Unified CLI implementation for both providers
utils
Helper utilities for request/response processing and tool commands