aisdk 0.5.2

An open-source Rust library for building AI-powered applications, inspired by the Vercel AI SDK. It provides a robust, type-safe, and easy-to-use interface for interacting with various Large Language Models (LLMs).
Documentation
//! This module provides the Vercel provider, wrapping OpenAI Chat Completions for Vercel requests.
//!

// NOTE: Vercel might not be fully compatible with the OpenAI API. Please refer to
// the Vercel documentation for more information.

pub mod capabilities;

// Generate the settings module
crate::openai_compatible_settings!(
    VercelProviderSettings,
    VercelProviderSettingsBuilder,
    "Vercel",
    "https://ai-gateway.vercel.sh/v1/",
    "VERCEL_API_KEY"
);

// Generate the provider struct and builder
crate::openai_compatible_provider!(
    Vercel,
    VercelBuilder,
    VercelProviderSettings,
    "claude-3-5-haiku-2024-10-22"
);

// Generate the language model implementation
crate::openai_compatible_language_model!(Vercel);

// Generate the embedding model implementation
crate::openai_compatible_embedding_model!(Vercel);