#artificial-intelligence #openai #llm #anthropic

serdes-ai-models

Model trait and provider implementations for serdes-ai

8 releases

new 0.2.6 Feb 20, 2026
0.2.5 Feb 17, 2026
0.1.5 Jan 27, 2026

#508 in Machine learning

Download history 3/week @ 2026-01-15 228/week @ 2026-01-22 97/week @ 2026-01-29 31/week @ 2026-02-05 36/week @ 2026-02-12

392 downloads per month
Used in 7 crates (5 directly)

MIT license

1.5MB
29K SLoC

serdes-ai-models

Crates.io Documentation License: MIT

Model trait and provider implementations for serdes-ai

This crate defines the Model trait and provides implementations for various LLM providers:

  • OpenAI (GPT-4, GPT-4o, o1, o3)
  • Anthropic (Claude 3.5, Claude 4)
  • Google (Gemini 1.5, Gemini 2.0)
  • Groq (Llama, Mixtral)
  • Mistral
  • Ollama (local models)
  • Azure OpenAI
  • AWS Bedrock

Installation

[dependencies]
serdes-ai-models = "0.1"

Usage

use serdes_ai_models::{OpenAIChatModel, Model};

let model = OpenAIChatModel::from_env("gpt-4o")?;
let response = model.chat(messages, options).await?;

Part of SerdesAI

This crate is part of the SerdesAI workspace.

For most use cases, you should use the main serdes-ai crate which re-exports these types.

License

MIT License - see LICENSE for details.

Dependencies

~16–37MB
~428K SLoC