Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9084cfa529 | ||
|
|
24bf877c0c |
No files matched your search
@@ -2,6 +2,19 @@ import { z } from "zod";
|
||||
|
||||
import { ModelFamily } from "./family";
|
||||
|
||||
const BodyValue: z.ZodType<
|
||||
string | number | boolean | null | Array<unknown> | Record<string, unknown>
|
||||
> = z.lazy(() =>
|
||||
z.union([
|
||||
z.string(),
|
||||
z.number(),
|
||||
z.boolean(),
|
||||
z.null(),
|
||||
z.array(BodyValue),
|
||||
z.record(BodyValue),
|
||||
]),
|
||||
);
|
||||
|
||||
const Cost = z.object({
|
||||
input: z.number().min(0, "Input price cannot be negative"),
|
||||
output: z.number().min(0, "Output price cannot be negative"),
|
||||
@@ -74,6 +87,7 @@ export const Model = z
|
||||
npm: z.string().optional(),
|
||||
api: z.string().optional(),
|
||||
shape: z.enum(["responses", "completions"]).optional(),
|
||||
body: z.record(BodyValue).optional(),
|
||||
})
|
||||
.optional(),
|
||||
})
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
name = "Claude Opus 4.6 Fast"
|
||||
family = "claude-opus"
|
||||
release_date = "2026-02-05"
|
||||
last_updated = "2026-03-16"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-05"
|
||||
open_weights = false
|
||||
status = "beta"
|
||||
|
||||
[cost]
|
||||
input = 30.00
|
||||
output = 150.00
|
||||
cache_read = 3.00
|
||||
cache_write = 37.50
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[provider.body]
|
||||
speed = "fast"
|
||||
@@ -0,0 +1,28 @@
|
||||
name = "GPT-5.4 Fast"
|
||||
family = "gpt"
|
||||
release_date = "2026-03-05"
|
||||
last_updated = "2026-03-16"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
knowledge = "2025-08-31"
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 5.00
|
||||
output = 30.00
|
||||
cache_read = 0.50
|
||||
|
||||
[limit]
|
||||
context = 1_050_000
|
||||
input = 922_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[provider.body]
|
||||
service_tier = "priority"
|
||||
@@ -0,0 +1,31 @@
|
||||
name = "Claude Opus 4.6 Fast"
|
||||
family = "claude-opus"
|
||||
release_date = "2026-02-05"
|
||||
last_updated = "2026-03-16"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-08-31"
|
||||
open_weights = false
|
||||
status = "beta"
|
||||
|
||||
[cost]
|
||||
input = 30.00
|
||||
output = 150.00
|
||||
cache_read = 3.00
|
||||
cache_write = 37.50
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[provider]
|
||||
npm = "@ai-sdk/anthropic"
|
||||
|
||||
[provider.body]
|
||||
speed = "fast"
|
||||
@@ -0,0 +1,31 @@
|
||||
name = "GPT-5.4 Fast"
|
||||
family = "gpt"
|
||||
release_date = "2026-03-05"
|
||||
last_updated = "2026-03-16"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
knowledge = "2025-08-31"
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 5.00
|
||||
output = 30.00
|
||||
cache_read = 0.50
|
||||
|
||||
[limit]
|
||||
context = 1_050_000
|
||||
input = 922_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[provider]
|
||||
npm = "@ai-sdk/openai"
|
||||
|
||||
[provider.body]
|
||||
service_tier = "priority"
|
||||
Reference in new issue
Block a user