Skip to content

Commit cae4572

Browse files
authored
update unified cost package with gemini 1.5 flash (#3743)
1 parent 1d1a819 commit cae4572

File tree

5 files changed

+115
-0
lines changed

5 files changed

+115
-0
lines changed

bifrost/packages/cost/unified/models.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,29 @@ export const modelMapping: CreatorModelMapping = {
386386
},
387387
],
388388
},
389+
"Gemini 1.5 Flash": {
390+
defaultTokenCost: {
391+
input: 0,
392+
output: 0,
393+
},
394+
defaultParameters: {
395+
response_format: true,
396+
},
397+
providers: [
398+
{
399+
provider: "GOOGLE_GEMINI",
400+
modelString: "gemini-1.5-flash",
401+
},
402+
{
403+
provider: "GOOGLE_VERTEXAI",
404+
modelString: "gemini-1.5-flash",
405+
},
406+
{
407+
provider: "OPENROUTER",
408+
modelString: "google/gemini-flash-1.5",
409+
},
410+
],
411+
},
389412
"Gemini 1.5 Pro": {
390413
defaultTokenCost: {
391414
input: 0,

packages/cost/unified/models.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,29 @@ export const modelMapping: CreatorModelMapping = {
386386
},
387387
],
388388
},
389+
"Gemini 1.5 Flash": {
390+
defaultTokenCost: {
391+
input: 0,
392+
output: 0,
393+
},
394+
defaultParameters: {
395+
response_format: true,
396+
},
397+
providers: [
398+
{
399+
provider: "GOOGLE_GEMINI",
400+
modelString: "gemini-1.5-flash",
401+
},
402+
{
403+
provider: "GOOGLE_VERTEXAI",
404+
modelString: "gemini-1.5-flash",
405+
},
406+
{
407+
provider: "OPENROUTER",
408+
modelString: "google/gemini-flash-1.5",
409+
},
410+
],
411+
},
389412
"Gemini 1.5 Pro": {
390413
defaultTokenCost: {
391414
input: 0,

valhalla/jawn/src/packages/cost/unified/models.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,29 @@ export const modelMapping: CreatorModelMapping = {
386386
},
387387
],
388388
},
389+
"Gemini 1.5 Flash": {
390+
defaultTokenCost: {
391+
input: 0,
392+
output: 0,
393+
},
394+
defaultParameters: {
395+
response_format: true,
396+
},
397+
providers: [
398+
{
399+
provider: "GOOGLE_GEMINI",
400+
modelString: "gemini-1.5-flash",
401+
},
402+
{
403+
provider: "GOOGLE_VERTEXAI",
404+
modelString: "gemini-1.5-flash",
405+
},
406+
{
407+
provider: "OPENROUTER",
408+
modelString: "google/gemini-flash-1.5",
409+
},
410+
],
411+
},
389412
"Gemini 1.5 Pro": {
390413
defaultTokenCost: {
391414
input: 0,

web/packages/cost/unified/models.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,29 @@ export const modelMapping: CreatorModelMapping = {
386386
},
387387
],
388388
},
389+
"Gemini 1.5 Flash": {
390+
defaultTokenCost: {
391+
input: 0,
392+
output: 0,
393+
},
394+
defaultParameters: {
395+
response_format: true,
396+
},
397+
providers: [
398+
{
399+
provider: "GOOGLE_GEMINI",
400+
modelString: "gemini-1.5-flash",
401+
},
402+
{
403+
provider: "GOOGLE_VERTEXAI",
404+
modelString: "gemini-1.5-flash",
405+
},
406+
{
407+
provider: "OPENROUTER",
408+
modelString: "google/gemini-flash-1.5",
409+
},
410+
],
411+
},
389412
"Gemini 1.5 Pro": {
390413
defaultTokenCost: {
391414
input: 0,

worker/src/packages/cost/unified/models.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,29 @@ export const modelMapping: CreatorModelMapping = {
386386
},
387387
],
388388
},
389+
"Gemini 1.5 Flash": {
390+
defaultTokenCost: {
391+
input: 0,
392+
output: 0,
393+
},
394+
defaultParameters: {
395+
response_format: true,
396+
},
397+
providers: [
398+
{
399+
provider: "GOOGLE_GEMINI",
400+
modelString: "gemini-1.5-flash",
401+
},
402+
{
403+
provider: "GOOGLE_VERTEXAI",
404+
modelString: "gemini-1.5-flash",
405+
},
406+
{
407+
provider: "OPENROUTER",
408+
modelString: "google/gemini-flash-1.5",
409+
},
410+
],
411+
},
389412
"Gemini 1.5 Pro": {
390413
defaultTokenCost: {
391414
input: 0,

0 commit comments

Comments
 (0)