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

Cody Gateway: remove feature flag requirement for Gemini models#63055

Merged
abeatrix merged 1 commit into
mainfrom
bee/gateway-gemini
Jun 4, 2024
Merged

Cody Gateway: remove feature flag requirement for Gemini models#63055
abeatrix merged 1 commit into
mainfrom
bee/gateway-gemini

Conversation

@abeatrix

@abeatrix abeatrix commented Jun 4, 2024

Copy link
Copy Markdown
Contributor

PART OF https://github.com/sourcegraph/cody-issues/issues/212 & https://github.com/sourcegraph/cody-issues/issues/411

CLOSE https://github.com/sourcegraph/cody-issues/issues/339 && https://github.com/sourcegraph/cody-issues/issues/338

Cody Gateway: remove feature flag requirement for Gemini models

This change adds the Google Gemini 1.5 Pro and Flash models to the list of allowed models for Cody Gateway chat completions by default without requiring "cody-pro-gemini-enabled". This allows Cody Pro users to access these models without the feature flag.

Also adding these Gemini models to the Enterprise allowed list

The changes were made in the following files:

  • cmd/frontend/internal/dotcom/productsubscription/codygateway_dotcom_user.go
  • internal/licensing/codygateway.go
  • internal/licensing/codygateway_test.go

Test plan

Changelog

You should be able to use the gemini model without the "cody-pro-gemini-enabled" feature flag enabled for your account for Pro users.

…flash-latest to allowed models

This change adds the Google Gemini 1.5 Pro and Flash models to the list of allowed models for Cody Gateway chat completions by default without requiring "cody-pro-gemini-enabled". This allows Cody Pro users to access these models.

The changes were made in the following files:
- `cmd/frontend/internal/dotcom/productsubscription/codygateway_dotcom_user.go`
- `internal/licensing/codygateway.go`
- `internal/licensing/codygateway_test.go`
@cla-bot cla-bot Bot added the cla-signed label Jun 4, 2024
@abeatrix abeatrix changed the title Cody Gateway: add google/gemini-1.5-pro-latest and google/gemini-1.5-… Cody Gateway: remove feature flag requirement for Gemini models Jun 4, 2024
@abeatrix abeatrix requested review from a team, chrsmith, emidoots and rafax June 4, 2024 01:07
@abeatrix abeatrix merged commit 03f5866 into main Jun 4, 2024
@abeatrix abeatrix deleted the bee/gateway-gemini branch June 4, 2024 14:15
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