Skip to content

Commit c0ea1c0

Browse files
authored
feat(copilot): add support for gemini 2.0 flash (#855) (#856)
1 parent e54ec74 commit c0ea1c0

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

doc/codecompanion.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,6 +2356,7 @@ We’ll explore some of the options in the Copilot adapter’s schema table:
23562356
choices = {
23572357
"gpt-4o-2024-08-06",
23582358
"claude-3.5-sonnet",
2359+
"gemini-2.0-flash-001",
23592360
["o1-preview-2024-09-12"] = { opts = { stream = false } },
23602361
["o1-mini-2024-09-12"] = { opts = { stream = false } },
23612362
},

doc/extending/adapters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ schema = {
415415
choices = {
416416
"gpt-4o-2024-08-06",
417417
"claude-3.5-sonnet",
418+
"gemini-2.0-flash-001",
418419
["o1-preview-2024-09-12"] = { opts = { stream = false } },
419420
["o1-mini-2024-09-12"] = { opts = { stream = false } },
420421
},

lua/codecompanion/adapters/copilot.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ return {
211211
["o1-mini-2024-09-12"] = { opts = { can_reason = true } },
212212
"claude-3.5-sonnet",
213213
"gpt-4o-2024-08-06",
214+
"gemini-2.0-flash-001",
214215
},
215216
},
216217
reasoning_effort = {

0 commit comments

Comments
 (0)