API adapter for OpenAI-compatible endpoints
Top 21.0% on sourcepulse
This project provides a unified API gateway for various Chinese large language models, abstracting away individual API differences and offering a single, OpenAI-compatible endpoint. It targets developers and users who want to easily integrate and switch between multiple LLMs, particularly those offering free tiers or requiring complex setup.
How It Works
The project acts as a reverse proxy, forwarding requests to different LLM providers based on configuration. It supports multiple models from providers like Xunfei, Baidu Qianfan, Tencent Hunyuan, and others, mapping their unique APIs to the standard OpenAI format. This approach simplifies integration by presenting a consistent interface, even for models with subtle API variations.
Quick Start & Requirements
./simple-one-api
(Linux/macOS) or simple-one-api.exe
(Windows), optionally specifying a config file path. Docker images are also available.Highlighted Details
system
prompt by prepending it to the first user prompt.Maintenance & Community
The project is actively maintained with regular updates. A community chat is available for discussion and support.
Licensing & Compatibility
The project is licensed under the MIT License, allowing for commercial use and integration with closed-source applications.
Limitations & Caveats
While aiming for broad compatibility, specific model integrations might still have subtle differences or require custom configuration. The project relies on the continued availability and adherence to OpenAI-like interfaces by the supported LLM providers.
1 month ago
1 day