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 Amazon Bedrock provider, wrapping OpenAI Chat Completions for Bedrock requests.
//!

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

pub mod capabilities;

// Generate the settings module
crate::openai_compatible_settings!(
    AmazonBedrockProviderSettings,
    AmazonBedrockProviderSettingsBuilder,
    "AmazonBedrock",
    "https://bedrock-runtime.us-east-1.amazonaws.com/openai/v1/",
    "BEDROCK_API_KEY"
);

// Generate the provider struct and builder
crate::openai_compatible_provider!(
    AmazonBedrock,
    AmazonBedrockBuilder,
    AmazonBedrockProviderSettings,
    "anthropic.claude-3-5-sonnet-20241022-v2:0"
);

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