RepositoryTypeScriptCNChina
zhengxs2018

zhengxs2018/ai

集成 百度文心一言,阿里通义千问,腾讯混元助手 和 讯飞星火认知 等大模型的 API,并且适配 OpenAI 的输入与输出。

63stars
7forks
0issues
0views

🤖 AI SDK — Kết nối mọi mô hình lớn nội địa, tương thích OpenAI ngay lập tức

Một SDK TypeScript đa mô hình, hỗ trợ kết nối nhanh với các dịch vụ AI lớn trong nước mà không cần thay đổi mã nguồn.

AI SDK (@zhengxs/ai) là một thư viện TypeScript giúp tích hợp liền mạch các API của các mô hình lớn nội địa như Ernie Bot (Baidu), Qwen (Alibaba), Hunyuan (Tencent), Spark (iFlytek) và MiniMax, đồng thời tương thích hoàn toàn với giao diện OpenAI, giúp bạn dễ dàng chuyển đổi giữa các nhà cung cấp mà không cần sửa đổi logic ứng dụng.

✨ Điểm nổi bật

  • 🚀 Dễ dùng nhanh: Chỉ cần một lần học, bạn có thể ngay lập tức tích hợp bất kỳ mô hình nào.
  • 💻 Đa mô hình nội địa: Hỗ trợ đầy đủ các mô hình lớn phổ biến tại Việt Nam và Trung Quốc.
  • 🔌 Tương thích OpenAI: Đầu vào và đầu ra được chuẩn hóa theo đúng định dạng của OpenAI.
  • 💬 Hỗ trợ streaming: Giao tiếp theo thời gian thực như OpenAI, phù hợp cho trò chuyện động.
  • 🔑 Cấu hình đơn giản: Chỉ cần cung cấp API Key, phần còn lại để SDK xử lý.
  • 📦 Cài đặt nhanh: Hỗ trợ cài đặt qua npm/yarn/pnpm.
  • 📝 Tài liệu chi tiết: Có hướng dẫn riêng cho từng nhà cung cấp mô hình.

💡 Vì sao đáng chú ý

Thay vì phải viết mã riêng cho từng nhà cung cấp khác nhau — mỗi nhà đều có cách gọi và định dạng khác nhau — AI SDK cung cấp một lớp trừu tượng thống nhất, giống như OpenAI, khiến việc chuyển đổi giữa các mô hình trở nên liền mạch và nhanh chóng. Đây là lựa chọn lý tưởng cho các dự án AIGC, chatbot doanh nghiệp hoặc nền tảng hỗ trợ trí tuệ nhân tạo dựa trên mô hình nội địa.


#AI #OpenAI #TypeScript #SDK #ErnieBot #Qwen #Hunyuan #Spark #Minimax #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

187.7k
Oct 24, 2026
RepositoryPython
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

159.6k
Oct 26, 2026
RepositoryTypeScript
firecrawl/firecrawl

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

195.6k
Oct 26, 2026
RepositoryPython
langchain-ai/langchain

The agent engineering platform.

148.4k
Oct 24, 2026
RepositoryJupyter Notebook
microsoft/generative-ai-for-beginners

21 Lessons, Get Started Building with Generative AI

122.1k
Oct 24, 2026
RepositoryPython
microsoft/markitdown

Python tool for converting files and office documents to Markdown.

192.3k
Oct 23, 2026
RepositoryTypeScript
lobehub/lobehub

🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.

83.4k
Oct 23, 2026
RepositoryTypeScript
code-yeongyu/oh-my-openagent

OmO: Just type "mass ulw" keyword with your prompt. Now you are the master of graph engineering.

70.4k
Oct 26, 2026
RepositoryTypeScript
labring/FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.

29.9k
Oct 22, 2026