{"id":26778344,"url":"https://github.com/ivanlulyf/bunny-llm","last_synced_at":"2025-04-16T19:44:46.595Z","repository":{"id":231978841,"uuid":"783163112","full_name":"IvanLuLyf/bunny-llm","owner":"IvanLuLyf","description":"Deno LLM API Service","archived":false,"fork":false,"pushed_at":"2025-02-26T05:48:43.000Z","size":135,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T05:36:54.154Z","etag":null,"topics":["chatgpt","chatgpt-api","cloudflare-workers-ai","llm","llm-serving"],"latest_commit_sha":null,"homepage":"https://bunny-llm.deno.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IvanLuLyf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-04-07T05:30:01.000Z","updated_at":"2025-02-26T05:48:46.000Z","dependencies_parsed_at":"2024-05-08T13:41:38.366Z","dependency_job_id":"6c8ea6c8-6893-4fd3-a3de-2741a6299675","html_url":"https://github.com/IvanLuLyf/bunny-llm","commit_stats":null,"previous_names":["ivanlulyf/bunny-gpt","ivanlulyf/bunny-llm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanLuLyf%2Fbunny-llm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanLuLyf%2Fbunny-llm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanLuLyf%2Fbunny-llm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanLuLyf%2Fbunny-llm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IvanLuLyf","download_url":"https://codeload.github.com/IvanLuLyf/bunny-llm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249269545,"owners_count":21241151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["chatgpt","chatgpt-api","cloudflare-workers-ai","llm","llm-serving"],"created_at":"2025-03-29T05:37:03.472Z","updated_at":"2025-04-16T19:44:46.553Z","avatar_url":"https://github.com/IvanLuLyf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bunny-LLM\n\na Deno LLM API Service\n\n## Usage\n\nSet `base_url` to `https://bunny-llm.deno.dev/v1/` or your own endpoint.\n\nSet env variable `BUNNY_API_TOKEN` and specific vendor tokens.\n\nModel format `[vendor]:[model_name]`, for example `openai:gpt-4-turbo`\n\n### Example\n\n```python\nfrom openai import OpenAI\n\nclient = OpenAI(\n    base_url='https://bunny-llm.deno.dev/v1/',\n    api_key='YOUR_BUNNY_API_TOKEN',\n)\nmodel_name = 'cloudflare:@cf/qwen/qwen1.5-0.5b-chat'\n\nres = client.chat.completions.create(\n    model=model_name,\n    messages=[\n        {'role': 'user', 'content': 'Who are you?'}\n    ],\n)\nprint(res.choices[0].message.content)\n```\n\n### CloudFlare Workers AI\n\n`vendor` is `cf` or `cloudflare`\n\n`model` can refer to [Supported Models](https://developers.cloudflare.com/workers-ai/models/)\n\nSet env variable `CF_ACCOUNT_ID` and `CF_API_TOKEN` or use the following algorithm.\n\n```javascript\n// JavaScript\napi_key = encodeURIComponent(JSON.stringify({\n    'account': 'YOUR_CF_ACCOUNT_ID',\n    'token': 'YOUR_CF_API_TOKEN',\n}))\n```\n\n```python\n# python\nimport json\nimport urllib.parse\n\napi_key=urllib.parse.quote(json.dumps({\n    'account': 'YOUR_CF_ACCOUNT_ID',\n    'token': 'YOUR_CF_API_TOKEN',\n}))\n```\n\n### DashScope\n\n`vendor` is `ali`\n\n`model` can refer to [Supported Models](https://help.aliyun.com/zh/model-studio/developer-reference/models/)\n\n`api_key` can set by `DASHSCOPE_API_KEY` or pass it directly [Get API KEY](https://dashscope.console.aliyun.com/apiKey)\n\n### Groq\n\n`vendor` is `groq`\n\n`api_key` can set by `GROQ_API_KEY` or pass it directly [Get API KEY](https://console.groq.com/keys)\n\n`model` can refer to [Supported Models](https://console.groq.com/docs/models)\n\n## Deploy\n\n### Vercel\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FIvanLuLyf%2Fbunny-llm)\n\n### Netlify\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/IvanLuLyf/bunny-llm/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanlulyf%2Fbunny-llm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanlulyf%2Fbunny-llm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanlulyf%2Fbunny-llm/lists"}