Skip to content

Commit

Permalink
added grok 2 to proxy (#138)
Browse files Browse the repository at this point in the history
Co-authored-by: Adrian Barbir <[email protected]>
  • Loading branch information
Abarbir12 and Adrian Barbir authored Jan 30, 2025
1 parent b8e96de commit 01b1467
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/proxy/schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export const AvailableEndpointTypes: { [name: string]: ModelEndpointType[] } = {
"amazon.nova-lite-v1:0": ["bedrock"],
"amazon.nova-micro-v1:0": ["bedrock"],
"grok-beta": ["xAI"],
"grok-2-latest": ["xAI"],
};

export function getModelEndpointTypes(model: string): ModelEndpointType[] {
Expand Down
8 changes: 8 additions & 0 deletions packages/proxy/schema/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,14 @@ export const AvailableModels: { [name: string]: ModelSpec } = {
displayName: "Grok Beta",
},

"grok-2-latest": {
format: "openai",
flavor: "chat",
input_cost_per_mil_tokens: 2,
output_cost_per_mil_tokens: 10,
displayName: "Grok 2 Latest",
},

// BEDROCK MODELS
"amazon.nova-pro-v1:0": {
format: "openai",
Expand Down

0 comments on commit 01b1467

Please sign in to comment.