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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! This module provides the Bailing provider, wrapping OpenAI Chat Completions for Bailing requests.

pub mod capabilities;

// Generate the settings module
crate::openai_compatible_settings!(
    BailingProviderSettings,
    BailingProviderSettingsBuilder,
    "Bailing",
    "https://api.tbox.cn/api/llm/v1/chat/completions",
    "BAILING_API_TOKEN"
);

// Generate the provider struct and builder
crate::openai_compatible_provider!(Bailing, BailingBuilder, BailingProviderSettings, "bailing");

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