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

Commit f71789c

Browse files
authored
feat(cody gateway): code completion support for Google Gemini Flash models (#63303)
- Add support for the latest versions of the Google Gemini models: - `google/Gemini15FlashLatest` - `google/GeminiProLatest` (Gemini 1.5 Pro is not on the support list for code completion) - This allows users to access the most up-to-date versions of these models for code completion when the client side support this later. <!-- 💡 To write a useful PR description, make sure that your description covers: - WHAT this PR is changing: - How was it PREVIOUSLY. - How it will be from NOW on. - WHY this PR is needed. - CONTEXT, i.e. to which initiative, project or RFC it belongs. The structure of the description doesn't matter as much as covering these points, so use your best judgement based on your context. Learn how to write good pull request description: https://www.notion.so/sourcegraph/Write-a-good-pull-request-description-610a7fd3e613496eb76f450db5a49b6e?pvs=4 --> ## Test plan <!-- All pull requests REQUIRE a test plan: https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles --> No features were changed. ## Changelog <!-- 1. Ensure your pull request title is formatted as: $type($domain): $what 2. Add bullet list items for each additional detail you want to cover (see example below) 3. You can edit this after the pull request was merged, as long as release shipping it hasn't been promoted to the public. 4. For more information, please see this how-to https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c? Audience: TS/CSE > Customers > Teammates (in that order). Cheat sheet: $type = chore|fix|feat $domain: source|search|ci|release|plg|cody|local|... --> <!-- Example: Title: fix(search): parse quotes with the appropriate context Changelog section: ## Changelog - When a quote is used with regexp pattern type, then ... - Refactored underlying code. --> feat(cody gateway): code completion support for Google Gemini Flash models
1 parent 18c7ba8 commit f71789c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/frontend/internal/httpapi/completions/get_model.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ func isAllowedCodeCompletionModel(model string) bool {
9393
"anthropic/claude-instant-1",
9494
"anthropic/claude-instant-1.2-cyan",
9595
"google/" + google.Gemini15Flash,
96+
"google/" + google.Gemini15FlashLatest,
9697
"google/" + google.GeminiPro,
98+
"google/" + google.GeminiProLatest,
9799
"fireworks/accounts/sourcegraph/models/starcoder-7b",
98100
"fireworks/accounts/sourcegraph/models/starcoder-16b",
99101
"fireworks/accounts/fireworks/models/starcoder-3b-w8a16",

0 commit comments

Comments
 (0)