{"full_name":"coaidev/coai","owner":"coaidev","name":"coai","shard":"1","url":"https://github.com/coaidev/coai","description":"🚀 Next Gen Multi-tenant AI One-Stop Solution. Builtin Admin & Billing System. Enterprise-Grade Unified LLM Gateway Support for 200+ Models And 35+ Providers, Load Balacing w/ Priority-base Routing, Cost Management, Chat Share, Cloud Sync, Credit/Subscription Billing, All File Parsing, Web Search, Built-in Model Cache.","homepage":"https://coai.dev","topics":["chatgpt","golang","react","api","chat","cross-platform","gemini","openai","proxy","ai-gateway","llm-gateway"],"tag_pages":["ai-gateway","api","chat","chatgpt","cross-platform","gemini","golang","llm-gateway","openai","proxy","react"],"language":"TypeScript","license":"Apache-2.0","avatar":"https://avatars.githubusercontent.com/u/125332171?v=4","created_at":"2023-07-17T18:09:57Z","pushed_at":"2026-03-12T10:00:31Z","metrics":{"stars":9347,"forks":1224,"watchers":65,"issues":317,"prs":68,"releases":15,"issues_open":33,"issues_closed":284,"prs_open":15,"prs_closed":18,"prs_merged":35,"discussions":17},"growth":{"day":{"stars":0,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[9344,9346,9345,9346,9346,9347,9347],"forks":[1223,1224,1224,1224,1224,1224,1224],"watchers":[null,65,65,65,65,65,65],"issues_open":[null,34,34,34,34,33,33],"prs_open":[null,15,15,15,15,15,15]},"boards":{},"same_owner":[],"issues":[{"number":291,"title":"SMTP STARTTLS 兼容性问题","comments":12,"created_at":"2024-11-25T18:23:36Z"},{"number":313,"title":"询问问题时不会自动联网搜索","comments":10,"created_at":"2024-12-18T12:59:03Z"},{"number":311,"title":"能不能搞个渠道自动获取最新model？","comments":10,"created_at":"2024-12-09T14:29:37Z"},{"number":312,"title":"添加模型的时候能够选择是视觉模型还是文本模型","comments":7,"created_at":"2024-12-10T14:08:11Z"},{"number":395,"title":"Discord邀请无效了，我想咨询一下购买授权的功能，但是没有能联系的地方","comments":4,"created_at":"2026-03-17T09:41:52Z"},{"number":347,"title":"请求上架1panel商店","comments":4,"created_at":"2025-03-02T05:35:03Z"},{"number":375,"title":"是否考虑支持sonu？","comments":3,"created_at":"2025-07-20T15:10:02Z"},{"number":369,"title":"“预设设置”点击使用预设后，聊天框区域失去响应","comments":3,"created_at":"2025-05-30T15:38:17Z"}],"discussions":[{"number":428,"title":"CoAI is listed on Awesome Gemini","comments":0,"category":"Discussions | 交流","created_at":"2026-11-09T08:30:44Z"},{"number":426,"title":"反代 中转站","comments":0,"category":"Q&A | 问题解答","created_at":"2026-10-21T15:53:44Z"},{"number":389,"title":"Pro版怎么联系购买？这个项目已经停止维护了吗？","comments":0,"category":"Discussions | 交流","created_at":"2025-12-26T08:16:17Z"},{"number":378,"title":"太久没用了 有几个问题","comments":1,"category":"Q&A | 问题解答","created_at":"2025-08-09T13:06:49Z"},{"number":329,"title":"建议能对接各种智能体, 并且增加实时音频对话功能.","comments":0,"category":"Ideas | 灵感","created_at":"2025-02-12T09:13:57Z"},{"number":305,"title":"SearXNG 的搜索引擎设置","comments":2,"category":"Discussions | 交流","created_at":"2024-12-05T03:54:02Z"},{"number":299,"title":"宝塔缓存问题","comments":8,"category":"Q&A | 问题解答","created_at":"2024-11-30T11:32:37Z"},{"number":298,"title":"宝塔部署异常","comments":15,"category":"Q&A | 问题解答","created_at":"2024-11-25T09:37:24Z"}],"latest_release":{"name":"v4.0.0","tag":"v4.0.0","published_at":"2025-10-23T12:31:06Z","body":"# CoAI v4.0.0 Release Notes\r\n\r\nWe are excited to announce the official release of **CoAI v4.0.0**! This is a major, milestone update focused on the refactoring of the backend management system and the enhancement of core data analysis capabilities, alongside numerous features and fixes contributed by the community.\r\n\r\n## 🚀 Highlights\r\n\r\n### 📊 Comprehensive Data Analysis Capabilities\r\n\r\nThis update introduces a brand-new backend data analysis module, elevating the statistical granularity from daily to **minute-level**. This provides finer, more real-time insights for operations and management.\r\n\r\n- **Minute-Level Real-Time Statistics**: Added minute-level statistics for model request volume (RPM - Requests Per Minute) and token usage (TPM - Tokens Per Minute), enabling real-time monitoring for both individual users and the global system.\r\n- **Extended Billing and Request Statistics**: New APIs for fetching yesterday's and last month's billing data, as well as statistics for error requests and total requests, ensuring comprehensive data coverage.\r\n\r\n### 🏗 Admin Module Refactor\r\n\r\nTo support future feature expansion and improve code quality, we have thoroughly modularized and refactored the core Go backend `admin/analysis` module.\r\n\r\n- **Optimized Code Structure**: The original `admin/analysis.go` file has been split into multiple files, including `analysis.go`, `format.go`, `statistic.go`, and `reflect.go`. This separation of concerns significantly enhances **maintainability** and **readability**.\r\n\r\n### ✨ New Features & Improvements\r\n\r\n- **Skylark Integration**: Merged Skylark-related features (PR #328), further expanding the platform's capabilities.\r\n- **Mathematical Formula Rendering**: Added math preprocessing for the Markdown component, allowing for better display and rendering of complex mathematical expressions.\r\n- **Theme Switching Optimization**: Optimized the display logic for theme switching, improving the user experience.\r\n- **Development Environment Configuration**: Updated `docker-compose.watch.yaml` to optimize the configuration for development and debugging environments.\r\n\r\n### 🐞 Key Fixes\r\n\r\n- **Chat Content Display Fix**: Fixed an issue where users could not see the answer content when the message included `reasoning_content`.\r\n- **Thinking Block Display Fix**: Fixed the issue where text overflowed and was not displayed correctly in the \"Thinking Block\" due to the `overflow-hidden` property.\r\n\r\n## Detailed Changes\r\n\r\n| Type | Module | Description | PR |\r\n| :--- | :--- | :--- | :--- |\r\n| **Feat** | Admin/Analysis | Added real-time statistics APIs like `GetTpmToday` and `GetRpmToday`. | - |\r\n| **Feat** | Admin/Analysis | Added `GetBillingYesterday` and `GetBillingLastMonth` APIs. | - |\r\n| **Feat** | Core | Merged Skylark-related features. | #330 |\r\n| **Feat** | Frontend | Added math preprocessing for the Markdown component. | #335 |\r\n| **Refactor**| Admin/Analysis | Split `admin/analysis.go` into `analysis.go`, `format.go`, `statistic.go`, `reflect.go`. | - |\r\n| **Refactor**| Frontend | Optimized the display logic for theme switching. | #350 |\r\n| **Fix** | Chat | Fixed issue where answer content was hidden with `reasoning_content`. | #326 |\r\n| **Fix** | Chat | Fixed text overflow issue in the \"Thinking Block\" caused by `overflow-hidden`. | #355 |\r\n| **Docs** | Documentation | Added Japanese `README` documentation. | #262 |\r\n| **Chore** | Config | Updated the `docker-compose.watch.yaml` file. | #324 |\r\n| **Chore** | Config | Updated `.gitignore` to accommodate new config and key file structure. | - |\r\n| **Chore** | Dependencies | Major updates to `package.json` and `pnpm-lock.yaml`. | - |\r\n\r\n## 🤝 New Contributors\r\n\r\nA big thank you to the following community members for their first contributions to CoAI! Welcome to the CoAI family!\r\n\r\n*   [@ncs19960831](https://github.com/ncs19960831)\r\n*   [@eltociear](https://github.com/eltociear)\r\n*   [@PandaJu](https://github.com/PandaJu)\r\n*   [@Hobo12](https://github.com/Hobo1","is_prerelease":false},"readme":true,"readme_zh":true,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}