crabtalk-core
Core types for the crabtalk LLM API gateway.
- Config —
GatewayConfig,ProviderConfig,ProviderKind,KeyConfig,StorageConfig,PricingConfig - Types — OpenAI-compatible wire format:
ChatCompletionRequest/Response/Chunk,EmbeddingRequest/Response,ImageRequest,AudioSpeechRequest,ModelList - Error —
Errorenum with transient detection for retry logic,ApiErrorfor OpenAI-format error responses - Storage — async KV
Storagetrait withMemoryStorage,SqliteStorage(storage-sqlite),RedisStorage(storage-redis) - Extension —
Extensiontrait with request pipeline hooks
License
MIT OR Apache-2.0