Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat(llm-connections): add gemini 2.5 pro and flash GA (#7659)

Hassieb Pakzadde9fa8199ac4
diff --git a/packages/shared/src/server/llm/types.ts b/packages/shared/src/server/llm/types.ts
index 209494b7b3..12e8256e2d 100644
--- a/packages/shared/src/server/llm/types.ts
+++ b/packages/shared/src/server/llm/types.ts
@@ -176,7 +176,12 @@ export type ToolResultMessage = z.infer<typeof ToolResultMessageSchema>;
export const PlaceholderMessageSchema = z.object({
type: z.literal(ChatMessageType.Placeholder),
- name: z.string().regex(/^[a-zA-Z][a-zA-Z0-9_]*$/, "Placeholder name must start with a letter and contain only alphanumeric characters and underscores"),
+ name: z
+ .string()
+ .regex(
+ /^[a-zA-Z][a-zA-Z0-9_]*$/,
+ "Placeholder name must start with a letter and contain only alphanumeric characters and underscores",
+ ),
});
export type PlaceholderMessage = z.infer<typeof PlaceholderMessageSchema>;
@@ -202,8 +207,10 @@ export const ChatMessageSchema = z.union([
]);
export type ChatMessage = z.infer<typeof ChatMessageSchema>;
-export type ChatMessageWithId = (ChatMessage & { id: string }) | (PlaceholderMessage & { id: string });
-export type ChatMessageWithIdNoPlaceholders = (ChatMessage & { id: string });
+export type ChatMessageWithId =
+ | (ChatMessage & { id: string })
+ | (PlaceholderMessage & { id: string });
+export type ChatMessageWithIdNoPlaceholders = ChatMessage & { id: string };
export const PromptChatMessageSchema = z.union([
z.object({
@@ -335,9 +342,11 @@ export const anthropicModels = [
// WARNING: The first entry in the array is chosen as the default model to add LLM API keys
export const vertexAIModels = [
- "gemini-2.0-flash",
+ "gemini-2.5-pro",
+ "gemini-2.5-flash",
"gemini-2.5-pro-preview-05-06",
"gemini-2.5-flash-preview-05-20",
+ "gemini-2.0-flash",
"gemini-2.0-pro-exp-02-05",
"gemini-2.0-flash-001",
"gemini-2.0-flash-lite-preview-02-05",
@@ -349,6 +358,8 @@ export const vertexAIModels = [
// WARNING: The first entry in the array is chosen as the default model to add LLM API keys. Make sure it supports top_p, max_tokens and temperature.
export const googleAIStudioModels = [
+ "gemini-2.5-flash",
+ "gemini-2.5-pro",
"gemini-2.5-pro-preview-05-06",
"gemini-2.5-flash-preview-05-20",
"gemini-2.0-flash",