Open
Conversation
- 在 config.ts 中添加 Gemini 预设配置 - endpoint: generativelanguage.googleapis.com/v1beta/openai/chat/completions - model: gemini-2.5-flash - 在设置页面添加 API 预设快捷按钮(OpenAI / Gemini) - 点击预设按钮自动填充 endpoint 和 model,用户只需填入 API Key - 更新 GEMINI.md 文档,在 AI Provider 列表中添加 Gemini 修改文件: - src/core/config.ts - src/entrypoints/options/index.html - src/entrypoints/options/main.ts - GEMINI.md
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

为 Sapling 扩展添加 Google Gemini API 预设,让用户无需手动输入长 endpoint 地址,只需点击预设按钮并填入 API Key 即可使用 Gemini。
修改内容
API_PRESETS中添加 Gemini 预设(endpoint + model)新增的 Gemini 预设配置
使用方式
测试说明
npm run dev启动开发模式