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

feat(cody-gateway): add Google Gemini stable models to allowed models#63163

Merged
abeatrix merged 1 commit into
mainfrom
bee/default-gemini-stable
Jun 7, 2024
Merged

feat(cody-gateway): add Google Gemini stable models to allowed models#63163
abeatrix merged 1 commit into
mainfrom
bee/default-gemini-stable

Conversation

@abeatrix

@abeatrix abeatrix commented Jun 7, 2024

Copy link
Copy Markdown
Contributor

This change adds the stable versions of the Google Gemini 1.5 Flash, Gemini 1.5 Pro, and Gemini Pro models to the list of allowed models in the Cody Gateway configuration and API endpoints.

The changes are made in the following files:

  • cmd/cody-gateway/shared/config/config.go
  • cmd/frontend/internal/dotcom/productsubscription/codygateway_dotcom_user.go
  • cmd/frontend/internal/httpapi/completions/chat.go
  • internal/conf/computed.go

The new models are added to the allowed model lists and also set as the default chat, fast chat, and completion models when the configuration is not explicitly set.

This change ensures that users are defaulted to use the stable versions of the Google Gemini models with the latest versions are still being available for use in the Cody Gateway application.

Test plan

Changes are covered by current tests.

Changelog

This change adds the stable versions of the Google Gemini 1.5 Flash, Gemini 1.5 Pro, and Gemini Pro models to the list of allowed models in the Cody Gateway configuration and API endpoints.

The changes are made in the following files:
- `cmd/cody-gateway/shared/config/config.go`
- `cmd/frontend/internal/dotcom/productsubscription/codygateway_dotcom_user.go`
- `cmd/frontend/internal/httpapi/completions/chat.go`
- `internal/conf/computed.go`

The new models are added to the allowed model lists and also set as the default chat, fast chat, and completion models when the configuration is not explicitly set.

This change ensures that users are defaulted to use the stable versions of the Google Gemini models with the latest versions are still being available for use in the Cody Gateway application.
@cla-bot cla-bot Bot added the cla-signed label Jun 7, 2024
@abeatrix abeatrix requested review from a team, arafatkatze and emidoots June 7, 2024 19:03

@chrsmith chrsmith 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.

I have no idea if this is the complete list, of if you need to add Gemini to a few more places. 🤷 But this LGTM.

When this is rolled out, I believe the last (and final?) step is to just add Gemini to the shared/model package's dotcom.ts in the sourcegraph/cody repo? And then it's totally official?

@abeatrix

abeatrix commented Jun 7, 2024

Copy link
Copy Markdown
Contributor Author

I have no idea if this is the complete list, of if you need to add Gemini to a few more places. 🤷 But this LGTM.

When this is rolled out, I believe the last (and final?) step is to just add Gemini to the shared/model package's dotcom.ts in the sourcegraph/cody repo? And then it's totally official?

Thanks for the review and YES! I believe it's official after that!!

@abeatrix abeatrix merged commit d0add88 into main Jun 7, 2024
@abeatrix abeatrix deleted the bee/default-gemini-stable branch June 7, 2024 21:20
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