{"id":20734376,"url":"https://github.com/byebyebruce/bailian2openai","last_synced_at":"2026-03-06T11:01:43.555Z","repository":{"id":208204784,"uuid":"721058041","full_name":"byebyebruce/bailian2openai","owner":"byebyebruce","description":"将Aliyun百炼大模型平台的App接口转成OpenAI API接口","archived":false,"fork":false,"pushed_at":"2024-08-13T02:21:35.000Z","size":6710,"stargazers_count":17,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T19:38:09.356Z","etag":null,"topics":["ai","api","bailian","openai","openai-api","proxy","tongyiqianwen"],"latest_commit_sha":null,"homepage":"","language":"Go","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/byebyebruce.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":"2023-11-20T09:19:28.000Z","updated_at":"2025-09-28T05:16:33.000Z","dependencies_parsed_at":"2023-11-24T05:21:07.426Z","dependency_job_id":"834edc83-62ee-4357-a583-b146cf206bc5","html_url":"https://github.com/byebyebruce/bailian2openai","commit_stats":null,"previous_names":["byebyebruce/bailian2openai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byebyebruce/bailian2openai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byebyebruce%2Fbailian2openai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byebyebruce%2Fbailian2openai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byebyebruce%2Fbailian2openai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byebyebruce%2Fbailian2openai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byebyebruce","download_url":"https://codeload.github.com/byebyebruce/bailian2openai/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byebyebruce%2Fbailian2openai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30173345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["ai","api","bailian","openai","openai-api","proxy","tongyiqianwen"],"created_at":"2024-11-17T05:30:10.233Z","updated_at":"2026-03-06T11:01:38.541Z","avatar_url":"https://github.com/byebyebruce.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BAILIAN2OPENAI\n\u003e [BaiLian](https://bailian.console.aliyun.com/) API to OpenAI API\n \n## 目的 \n本服务可以方便的将Aliyun的[百炼大模型平台](https://bailian.console.aliyun.com/)的App接口转成OpenAI API接口  \n这样可以方便接入以OpenAI API为标准接口的海量应用和框架(如[langchain](https://github.com/langchain-ai/langchain)、[chatgpt-next-web](https://github.com/Yidadaa/ChatGPT-Next-Web))\n这个项目可以结合 https://github.com/duoyang666/ai_novel项目中的 魔改版 OpenWebUi ，OpenWebUi提供前端页面支持， 魔改版 OpenWebUi 会请求/models 返回模型列表，所以需要加一个列表，这样应用可以调用不同模型\n\n## Prepare\nGet `Access Key、Access Secret Key、Agent Key、AppId` from [BaiLian](https://help.aliyun.com/document_detail/2587494.html)\n\n## Run\n1. Config `cp .env.exmaple .env` then edit it.\n2. Run\n   - Run api server `bailian2openai`\n   - Run CLI `bailian2openai -cli`\n   - Help `bailian2openai --help`  \n\n## Docker\n1. Build\n```bash\ndocker build \\\n   -t image:latest \\\n   --build-arg VERSION=$(git describe --tags --always) \\\n   .\n```\n\n2. Run\n```bash\ndocker run -it --rm -p 8080:8080 \\\n   -e ACCESS_KEY_ID= \\\n   -e ACCESS_KEY_SECRET= \\\n   -e AGENT_KEY= \\\n   -e APP_ID= \\\n   bailu1901/bailian2openai:latest\n```\n\n## Example\n- [api-server](example/api-server)\n- [chatgpt-next-web](example/chatgpt-next-web)\n\n## Build\n`make build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyebyebruce%2Fbailian2openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyebyebruce%2Fbailian2openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyebyebruce%2Fbailian2openai/lists"}