feat: add Gemini third-party image provider#373
Open
spiritree wants to merge 1 commit intoop7418:mainfrom
Open
feat: add Gemini third-party image provider#373spiritree wants to merge 1 commit intoop7418:mainfrom
spiritree wants to merge 1 commit intoop7418:mainfrom
Conversation
|
Someone is attempting to deploy a commit to the op7418's projects Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
由于 #123 未合并,我写了个我的版本,希望review下,这个功能刚需 |
settings/providers: - add a Google Gemini (Third-party API) media preset and match custom Gemini base URLs back to that preset - keep official Google Gemini (Image) behavior unchanged for the default Google endpoint runtime/tests: - forward gemini-image provider base_url into createGoogleGenerativeAI in image-generator - add regression tests for preset matching and image provider config resolution
283df2f to
78c1ae9
Compare
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.
摘要
Google Gemini (Third-party API)预设Base URLgemini-imageprovider 的base_url传递给createGoogleGenerativeAI测试计划
npm run test/settings#providers,验证新的媒体服务商卡片已显示Base URL和API Key字段error/warn报错我自己已经验证第三方兼容gemini API成功,且不影响gemini官方配置