正在自动登录…
jannybloug/ openai-gemini
这是一个无服务器代理,将Gemini API转换为OpenAI兼容接口,方便使用OpenAI生态工具调用Gemini模型。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/11/5 22:47:12 · 查看原文
- 累计 Stars
- 50
- 当前热度
- 1 天内 · 小火
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/11/5 22:47:12
- 使用方式
部署后,在支持自定义API地址的软件中填写代理地址和Gemini API密钥即可使用。
查看 README 依据
Then: `npm run dev` / `npm run dev:deno` / `npm run dev:bun`. ## How to use If you open your newly-deployed site in a browser, you will only see a `404 Not Found` message. This is expected, as the API is not designed for direct browser access. To utilize it, you should enter your API address and your Gemini API key into the corresponding fields in your software settings. > [!NOTE] > Not all software tools allow overriding the OpenAI endpoint, but many do > (however these settings can sometimes be deeply hidden). Typically, you should specify the API base in this format:
- 部署要求
需要Google API密钥,并部署到Vercel、Netlify、Cloudflare等平台或本地运行。
查看 README 依据
You will need a personal Google [API key](https://aistudio.google.com/app/api-keys). > [!IMPORTANT] > Even if you are located outside of the [supported regions](https://ai.google.dev/gemini-api/docs/available-regions#available_regions), > it is still possible to acquire one using a VPN. Deploy the project to one of the providers, using the instructions below. You will need to set up an account there. If you opt for “button-deploy”, you'll be guided through the process of forking the repository first, which is necessary for continuous integration (CI). ### Deploy with Vercel
[](https://vercel.com/new/clone?repository-url=https://github.com/prabeakarve/openai-gemini&repository-name=my-openai-gemini) - Alternatively can be deployed with [cli](https://vercel.com/docs/cli): `vercel deploy` - Serve locally: `vercel dev` - Vercel _Functions_ [limitations](https://vercel.com/docs/functions/limitations) (with _Edge_ runtime) ### Deploy to Netlify
- 已知限制
部分OpenAI参数如logit_bias、logprobs未实现,且annotations消息属性未实现。
查看 README 依据
Requests use the specified [model] if its name starts with "gemini-", "gemma-", or "models/". Otherwise, these defaults apply: - `chat/completions`: `gemini-flash-latest` - `embeddings`: `gemini-embedding-001` [model]: https://ai.google.dev/gemini-api/docs/models ## Built-in tools To use the **web search** tool, append ":search" to the model name (e.g., "gemini-2.5-flash:search"). Note: The `annotations` message property is not implemented. ## Media [Vision] and [audio] input supported as per OpenAI [specs].
- [x] "tool" - [x] `tool_calls` - [x] `model` - [x] `frequency_penalty` - [ ] `logit_bias` - [ ] `logprobs` - [ ] `top_logprobs` - [x] `max_tokens`, `max_completion_tokens` - [x] `n` (`candidateCount` <8, not for streaming) - [x] `presence_penalty` - [x] `reasoning_effort` - [x] `response_format` - [x] "json_object" - [x] "json_schema" (a select subset of an OpenAPI 3.0 schema object) - [x] "text" - [x] `seed` - [x] `stop`: string|array (`stopSequences` [1,5]) - [x] `stream` - [x] `stream_options`
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/11/5 22:18:53
- 首次达标收录
- 2026/11/5 22:42:23
- 统计更新时间
- 2026/11/5 23:51:28
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
普通加权总分 3.6 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/11/5 22:42:23 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/11/5 22:19:12
- 许可证标识
- MIT
- Fork 数
- 0
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目