Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Cody PLG: add support for Google Gemini models#62993

Merged
olafurpg merged 1 commit into
mainfrom
bee/gemini-allowed
May 31, 2024
Merged

Cody PLG: add support for Google Gemini models#62993
olafurpg merged 1 commit into
mainfrom
bee/gemini-allowed

Conversation

@abeatrix

Copy link
Copy Markdown
Contributor

This change adds support for the Google Gemini 1.5 Flash and Pro models in the ModelBadges component and the isAllowedCustomChatModel function. This allows these models to be displayed and used in the Sourcegraph product subscriptions UI and chat functionality.

Test plan

Changelog

In your sg local instant, look for the gemini models in the license page.

Verify you are not seeing the following error when running the curl command listed in https://sourcegraph.slack.com/archives/C05AGQYD528/p1717105626504719?thread_ts=1717011825.198899&cid=C05AGQYD528: {"error":"model \"google/gemini-1.5-flash-latest\" is not allowed, allowed: []"}

This change adds support for the Google Gemini 1.5 Flash and Pro models in the ModelBadges component and the isAllowedCustomChatModel function. This allows these models to be displayed and used in the Sourcegraph product subscriptions UI and chat functionality.
@cla-bot cla-bot Bot added the cla-signed label May 31, 2024
@abeatrix abeatrix requested review from a team, emidoots and rafax May 31, 2024 02:55

@olafurpg olafurpg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

I'm not 100% familiar wit this part of the code. My understanding: this adds Gemini Pro/Flash to the same list of models where we already declare GPT-4o support.

@olafurpg olafurpg merged commit fe227af into main May 31, 2024
@olafurpg olafurpg deleted the bee/gemini-allowed branch May 31, 2024 05:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants