Unverified 提交 e326f147 authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Revert "Revert "Update gemini 2.5 models to GA variants (#425)" (#429)" (#437)

This reverts commit ff4e93d7.
上级 5a35c427
{ {
"body": { "body": {
"model": "gemini/gemini-2.5-pro-preview-05-06", "model": "gemini/gemini-2.5-pro",
"max_tokens": 65535, "max_tokens": 65535,
"temperature": 0, "temperature": 0,
"messages": [ "messages": [
......
{ {
"body": { "body": {
"model": "gemini/gemini-2.5-pro-preview-05-06", "model": "gemini/gemini-2.5-pro",
"max_tokens": 65535, "max_tokens": 65535,
"temperature": 0, "temperature": 0,
"messages": [ "messages": [
......
{ {
"body": { "body": {
"model": "gemini/gemini-2.5-pro-preview-05-06", "model": "gemini/gemini-2.5-pro",
"max_tokens": 65535, "max_tokens": 65535,
"temperature": 0, "temperature": 0,
"messages": [ "messages": [
......
{ {
"body": { "body": {
"model": "gemini/gemini-2.5-pro-preview-05-06", "model": "gemini/gemini-2.5-pro",
"max_tokens": 65535, "max_tokens": 65535,
"temperature": 0, "temperature": 0,
"messages": [ "messages": [
......
{ {
"body": { "body": {
"model": "gemini/gemini-2.5-flash-preview-05-20", "model": "gemini/gemini-2.5-flash",
"max_tokens": 8000, "max_tokens": 8000,
"temperature": 0, "temperature": 0,
"thinking": { "thinking": {
......
{ {
"body": { "body": {
"model": "gemini/gemini-2.5-pro-preview-05-06", "model": "gemini/gemini-2.5-pro",
"max_tokens": 65535, "max_tokens": 65535,
"temperature": 0, "temperature": 0,
"messages": [ "messages": [
......
{ {
"body": { "body": {
"model": "gemini/gemini-2.5-flash-preview-05-20", "model": "gemini/gemini-2.5-flash",
"max_tokens": 65535, "max_tokens": 65535,
"temperature": 0, "temperature": 0,
"thinking": { "thinking": {
......
...@@ -102,9 +102,9 @@ export const MODEL_OPTIONS: Record<string, ModelOption[]> = { ...@@ -102,9 +102,9 @@ export const MODEL_OPTIONS: Record<string, ModelOption[]> = {
google: [ google: [
// https://ai.google.dev/gemini-api/docs/models#gemini-2.5-pro-preview-03-25 // https://ai.google.dev/gemini-api/docs/models#gemini-2.5-pro-preview-03-25
{ {
name: "gemini-2.5-pro-preview-05-06", name: "gemini-2.5-pro",
displayName: "Gemini 2.5 Pro", displayName: "Gemini 2.5 Pro",
description: "Preview version of Google's Gemini 2.5 Pro model", description: "Google's Gemini 2.5 Pro model",
// See Flash 2.5 comment below (go 1 below just to be safe, even though it seems OK now). // See Flash 2.5 comment below (go 1 below just to be safe, even though it seems OK now).
maxOutputTokens: 65_536 - 1, maxOutputTokens: 65_536 - 1,
// Gemini context window = input token + output token // Gemini context window = input token + output token
...@@ -113,10 +113,9 @@ export const MODEL_OPTIONS: Record<string, ModelOption[]> = { ...@@ -113,10 +113,9 @@ export const MODEL_OPTIONS: Record<string, ModelOption[]> = {
}, },
// https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview // https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview
{ {
name: "gemini-2.5-flash-preview-05-20", name: "gemini-2.5-flash",
displayName: "Gemini 2.5 Flash", displayName: "Gemini 2.5 Flash",
description: description: "Google's Gemini 2.5 Flash model (free tier available)",
"Preview version of Google's Gemini 2.5 Flash model (free tier available)",
// Weirdly for Vertex AI, the output token limit is *exclusive* of the stated limit. // Weirdly for Vertex AI, the output token limit is *exclusive* of the stated limit.
maxOutputTokens: 65_536 - 1, maxOutputTokens: 65_536 - 1,
// Gemini context window = input token + output token // Gemini context window = input token + output token
......
...@@ -20,11 +20,11 @@ const dyadGatewayUrl = process.env.DYAD_GATEWAY_URL; ...@@ -20,11 +20,11 @@ const dyadGatewayUrl = process.env.DYAD_GATEWAY_URL;
const AUTO_MODELS = [ const AUTO_MODELS = [
{ {
provider: "google", provider: "google",
name: "gemini-2.5-flash-preview-05-20", name: "gemini-2.5-flash",
}, },
{ {
provider: "anthropic", provider: "anthropic",
name: "claude-3-7-sonnet-latest", name: "claude-sonnet-4-20250514",
}, },
{ {
provider: "openai", provider: "openai",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论