Skip to content

Commit

Permalink
feat(cost): add max window size property to all models
Browse files Browse the repository at this point in the history
  • Loading branch information
use-tusk[bot] authored Oct 19, 2024
1 parent b261042 commit 1a91df3
Show file tree
Hide file tree
Showing 11 changed files with 231 additions and 4 deletions.
2 changes: 2 additions & 0 deletions costs/src/interfaces/Cost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ export interface ModelRow {
start: string;
end: string;
};
max_window_size: number; // Add this line
}

11 changes: 9 additions & 2 deletions costs/src/providers/anthropic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00000163,
completion_token: 0.0000551,
},
max_window_size: 100000,
},
{
model: {
Expand All @@ -25,8 +26,8 @@ export const costs: ModelRow[] = [
prompt_token: 0.000008,
completion_token: 0.000024,
},
max_window_size: 100000,
},

{
model: {
operator: "equals",
Expand All @@ -36,8 +37,8 @@ export const costs: ModelRow[] = [
prompt_token: 0.000008,
completion_token: 0.000024,
},
max_window_size: 100000,
},

{
model: {
operator: "equals",
Expand All @@ -47,6 +48,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00000163,
completion_token: 0.00000551,
},
max_window_size: 100000,
},
{
model: {
Expand All @@ -57,6 +59,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00001102,
completion_token: 0.00003268,
},
max_window_size: 100000,
},
{
model: {
Expand All @@ -68,6 +71,7 @@ export const costs: ModelRow[] = [
completion_token: 0.000075,
},
showInPlayground: true,
max_window_size: 200000,
},
{
model: {
Expand All @@ -79,6 +83,7 @@ export const costs: ModelRow[] = [
completion_token: 0.000015,
},
showInPlayground: true,
max_window_size: 200000,
},
{
model: {
Expand All @@ -90,6 +95,7 @@ export const costs: ModelRow[] = [
completion_token: 0.000015,
},
showInPlayground: true,
max_window_size: 200000,
},
{
model: {
Expand All @@ -101,5 +107,6 @@ export const costs: ModelRow[] = [
completion_token: 0.00000125,
},
showInPlayground: true,
max_window_size: 200000,
},
];
7 changes: 7 additions & 0 deletions costs/src/providers/azure/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00001,
completion_token: 0.00003,
},
max_window_size: 128000,
},
{
model: {
Expand Down Expand Up @@ -44,6 +45,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00001,
completion_token: 0.00003,
},
max_window_size: 128000,
},
{
model: {
Expand All @@ -64,6 +66,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0000015,
completion_token: 0.000002,
},
max_window_size: 4096,
},
{
model: {
Expand All @@ -74,6 +77,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0000015,
completion_token: 0.000002,
},
max_window_size: 4096,
},
{
model: {
Expand All @@ -84,6 +88,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.000003,
completion_token: 0.000004,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -94,5 +99,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00001,
completion_token: 0.00003,
},
max_window_size: 128000,
},
];

1 change: 1 addition & 0 deletions costs/src/providers/cohere/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ export const costs: ModelRow[] = [
prompt_token: 0.0000005,
completion_token: 0.0000015,
},
max_window_size: 4096,
},
];
20 changes: 20 additions & 0 deletions costs/src/providers/fireworks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0000005,
completion_token: 0.0000005,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -20,6 +21,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0000012,
completion_token: 0.0000012,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -30,6 +32,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.000003,
completion_token: 0.000003,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -40,6 +43,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00013,
completion_token: 0.00013,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -50,6 +54,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00013,
completion_token: 0.00013,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -60,6 +65,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00013,
completion_token: 0.00013,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -70,6 +76,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00013,
completion_token: 0.00013,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -80,6 +87,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00013,
completion_token: 0.00013,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -90,6 +98,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00013,
completion_token: 0.00013,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -100,6 +109,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00013,
completion_token: 0.00013,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -110,6 +120,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00013,
completion_token: 0.00013,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -120,6 +131,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0002,
completion_token: 0.0002,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -130,6 +142,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0002,
completion_token: 0.0002,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -141,6 +154,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0002,
completion_token: 0.0002,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -152,6 +166,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0002,
completion_token: 0.0002,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -163,6 +178,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0002,
completion_token: 0.0002,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -173,6 +189,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0002,
completion_token: 0.0002,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -184,6 +201,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0002,
completion_token: 0.0002,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -194,6 +212,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0002,
completion_token: 0.0002,
},
max_window_size: 16384,
},
{
model: {
Expand All @@ -204,5 +223,6 @@ export const costs: ModelRow[] = [
prompt_token: 0.000003,
completion_token: 0.000003,
},
max_window_size: 16384,
},
];
6 changes: 6 additions & 0 deletions costs/src/providers/google/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.000000125,
completion_token: 0.000000375,
},
max_window_size: 32768,
},
{
model: {
Expand All @@ -25,6 +26,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.000000125,
completion_token: 0.000000375,
},
max_window_size: 32768,
},
{
model: {
Expand All @@ -35,6 +37,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.000000125,
completion_token: 0.000000375,
},
max_window_size: 32768,
},
{
model: {
Expand All @@ -45,6 +48,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00000035,
completion_token: 0.00000105,
},
max_window_size: 1000000,
},
{
model: {
Expand All @@ -55,5 +59,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0000035,
completion_token: 0.0000105,
},
max_window_size: 1000000,
},
];

8 changes: 8 additions & 0 deletions costs/src/providers/groq/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0000007,
completion_token: 0.0000008,
},
max_window_size: 4096,
},
{
model: {
Expand All @@ -25,6 +26,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00000024,
completion_token: 0.00000024,
},
max_window_size: 32768,
},
{
model: {
Expand All @@ -35,6 +37,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00000007,
completion_token: 0.00000007,
},
max_window_size: 32768,
},
{
model: {
Expand All @@ -45,6 +48,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.0000002,
completion_token: 0.0000002,
},
max_window_size: 32768,
},
{
model: {
Expand All @@ -55,6 +59,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00000059,
completion_token: 0.00000079,
},
max_window_size: 8192,
},
{
model: {
Expand All @@ -65,6 +70,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00000005,
completion_token: 0.00000008,
},
max_window_size: 8192,
},
{
model: {
Expand All @@ -75,6 +81,7 @@ export const costs: ModelRow[] = [
prompt_token: 0.00000089,
completion_token: 0.00000089,
},
max_window_size: 8192,
},
{
model: {
Expand All @@ -85,5 +92,6 @@ export const costs: ModelRow[] = [
prompt_token: 0.00000019,
completion_token: 0.00000019,
},
max_window_size: 8192,
},
];
Loading

0 comments on commit 1a91df3

Please sign in to comment.