Skip to content

Commit 53502a8

Browse files
committed
Add xAi models
1 parent 12fc2b5 commit 53502a8

29 files changed

+236
-36
lines changed

app/schemas.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { z } from "zod";
44
export const ProviderSchema = z
55
.object({
66
name: z.string().min(1, "Provider name cannot be empty"),
7+
env: z.array(z.string()).min(1, "Provider env cannot be empty"),
78
})
89
.strict();
910

app/worker.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ app.get("/", async (c) => {
8585
<th>Attachment</th>
8686
<th>Reasoning</th>
8787
<th>Temperature</th>
88-
<th>Input Cost (per 1M)</th>
89-
<th>Output Cost (per 1M)</th>
90-
<th>Input Cached Cost (per 1M)</th>
91-
<th>Output Cached Cost (per 1M)</th>
88+
<th>Input Cost (/M tokens)</th>
89+
<th>Output Cost (/M tokens)</th>
90+
<th>Input Cached Cost (/M tokens)</th>
91+
<th>Output Cached Cost (/M tokens)</th>
9292
<th>Context Limit</th>
9393
<th>Output Limit</th>
9494
</tr>

providers/anthropic/provider.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
name = "Anthropic"
2+
env = ["ANTHROPIC_API_KEY"]

providers/google/provider.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
name = "Google"
2+
env = ["GOOGLE_API_KEY"]

providers/grok/models/grok-2.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

providers/grok/models/grok-3-fast.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

providers/grok/models/grok-3-mini-fast.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

providers/grok/models/grok-3-mini.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

providers/grok/models/grok-3.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

providers/grok/provider.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)