{"id":23357481,"url":"https://github.com/cs-magic-open/uni-api","last_synced_at":"2026-02-16T17:33:46.410Z","repository":{"id":229975058,"uuid":"778129772","full_name":"cs-magic-open/uni-api","owner":"cs-magic-open","description":"聚合AIGC行业主流API，支持私有化部署、分级管理、算法调度、可视化监控等","archived":false,"fork":false,"pushed_at":"2024-11-26T07:09:29.000Z","size":9332,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T19:34:18.121Z","etag":null,"topics":["aigc","chatgpt","fastapi","llm"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cs-magic-open.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-27T06:10:43.000Z","updated_at":"2025-01-18T03:50:10.000Z","dependencies_parsed_at":"2024-03-27T07:27:11.647Z","dependency_job_id":"183b4900-4c8b-438f-aae1-96883b104a96","html_url":"https://github.com/cs-magic-open/uni-api","commit_stats":null,"previous_names":["cs-magic/nextapi","cs-magic/uni-api","cs-magic-open/uni-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cs-magic-open/uni-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs-magic-open%2Funi-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs-magic-open%2Funi-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs-magic-open%2Funi-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs-magic-open%2Funi-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cs-magic-open","download_url":"https://codeload.github.com/cs-magic-open/uni-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs-magic-open%2Funi-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29513989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aigc","chatgpt","fastapi","llm"],"created_at":"2024-12-21T10:29:14.482Z","updated_at":"2026-02-16T17:33:46.377Z","avatar_url":"https://github.com/cs-magic-open.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open API\n\n![img.png](docs/overview-0.1.1.png)\n\n![providers](docs/providers.png)\n\n## TODO\n\n- [ ] specific scenario-based prompt\n- [ ] user management on database\n- [ ] callable robuster api\n\n## Features\n\n- [x] supported compress-content algo (2024-03-31)\n- [x] supported zhipu / minimax API (2024-03-31)\n- [x] supported agent call (2024-03-30)\n- [x] supported openai / moonshot API (2024-03-28)\n\n## Configuration\n\nconfig your `.env` like `.env.sample`\n\n```shell\npoetry shell\npoetry install\npoetry run fastapi run --port 41110\n```\n\n## Run\n\n访问 `http://localhost:41110/docs` 查看各 API。\n\n## Deploy\n\n### proxy\n\n```shell\npm2 start --name \"openapi\" 'http_proxy=http://localhost:7890 https_proxy=http://localhost:7890 uvicorn auth:app --port 40330'\n```\n\n## Tech\n\n### drivers\n\n- ubuntu 安装 stable driver（必要）：https://chat.openai.com/c/3b9d2211-7a26-4fc1-afdc-dd46025e80cb\n- 手动选择下载 driver（非必要）： https://googlechromelabs.github.io/chrome-for-testing/#stable\n\n## Bugfix\n\n### Wechaty - FileBox\n\n文件发送问题，参考：https://github.com/wechaty/python-wechaty/issues/356#issuecomment-1228024344\n，代码见 `packages/common_wechat/patches/filebox.py`\n\n### NotGiven\n\n如果不加这个的话，swagger 里会显示为 null\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcs-magic-open%2Funi-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcs-magic-open%2Funi-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcs-magic-open%2Funi-api/lists"}