crabtalk-core 0.0.4

Core types for the crabtalk LLM API gateway
Documentation

crabtalk-core

crates.io

Core types for the crabtalk LLM API gateway.

  • ConfigGatewayConfig, ProviderConfig, ProviderKind, KeyConfig, StorageConfig, PricingConfig
  • Types — OpenAI-compatible wire format: ChatCompletionRequest/Response/Chunk, EmbeddingRequest/Response, ImageRequest, AudioSpeechRequest, ModelList
  • ErrorError enum with transient detection for retry logic, ApiError for OpenAI-format error responses
  • Storage — async KV Storage trait with MemoryStorage, SqliteStorage (storage-sqlite), RedisStorage (storage-redis)
  • ExtensionExtension trait with request pipeline hooks

License

MIT OR Apache-2.0