Merge pull request #5976 from continuedev/dallin/gemini-llm-info

Gemini LLM Info
This commit is contained in:
Tomasz Stefaniak 2025-06-04 15:06:24 -07:00 • committed by GitHub
commit 8e37460a96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 181 additions and 13 deletions

View file

@ -0,0 +1,79 @@
name: Update LLM Info
description: Updates Gemini blocks with latest information
version: 2
---
I need you to update this repo with the latest information about large language models from certain providers.
The information is stored in the `packages/llm-info` directory, which operates as its own npm package.
Information is stored in a simple JSON format, with one file of models per "provider" (e.g. gemini, ollama, openai, etc).
For example, Gemini model information is stored in `packages/llm-info/src/providers/gemini.ts`.
To make these updates for a given provider, perform the following steps one at a time:
1. VIEW CURRENT INFORMATION
To view the current llm info, read the file (e.g. `packages/llm-info/src/providers/gemini.ts`) using the read_file tool.
If you do not see a tool for reading files, let me know.
For reference, here is the LLMInfo interface used to store the information:
```typescript
export interface LlmInfo {
model: string; // the model name used to distinguish the model at the API layer, e.g. "gemini-2.5-pro-preview-05-06"
displayName?: string; // A fitting display name, e.g. "Gemini 2.5 Pro Preview"
description?: string; // A short description of the model, as similar as possible to descriptions found on the provider's website
contextLength?: number; // The size of the context window in tokens, often called "max input tokens" or "context length"
maxCompletionTokens?: number; // The maximum number of tokens the model can output
regex?: RegExp; // A regex expression to uniquely match the model name if it had some slight modifications/upgrades, e.g. /gemini-2\.5-pro-preview/i
mediaTypes?: MediaType[]; // Input/output types supported by the model, e.g. [MediaType.Text, MediaType.Image]
}
export enum MediaType {
Text = "text",
Image = "image",
Audio = "audio",
Video = "video",
}
export const AllMediaTypes = [
MediaType.Text,
MediaType.Image,
MediaType.Audio,
MediaType.Video,
];
```
2. EXTRACT NEW INFORMATION
New information will be pulled from the internet.
If you do not see a web search tool, let me know.
Retrieve the following sites per these providers, and consider these notes on how to extract the information:
- "gemini": https://ai.google.dev/gemini-api/docs/models - maxCompletionTokens is called "Output token limit", contextLength is called "Input token limit"
// TODO: add info for openai, ollama, etc
For any other providers, search the web for "latest [provider] models" and find the most relevant model information using your best judgement.
Generally, ignore models that do not support text output. These models will be used in a coding assistant client that only supports text/image input and text/output, so extraneous capabilities can be ignored.
Sometimes, "Experimental", "Preview", or similar versions of models are available. The latest-date version of each should have its own information maintained.
3. UPDATE THE INFORMATION
Use the edit file tool to submit updates to the relevant provider file (e.g. `packages/llm-info/src/providers/gemini.ts`).
Let me know if you do not see a tool for editing files.
Generally, avoid making changes to existing information, as it is probably up to date.
Primarily, focus on adding new models or adding missing information to existing models.
NEVER delete any existing models, but let me know if you think one should be removed.
Stop to ask me if you are unsure about any changes, and let me know if there are updates that seem nuanced, complex, or extremely notable.
Provide a summary of changes after the fact.
4. ASK IF I WANT TO PUBLISH TO NPM
After you are done updating everything, remind me that I need to publish the changes to npm.
// TODO too sensitive for now
// If yes, update `packages/llm-info/package.json` with the new version number and then
// - use the terminal tool to commit the changes
// - use the terminal tool to publish changes to npm
// If you do not see a tool for running terminal commands, let me know.
// User input
Please update LLM Info for the following providers. If "all", update all providers mentioned above:

View file

@ -1,17 +1,28 @@
{
"name": "@continuedev/llm-info",
"version": "1.0.6",
"version": "1.0.9",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@continuedev/llm-info",
"version": "1.0.6",
"version": "1.0.9",
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^22.15.29",
"typescript": "^5.5.2"
}
},
"node_modules/@types/node": {
"version": "22.15.29",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.29.tgz",
"integrity": "sha512-LNdjOkUDlU1RZb8e1kOIUpN1qQUlzGkEtbVNo53vbrwDg5om6oduhm4SiUaPW5ASTXhAiP0jInWG8Qx9fVlOeQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~6.21.0"
}
},
"node_modules/typescript": {
"version": "5.6.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz",
@ -24,6 +35,13 @@
"engines": {
"node": ">=14.17"
}
},
"node_modules/undici-types": {
"version": "6.21.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
"dev": true,
"license": "MIT"
}
}
}

View file

@ -1,6 +1,6 @@
{
"name": "@continuedev/llm-info",
"version": "1.0.8",
"version": "1.0.9",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@ -12,7 +12,7 @@
"author": "Nate Sesti and Ty Dunn",
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^22.15.29",
"typescript": "^5.5.2"
},
"dependencies": {}
}
}

View file

@ -1,10 +1,45 @@
import { AllMediaTypes, ModelProvider } from "../types.js";
// See https://ai.google.dev/gemini-api/docs/models
export const Gemini: ModelProvider = {
models: [
{
model: "gemini-2.0-flash",
model: "gemini-2.5-pro-preview-05-06",
displayName: "Gemini 2.5 Pro Preview",
description:
"Google's most advanced model with strong reasoning, multimodal capabilities, and advanced coding skills",
contextLength: 1048576,
maxCompletionTokens: 65536,
mediaTypes: AllMediaTypes,
regex: /gemini-2\.5-pro-preview/i,
recommendedFor: ["chat"],
},
{
model: "gemini-2.5-pro-exp-03-25",
displayName: "Gemini 2.5 Pro Experimental",
description:
"Experimental release of Gemini 2.5 Pro with 1M token context window",
contextLength: 1048576,
maxCompletionTokens: 65536,
mediaTypes: AllMediaTypes,
regex: /gemini-2\.5-pro-exp/i,
recommendedFor: ["chat"],
},
{
model: "gemini-2.5-flash-preview-05-20",
displayName: "Gemini 2.5 Flash Preview",
description:
"Fast, token-efficient multimodal model for complex tasks with 1M context window",
contextLength: 1048576,
maxCompletionTokens: 65536,
mediaTypes: AllMediaTypes,
regex: /gemini-2\.5-flash-preview/i,
recommendedFor: ["chat"],
},
{
model: "gemini-2.0-flash", // stable gemini-2.0-flash-001
displayName: "Gemini 2.0 Flash",
description: "Fast, efficient model with strong multimodal capabilities",
contextLength: 1048576,
maxCompletionTokens: 8192,
mediaTypes: AllMediaTypes,
@ -12,58 +47,94 @@ export const Gemini: ModelProvider = {
recommendedFor: ["chat"],
},
{
model: "gemini-2.0-flash-lite",
model: "gemini-2.0-flash-lite", // stable gemini-2.0-flash-lite-001
displayName: "Gemini 2.0 Flash Lite",
description:
"Small, fast model with reduced latency and memory requirements",
contextLength: 1048576,
maxCompletionTokens: 8192,
mediaTypes: AllMediaTypes,
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",
contextLength: 32768,
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.5-pro-exp-03-25",
displayName: "Gemini 2.5 Pro Exp",
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: 65536,
maxCompletionTokens: 8192,
mediaTypes: AllMediaTypes,
regex: /gemini-2\.5-pro-exp-03-25/i,
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",
displayName: "Gemini Text Embedding",
description: "Text embedding model for vectorizing content",
recommendedFor: ["embed"],
},
],