2 releases

Uses new Rust 2024

new 0.0.2 Jan 10, 2026
0.0.1 Nov 26, 2025

#728 in Machine learning


Used in crewride

MIT license

195KB
3.5K SLoC

AI Adapter

A unified Rust library for accessing multiple AI service providers through a standardized interface.

Features

  • Unified API: Consistent interface across different AI providers
  • Provider Support: OpenAI, Anthropic, DeepSeek, Google Gemini, Ollama
  • Standardized Data Structures: Normalized request/response formats

Supported Providers

Provider Chat Embeddings Model List
OpenAI
Anthropic
Google Gemini

Architecture

  • providers: Provider-specific implementations

Compatible with OpenAI API

DeepSeek AI provider implementation

API Reference: https://api-docs.deepseek.com/ Model Names: https://api-docs.deepseek.com/quick_start/pricing

Ollama provider implementation

API Reference: https://github.com/ollama/ollama/blob/main/docs/api.md Model Names: https://ollama.com/library Compatibility: https://github.com/ollama/ollama/blob/main/docs/openai.md

License

MIT

Dependencies

~1.5–2.7MB
~51K SLoC