fix(gemini): update model catalog for retired/new Gemini models (#11793)
* fix(gemini): update model catalog for retired/new Gemini models Gemini 1.x models are fully retired (returning 404), gemini-3-pro-preview was shut down March 9 2026, and new 3.1 series models were missing. - Add gemini-3.1-pro-preview, gemini-3.1-flash-lite-preview, gemini-3.1-flash-image-preview - Replace gemini-3-pro-preview with gemini-3.1-pro-preview everywhere - Remove retired Gemini 1.x models (gemini-1.0-pro, gemini-1.5-pro, gemini-1.5-flash, gemini-1.5-flash-8b) - Remove retired experimental 2.0 image gen models - Fix default model from retired gemini-pro to gemini-2.5-flash - Update docs, onboarding config, VSCode schema, GUI model picker, VertexAI provider - Update isRecommendedAgentModel regex and tests Fixes #10996, #10998 * fix: address review comments - Add missing gemini-3.1-flash-image-preview to VS Code schema enum - Tighten isRecommendedAgentModel regex to match 3-flash-preview (not bare 3-flash) - Update case-insensitivity tests for new model names * fix: fix misleading test description and inconsistent doc heading - Rename test to "Gemini 3.1 Pro and 3 Flash Preview models" to match assertions - Update chat.mdx heading from "Gemini 3 Pro" to "Gemini 3.1 Pro"
This commit is contained in:
parent
9abc9b5b46
commit
09650d4a4f
15 changed files with 117 additions and 148 deletions
|
|
@ -19,7 +19,7 @@ const OPENAI_MODEL_CONFIG = {
|
|||
|
||||
// TODO: These need updating on the hub
|
||||
const GEMINI_MODEL_CONFIG = {
|
||||
slugs: ["google/gemini-2.5-pro", "google/gemini-2.5-flash"],
|
||||
slugs: ["google/gemini-3.1-pro-preview", "google/gemini-3-flash-preview"],
|
||||
apiKeyInputName: "GEMINI_API_KEY",
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ class CometAPI extends OpenAI {
|
|||
"claude-3-5-haiku-latest",
|
||||
|
||||
// Gemini series
|
||||
"gemini-3-pro-preview",
|
||||
"gemini-3.1-pro-preview",
|
||||
"gemini-2.5-pro",
|
||||
"gemini-2.5-flash",
|
||||
"gemini-2.5-flash-lite",
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class Gemini extends BaseLLM {
|
|||
static providerName = "gemini";
|
||||
|
||||
static defaultOptions: Partial<LLMOptions> = {
|
||||
model: "gemini-pro",
|
||||
model: "gemini-2.5-flash",
|
||||
apiBase: "https://generativelanguage.googleapis.com/v1beta/",
|
||||
maxStopWords: 5,
|
||||
maxEmbeddingBatchSize: 100,
|
||||
|
|
|
|||
|
|
@ -452,9 +452,9 @@ describe("isRecommendedAgentModel", () => {
|
|||
expect(isRecommendedAgentModel("gemini-2.5-pro-preview")).toBe(true);
|
||||
});
|
||||
|
||||
it("should return true for Gemini 3 Pro models", () => {
|
||||
expect(isRecommendedAgentModel("gemini-3-pro-preview")).toBe(true);
|
||||
expect(isRecommendedAgentModel("gemini-3-pro")).toBe(true);
|
||||
it("should return true for Gemini 3.1 Pro and 3 Flash Preview models", () => {
|
||||
expect(isRecommendedAgentModel("gemini-3.1-pro-preview")).toBe(true);
|
||||
expect(isRecommendedAgentModel("gemini-3-flash-preview")).toBe(true);
|
||||
});
|
||||
|
||||
it("should return false for Gemini Flash models", () => {
|
||||
|
|
@ -519,14 +519,14 @@ describe("isRecommendedAgentModel", () => {
|
|||
|
||||
describe("case insensitivity", () => {
|
||||
it("should handle uppercase model names", () => {
|
||||
expect(isRecommendedAgentModel("GEMINI-3-PRO-PREVIEW")).toBe(true);
|
||||
expect(isRecommendedAgentModel("GEMINI-3.1-PRO-PREVIEW")).toBe(true);
|
||||
expect(isRecommendedAgentModel("CLAUDE-4-SONNET")).toBe(true);
|
||||
expect(isRecommendedAgentModel("DEEPSEEK-R1")).toBe(true);
|
||||
expect(isRecommendedAgentModel("O3-MINI")).toBe(true);
|
||||
});
|
||||
|
||||
it("should handle mixed case model names", () => {
|
||||
expect(isRecommendedAgentModel("Gemini-3-Pro")).toBe(true);
|
||||
expect(isRecommendedAgentModel("Gemini-3.1-Pro-Preview")).toBe(true);
|
||||
expect(isRecommendedAgentModel("Claude-Opus-4")).toBe(true);
|
||||
expect(isRecommendedAgentModel("DeepSeek-Reasoner")).toBe(true);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -461,7 +461,7 @@ export function isRecommendedAgentModel(modelName: string): boolean {
|
|||
[/o[134]/],
|
||||
[/deepseek/, /r1|reasoner/],
|
||||
[/gemini/, /2\.5/, /pro/],
|
||||
[/gemini/, /3-pro/],
|
||||
[/gemini/, /3\.1-pro|3-flash-preview/],
|
||||
[/gpt/, /-5|5\.1|5\.2/],
|
||||
[/gpt-4\.1/],
|
||||
[/codex/],
|
||||
|
|
|
|||
|
|
@ -45,5 +45,5 @@ sidebarTitle: "Gemini"
|
|||
</Tabs>
|
||||
|
||||
<Info>
|
||||
**Check out a more advanced configuration [here](https://continue.dev/google/gemini-2.5-pro?view=config)**
|
||||
**Check out a more advanced configuration [here](https://continue.dev/google/gemini-3.1-pro-preview?view=config)**
|
||||
</Info>
|
||||
|
|
|
|||
|
|
@ -134,13 +134,13 @@ If you prefer to use a model from [xAI](../model-providers/more/xAI), then we re
|
|||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### Gemini 3 Pro from Google
|
||||
### Gemini 3.1 Pro from Google
|
||||
|
||||
If you prefer to use a model from [Google](../model-providers/top-level/gemini), then we recommend Gemini 3 Pro.
|
||||
If you prefer to use a model from [Google](../model-providers/top-level/gemini), then we recommend Gemini 3.1 Pro.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Hub">
|
||||
Add the [Gemini 3 Pro block](https://continue.dev/google/gemini-3-pro-preview) from the hub
|
||||
Add the [Gemini 3.1 Pro block](https://continue.dev/google/gemini-3.1-pro-preview) from the hub
|
||||
</Tab>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
|
|
@ -149,9 +149,9 @@ If you prefer to use a model from [Google](../model-providers/top-level/gemini),
|
|||
schema: v1
|
||||
|
||||
models:
|
||||
- name: Gemini 3 Pro
|
||||
- name: Gemini 3.1 Pro
|
||||
provider: gemini
|
||||
model: gemini-3-pro-preview
|
||||
model: gemini-3.1-pro-preview
|
||||
apiKey: <YOUR_GEMINI_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
|
|
|
|||
|
|
@ -66,10 +66,10 @@ Read more about [model roles](/customize/model-roles), [model capabilities](/cus
|
|||
3. Add `OPENROUTER_API_KEY` as a [User Secret](https://docs.continue.dev/mission-control/secrets/secret-types#user-secrets) on Continue Mission Control [here](https://continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the config selector in the Continue IDE extension
|
||||
|
||||
[Gemini 2.5 Pro](https://continue.dev/google/gemini-2.5-pro) from Google
|
||||
[Gemini 3.1 Pro](https://continue.dev/google/gemini-3.1-pro-preview) from Google
|
||||
|
||||
1. Get your API key from [Google AI Studio](https://aistudio.google.com)
|
||||
2. Add [Gemini 2.5 Pro](https://continue.dev/google/gemini-2.5-pro) a config on Continue Mission Control
|
||||
2. Add [Gemini 3.1 Pro](https://continue.dev/google/gemini-3.1-pro-preview) a config on Continue Mission Control
|
||||
3. Add `GEMINI_API_KEY` as a [User Secret](https://docs.continue.dev/mission-control/secrets/secret-types#user-secrets) on Continue Mission Control [here](https://continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the config selector in the Continue IDE extension
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ export const ModelRecommendations = ({ role = "all" }) => {
|
|||
"[Claude Opus 4.1](https://continue.dev/anthropic/claude-4-1-opus)",
|
||||
"[Claude Sonnet 4](https://continue.dev/anthropic/claude-4-sonnet)",
|
||||
"[GPT-5](https://continue.dev/openai/gpt-5)",
|
||||
"[Gemini 2.5 Pro](https://continue.dev/google/gemini-2.5-pro)",
|
||||
"[Gemini 3.1 Pro](https://continue.dev/google/gemini-3.1-pro-preview)",
|
||||
],
|
||||
notes: "Closed models are slightly better than open models",
|
||||
},
|
||||
|
|
@ -72,7 +72,7 @@ export const ModelRecommendations = ({ role = "all" }) => {
|
|||
"[Claude Opus 4.1](https://continue.dev/anthropic/claude-4-1-opus)",
|
||||
"[Claude Sonnet 4](https://continue.dev/anthropic/claude-4-sonnet)",
|
||||
"[GPT-5](https://continue.dev/openai/gpt-5)",
|
||||
"[Gemini 2.5 Pro](https://continue.dev/google/gemini-2.5-pro)",
|
||||
"[Gemini 3.1 Pro](https://continue.dev/google/gemini-3.1-pro-preview)",
|
||||
],
|
||||
notes: "Closed and open models have pretty similar performance",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -969,12 +969,13 @@
|
|||
},
|
||||
"model": {
|
||||
"enum": [
|
||||
"gemini-3-pro-preview",
|
||||
"gemini-3.1-pro-preview",
|
||||
"gemini-3.1-flash-lite-preview",
|
||||
"gemini-3.1-flash-image-preview",
|
||||
"gemini-3-flash-preview",
|
||||
"gemini-2.5-pro",
|
||||
"gemini-2.5-flash",
|
||||
"gemini-2.5-flash-lite",
|
||||
"gemini-pro"
|
||||
"gemini-2.5-flash-lite"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1041,14 +1041,14 @@ export const models: { [key: string]: ModelPackage } = {
|
|||
providerOptions: ["gemini"],
|
||||
isOpenSource: false,
|
||||
},
|
||||
gemini3ProPreview: {
|
||||
title: "Gemini 3 Pro",
|
||||
gemini31ProPreview: {
|
||||
title: "Gemini 3.1 Pro",
|
||||
description:
|
||||
"Google's latest Pro model with up to 64k output context. Best for complex tasks involving reasoning.",
|
||||
"Google's most capable model with 2M context window. Best for complex tasks involving reasoning.",
|
||||
params: {
|
||||
title: "Gemini 3 Pro",
|
||||
model: "gemini-3-pro-preview",
|
||||
contextLength: 1_048_576,
|
||||
title: "Gemini 3.1 Pro",
|
||||
model: "gemini-3.1-pro-preview",
|
||||
contextLength: 2_097_152,
|
||||
apiKey: "<API_KEY>",
|
||||
},
|
||||
icon: "gemini.png",
|
||||
|
|
@ -2306,10 +2306,10 @@ export const models: { [key: string]: ModelPackage } = {
|
|||
isOpenSource: false,
|
||||
},
|
||||
gemini3FlashPreview: {
|
||||
title: "Gemini 3 Flash Preview",
|
||||
description: "Google's next-generation Flash model with strong reasoning.",
|
||||
title: "Gemini 3 Flash",
|
||||
description: "High-speed thinking model for agentic workflows and coding.",
|
||||
params: {
|
||||
title: "Gemini 3 Flash Preview",
|
||||
title: "Gemini 3 Flash",
|
||||
model: "gemini-3-flash-preview",
|
||||
contextLength: 1_048_576,
|
||||
apiKey: "<API_KEY>",
|
||||
|
|
@ -2318,6 +2318,19 @@ export const models: { [key: string]: ModelPackage } = {
|
|||
providerOptions: ["gemini"],
|
||||
isOpenSource: false,
|
||||
},
|
||||
gemini31FlashLitePreview: {
|
||||
title: "Gemini 3.1 Flash Lite",
|
||||
description: "Cost-efficient model optimized for high-volume tasks.",
|
||||
params: {
|
||||
title: "Gemini 3.1 Flash Lite",
|
||||
model: "gemini-3.1-flash-lite-preview",
|
||||
contextLength: 1_048_576,
|
||||
apiKey: "<API_KEY>",
|
||||
},
|
||||
icon: "gemini.png",
|
||||
providerOptions: ["gemini"],
|
||||
isOpenSource: false,
|
||||
},
|
||||
devstralSmall: {
|
||||
title: "Devstral Small",
|
||||
description: "Mistral's small code-focused model for development tasks.",
|
||||
|
|
|
|||
|
|
@ -752,8 +752,9 @@ Select the \`GPT-4o\` model below to complete your provider configuration, but n
|
|||
},
|
||||
],
|
||||
packages: [
|
||||
models.gemini3ProPreview,
|
||||
models.gemini31ProPreview,
|
||||
models.gemini3FlashPreview,
|
||||
models.gemini31FlashLitePreview,
|
||||
models.gemini25Pro,
|
||||
models.gemini25Flash,
|
||||
models.gemini25FlashLite,
|
||||
|
|
|
|||
|
|
@ -172,8 +172,8 @@ export const CometAPI: ModelProvider = {
|
|||
|
||||
// Gemini Series
|
||||
{
|
||||
model: "gemini-3-pro-preview",
|
||||
displayName: "Gemini 3 Pro Preview",
|
||||
model: "gemini-3.1-pro-preview",
|
||||
displayName: "Gemini 3.1 Pro Preview",
|
||||
contextLength: 2000000,
|
||||
maxCompletionTokens: 8192,
|
||||
description:
|
||||
|
|
|
|||
|
|
@ -3,28 +3,52 @@ import { AllMediaTypes, ModelProvider } from "../types.js";
|
|||
// See https://ai.google.dev/gemini-api/docs/models
|
||||
export const Gemini: ModelProvider = {
|
||||
models: [
|
||||
// Gemini 3.1 series
|
||||
{
|
||||
model: "gemini-3-pro-preview",
|
||||
displayName: "Gemini 3 Pro Preview",
|
||||
model: "gemini-3.1-pro-preview",
|
||||
displayName: "Gemini 3.1 Pro Preview",
|
||||
description:
|
||||
"Google's flagship frontier model with high precision multimodal capabilities.",
|
||||
"Google's most capable model with 2M context window and high precision multimodal capabilities.",
|
||||
contextLength: 2097152,
|
||||
maxCompletionTokens: 65536,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-3\.1-pro-preview/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-3.1-flash-lite-preview",
|
||||
displayName: "Gemini 3.1 Flash Lite Preview",
|
||||
description:
|
||||
"Cost-efficient model optimized for high-volume tasks with fast inference.",
|
||||
contextLength: 1048576,
|
||||
maxCompletionTokens: 65536,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-3-pro-preview/i,
|
||||
regex: /gemini-3\.1-flash-lite-preview/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-3.1-flash-image-preview",
|
||||
displayName: "Gemini 3.1 Flash Image Preview",
|
||||
description: "Image generation model with improved visual quality.",
|
||||
contextLength: 1048576,
|
||||
maxCompletionTokens: 65536,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-3\.1-flash-image-preview/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
// Gemini 3 series
|
||||
{
|
||||
model: "gemini-3-flash-preview",
|
||||
displayName: "Gemini 3 Flash Preview",
|
||||
description:
|
||||
"Next-generation Flash model with strong reasoning and fast inference.",
|
||||
"High-speed thinking model for agentic workflows, multi-turn chat, and coding.",
|
||||
contextLength: 1048576,
|
||||
maxCompletionTokens: 65536,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-3-flash-preview/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
// Gemini 2.5 series (deprecating June 17, 2026)
|
||||
{
|
||||
model: "gemini-2.5-pro",
|
||||
displayName: "Gemini 2.5 Pro",
|
||||
|
|
@ -80,6 +104,7 @@ export const Gemini: ModelProvider = {
|
|||
regex: /gemini-2\.5-flash-lite/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
// Gemini 2.0 series (deprecating June 1, 2026)
|
||||
{
|
||||
model: "gemini-2.0-flash", // stable gemini-2.0-flash-001
|
||||
displayName: "Gemini 2.0 Flash",
|
||||
|
|
@ -101,79 +126,6 @@ export const Gemini: ModelProvider = {
|
|||
regex: /^gemini-2\.0-flash-lite$/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-2.0-flash-preview-image-generation",
|
||||
displayName: "Gemini 2.0 Flash Image Generation Preview",
|
||||
description:
|
||||
"Model with image generation capabilities and improved visual quality",
|
||||
contextLength: 32000,
|
||||
maxCompletionTokens: 8192,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-2\.0-flash-preview-image-generation/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-2.0-flash-exp-image-generation",
|
||||
displayName: "Gemini 2.0 Flash Image Generation Experimental",
|
||||
description: "Experimental model with image generation capabilities",
|
||||
contextLength: 32000,
|
||||
maxCompletionTokens: 8192,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-2\.0-flash-exp-image-generation/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-2.0-flash-exp",
|
||||
displayName: "Gemini 2.0 Flash Experimental",
|
||||
description:
|
||||
"Experimental version of Gemini 2.0 Flash with extended capabilities",
|
||||
contextLength: 1048576,
|
||||
maxCompletionTokens: 8192,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /^gemini-2\.0-flash-exp$/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-1.5-flash",
|
||||
displayName: "Gemini 1.5 Flash",
|
||||
description: "Fast multimodal model with 1M token context window",
|
||||
contextLength: 1048576,
|
||||
maxCompletionTokens: 8192,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-1\.5-flash/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-1.5-flash-8b",
|
||||
displayName: "Gemini 1.5 Flash 8b",
|
||||
description:
|
||||
"Smaller version of Gemini 1.5 Flash optimized for efficiency",
|
||||
contextLength: 1048576,
|
||||
maxCompletionTokens: 8192,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-1\.5-flash-8b/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-1.5-pro",
|
||||
displayName: "Gemini 1.5 Pro",
|
||||
description:
|
||||
"Mid-size multimodal model capable of handling extensive inputs and complex reasoning tasks",
|
||||
contextLength: 2097152,
|
||||
maxCompletionTokens: 8192,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-1\.5-pro/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-1.0-pro",
|
||||
displayName: "Gemini 1.0 Pro",
|
||||
description: "First generation Gemini pro model",
|
||||
contextLength: 32768,
|
||||
maxCompletionTokens: 8192,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-1\.0-pro/i,
|
||||
},
|
||||
// embed
|
||||
{
|
||||
model: "models/text-embedding-004",
|
||||
|
|
|
|||
|
|
@ -2,13 +2,49 @@ import { AllMediaTypes, ModelProvider } from "../types.js";
|
|||
|
||||
export const Gemini: ModelProvider = {
|
||||
models: [
|
||||
{
|
||||
model: "gemini-3.1-pro-preview",
|
||||
displayName: "Gemini 3.1 Pro Preview",
|
||||
contextLength: 2097152,
|
||||
maxCompletionTokens: 65536,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-3\.1-pro-preview/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-3-flash-preview",
|
||||
displayName: "Gemini 3 Flash Preview",
|
||||
contextLength: 1048576,
|
||||
maxCompletionTokens: 65536,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-3-flash-preview/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-2.5-pro",
|
||||
displayName: "Gemini 2.5 Pro",
|
||||
contextLength: 1048576,
|
||||
maxCompletionTokens: 65536,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /^gemini-2\.5-pro$/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-2.5-flash",
|
||||
displayName: "Gemini 2.5 Flash",
|
||||
contextLength: 1048576,
|
||||
maxCompletionTokens: 65536,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /^gemini-2\.5-flash$/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-2.0-flash",
|
||||
displayName: "Gemini 2.0 Flash",
|
||||
contextLength: 1048576,
|
||||
maxCompletionTokens: 8192,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-2\.0-flash/i,
|
||||
regex: /^gemini-2\.0-flash$/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
|
|
@ -17,34 +53,7 @@ export const Gemini: ModelProvider = {
|
|||
contextLength: 1048576,
|
||||
maxCompletionTokens: 8192,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-2\.0-flash-lite/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-2.0-flash-exp-image-generation",
|
||||
displayName: "Gemini 2.0 Flash Image Generation",
|
||||
contextLength: 32768,
|
||||
maxCompletionTokens: 8192,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-2\.0-flash-exp-image-generation/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
|
||||
{
|
||||
model: "gemini-1.5-flash",
|
||||
displayName: "Gemini 1.5 Flash",
|
||||
contextLength: 1048576,
|
||||
maxCompletionTokens: 8192,
|
||||
mediaTypes: AllMediaTypes,
|
||||
regex: /gemini-1\.5-flash/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "gemini-1.5-pro",
|
||||
displayName: "Gemini 1.5 Pro",
|
||||
contextLength: 2097152,
|
||||
maxCompletionTokens: 8192,
|
||||
regex: /gemini-1\.5-pro/i,
|
||||
regex: /^gemini-2\.0-flash-lite$/i,
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
// embed
|
||||
|
|
@ -53,13 +62,6 @@ export const Gemini: ModelProvider = {
|
|||
displayName: "Vertex Text Embedding",
|
||||
recommendedFor: ["embed"],
|
||||
},
|
||||
//autocomplete
|
||||
{
|
||||
model: "code-gecko",
|
||||
displayName: "VertexAI Code Gecko",
|
||||
recommendedFor: ["autocomplete"],
|
||||
maxCompletionTokens: 64,
|
||||
},
|
||||
],
|
||||
id: "gemini",
|
||||
displayName: "Gemini",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue