Skip to content

xsai LLM interaction library

xsai is a TypeScript/JavaScript library designed to handle interactions with Large Language Models (LLMs)^[001-TODO__Project_AIRI_-开源_AI_VTuber_赛博伴侣.md]. It was developed as part of the [[project-airi|Project AIRI]] ecosystem and serves as a utility for managing LLM requests^[001-TODO__Project_AIRI-_开源_AI_VTuber_赛博伴侣.md].

Overview

The library provides a standardized interface for communicating with various LLM providers. Its design and functionality are likened to those of the Vercel AI SDK, offering a structured way to integrate AI capabilities into applications^[001-TODO__Project_AIRI_-_开源_AI_VTuber_赛博伴侣.md].

Key Features

  • Provider Abstraction: xsai supports integration with over 30 different LLM API providers^[001-TODO__Project_AIRI_-_开源_AI_VTuber_赛博伴侣.md].
  • Broad Compatibility: It is capable of interfacing with a wide range of services, including open-source local inference tools (like Ollama, vLLM, SGLang), major commercial APIs (OpenAI, Anthropic, Google Gemini), and specialized platforms (DeepSeek, Qwen, xAI, Groq, Mistral, etc.)^[001-TODO__Project_AIRI_-_开源_AI_VTuber_赛博伴侣.md].

Context

xsai is utilized within the core architecture of Project AIRI to facilitate the AI's conversational logic^[001-TODO__Project_AIRI_-开源_AI_VTuber_赛博伴侣.md]. It is maintained under the Moeru AI organization and is listed as a sub-project alongside other tools like unspeech and mcp-launcher^[001-TODO__Project_AIRI-_开源_AI_VTuber_赛博伴侣.md].

Sources

  • 001-TODO__Project_AIRI_-_开源_AI_VTuber_赛博伴侣.md