Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee0dbe3cdd |
No files matched your search
@@ -20,15 +20,6 @@ jobs:
|
||||
with:
|
||||
bun-version: latest
|
||||
|
||||
# Workaround for Pulumi version conflict:
|
||||
# GitHub runners have Pulumi 3.212.0+ pre-installed, which removed the -root flag
|
||||
# from pulumi-language-nodejs (see https://github.com/pulumi/pulumi/pull/21065).
|
||||
# SST 3.17.x uses Pulumi SDK 3.210.0 which still passes -root, causing a conflict.
|
||||
# Removing the system language plugin forces SST to use its bundled compatible version.
|
||||
# TODO: Remove when sst supports Pulumi >3.210.0
|
||||
- name: Fix Pulumi version conflict
|
||||
run: sudo rm -f /usr/local/bin/pulumi-language-nodejs
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install
|
||||
|
||||
|
||||
@@ -26,32 +26,4 @@
|
||||
- Use `export interface` for API types, `export const Schema = z.object()` for validation
|
||||
- Prefix unused variables with underscore or use `_` for ignored parameters
|
||||
- Handle undefined values explicitly in comparisons and sorting
|
||||
- Use optional chaining (`?.`) and nullish coalescing (`??`) for safe property access
|
||||
|
||||
## Model Configuration
|
||||
|
||||
- Model `id` is **auto-injected** from filename (minus `.toml`) — never put `id` in TOML files
|
||||
- Same model is duplicated across provider directories with no cross-referencing
|
||||
- Schema uses `.strict()` — extra fields cause validation errors
|
||||
|
||||
### Bedrock Naming Patterns
|
||||
- Dated models: `-v1:0` suffix (`anthropic.claude-3-5-sonnet-20241022-v1:0.toml`)
|
||||
- Latest/undated models: bare `-v1` (`anthropic.claude-opus-4-6-v1.toml`)
|
||||
- Region prefixes: `us.`, `eu.`, `global.` (default has no prefix)
|
||||
|
||||
### Vertex AI Naming Patterns
|
||||
- Dated models: `@YYYYMMDD` (`claude-opus-4-5@20251101.toml`)
|
||||
- Latest/undated models: `@default` (`claude-opus-4-6@default.toml`)
|
||||
|
||||
### Cost Schema
|
||||
- `cost.context_over_200k` is a nested `Cost` object for >200K token pricing
|
||||
- Cache pricing ratios: standard models use 10%/125% (read/write), regional variants may use 30%/375%
|
||||
|
||||
### Required vs Optional Fields
|
||||
| Field | Required? | Notes |
|
||||
|-------|-----------|-------|
|
||||
| `name`, `release_date`, `last_updated` | Yes | Human-readable metadata |
|
||||
| `attachment`, `reasoning`, `tool_call`, `open_weights` | Yes | Boolean capabilities |
|
||||
| `cost`, `limit`, `modalities` | Yes | Objects with their own required fields |
|
||||
| `family`, `knowledge`, `temperature`, `structured_output` | No | Optional metadata |
|
||||
| `status` | No | Use for `"alpha"`, `"beta"`, `"deprecated"` lifecycle |
|
||||
- Use optional chaining (`?.`) and nullish coalescing (`??`) for safe property access
|
||||
@@ -91,12 +91,10 @@ name = "Model Display Name"
|
||||
attachment = true # or false - supports file attachments
|
||||
reasoning = false # or true - supports reasoning / chain-of-thought
|
||||
tool_call = true # or false - supports tool calling
|
||||
structured_output = true # or false - supports a dedicated structured output feature
|
||||
temperature = true # or false - supports temperature control
|
||||
knowledge = "2024-04" # Knowledge-cutoff date
|
||||
release_date = "2025-02-19" # First public release date
|
||||
last_updated = "2025-02-19" # Most recent update date
|
||||
open_weights = true # or false - model’s trained weights are publicly available
|
||||
|
||||
[cost]
|
||||
input = 3.00 # Cost per million input tokens (USD)
|
||||
@@ -108,16 +106,12 @@ input_audio = 1.00 # Cost per million audio input tokens (USD)
|
||||
output_audio = 10.00 # Cost per million audio output tokens (USD)
|
||||
|
||||
[limit]
|
||||
context = 400_000 # Maximum context window (tokens)
|
||||
input = 272_000 # Maximum input tokens
|
||||
context = 200_000 # Maximum context window (tokens)
|
||||
output = 8_192 # Maximum output tokens
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"] # Supported input modalities
|
||||
output = ["text"] # Supported output modalities
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content" # Name of the interleaved field "reasoning_content" or "reasoning_details"
|
||||
```
|
||||
|
||||
#### 4. Submit a Pull Request
|
||||
@@ -154,29 +148,22 @@ Models must conform to the following schema, as defined in `app/schemas.ts`.
|
||||
- `attachment`: Boolean — Supports file attachments
|
||||
- `reasoning`: Boolean — Supports reasoning / chain-of-thought
|
||||
- `tool_call`: Boolean - Supports tool calling
|
||||
- `structured_output` _(optional)_: Boolean — Supports structured output feature
|
||||
- `temperature` _(optional)_: Boolean — Supports temperature control
|
||||
- `temperature`: Boolean — Supports temperature control
|
||||
- `knowledge` _(optional)_: String — Knowledge-cutoff date in `YYYY-MM` or `YYYY-MM-DD` format
|
||||
- `release_date`: String — First public release date in `YYYY-MM` or `YYYY-MM-DD`
|
||||
- `last_updated`: String — Most recent update date in `YYYY-MM` or `YYYY-MM-DD`
|
||||
- `open_weights`: Boolean - Indicate the model's trained weights are publicly available
|
||||
- `interleaved` _(optional)_: Boolean or Object — Supports interleaved reasoning. Use `true` for general support or an object with `field` to specify the format
|
||||
- `interleaved.field`: String — Name of the interleaved field (`"reasoning_content"` or `"reasoning_details"`)
|
||||
- `cost.input`: Number — Cost per million input tokens (USD)
|
||||
- `cost.output`: Number — Cost per million output tokens (USD)
|
||||
- `cost.input` _(optional)_: Number — Cost per million input tokens (USD)
|
||||
- `cost.output` _(optional)_: Number — Cost per million output tokens (USD)
|
||||
- `cost.reasoning` _(optional)_: Number — Cost per million reasoning tokens (USD)
|
||||
- `cost.cache_read` _(optional)_: Number — Cost per million cached read tokens (USD)
|
||||
- `cost.cache_write` _(optional)_: Number — Cost per million cached write tokens (USD)
|
||||
- `cost.input_audio` _(optional)_: Number — Cost per million audio input tokens, if billed separately (USD)
|
||||
- `cost.output_audio` _(optional)_: Number — Cost per million audio output tokens, if billed separately (USD)
|
||||
- `limit.context`: Number — Maximum context window (tokens)
|
||||
- `limit.input`: Number — Maximum input tokens
|
||||
- `limit.output`: Number — Maximum output tokens
|
||||
- `modalities.input`: Array of strings — Supported input modalities (e.g., ["text", "image", "audio", "video", "pdf"])
|
||||
- `modalities.output`: Array of strings — Supported output modalities (e.g., ["text"])
|
||||
- `status` _(optional)_: String — Supported status:
|
||||
- `alpha` - Indicate the model is in alpha testing
|
||||
- `beta` - Indicate the model is in beta testing
|
||||
- `status` _(optional)_: Array of strings — Supported status:
|
||||
- `deprecated` - Indicate the model is no longer served by the provider's public API
|
||||
|
||||
### Examples
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{
|
||||
"lockfileVersion": 1,
|
||||
"configVersion": 0,
|
||||
"workspaces": {
|
||||
"": {
|
||||
"name": "models.dev",
|
||||
"dependencies": {
|
||||
"@cloudflare/workers-types": "^4.20250801.0",
|
||||
"sst": "3.17.23",
|
||||
"sst": "3.17.5",
|
||||
},
|
||||
},
|
||||
"packages/core": {
|
||||
@@ -266,23 +265,23 @@
|
||||
|
||||
"side-channel-weakmap": ["side-channel-weakmap@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="],
|
||||
|
||||
"sst": ["sst@3.17.23", "", { "dependencies": { "aws-sdk": "2.1692.0", "aws4fetch": "1.0.18", "jose": "5.2.3", "opencontrol": "0.0.6", "openid-client": "5.6.4" }, "optionalDependencies": { "sst-darwin-arm64": "3.17.23", "sst-darwin-x64": "3.17.23", "sst-linux-arm64": "3.17.23", "sst-linux-x64": "3.17.23", "sst-linux-x86": "3.17.23", "sst-win32-arm64": "3.17.23", "sst-win32-x64": "3.17.23", "sst-win32-x86": "3.17.23" }, "bin": { "sst": "bin/sst.mjs" } }, "sha512-TwKgUgDnZdc1Swe+bvCNeyO4dQnYz5cTodMpYj3jlXZdK9/KNz0PVxT1f0u5E76i1pmilXrUBL/f7iiMPw4RDg=="],
|
||||
"sst": ["sst@3.17.5", "", { "dependencies": { "aws-sdk": "2.1692.0", "aws4fetch": "1.0.18", "jose": "5.2.3", "opencontrol": "0.0.6", "openid-client": "5.6.4" }, "optionalDependencies": { "sst-darwin-arm64": "3.17.5", "sst-darwin-x64": "3.17.5", "sst-linux-arm64": "3.17.5", "sst-linux-x64": "3.17.5", "sst-linux-x86": "3.17.5", "sst-win32-arm64": "3.17.5", "sst-win32-x64": "3.17.5", "sst-win32-x86": "3.17.5" }, "bin": { "sst": "bin/sst.mjs" } }, "sha512-NhnJ4OJPlSBLUZhI3bj3uUdyXlw7qWi94KjbuFwlavtQszg9jOu/L70xZUFAO+S5qj9rSuRdzevL07tgon/V2w=="],
|
||||
|
||||
"sst-darwin-arm64": ["sst-darwin-arm64@3.17.23", "", { "os": "darwin", "cpu": "arm64" }, "sha512-R6kvmF+rUideOoU7KBs2SdvrIupoE+b+Dor/eq9Uo4Dojj7KvYDZI/EDm8sSCbbcx/opiWeyNqKtlnLEdCxE6g=="],
|
||||
"sst-darwin-arm64": ["sst-darwin-arm64@3.17.5", "", { "os": "darwin", "cpu": "arm64" }, "sha512-rBjQgUR0YHe1IqfbEjpCTj6Ut58gp1ObL8sIYPwT9KMBYuBiGGv7VjTXvpK2PcrQvFnF75A2MppqBHT7l2Z2sA=="],
|
||||
|
||||
"sst-darwin-x64": ["sst-darwin-x64@3.17.23", "", { "os": "darwin", "cpu": "x64" }, "sha512-WW4P1S35iYCifQXxD+sE3wuzcN+LHLpuKMaNoaBqEcWGZnH3IPaDJ7rpLF0arkDAo/z3jZmWWzOCkr0JuqJ8vQ=="],
|
||||
"sst-darwin-x64": ["sst-darwin-x64@3.17.5", "", { "os": "darwin", "cpu": "x64" }, "sha512-3G41wTqk2hrs1xRcSPcGakhNEp0rwy54DYVnfGEwyPc/fhLTRmWWxFYUJ02p4WcICOzHymwNnCoCjTxxT/LbfQ=="],
|
||||
|
||||
"sst-linux-arm64": ["sst-linux-arm64@3.17.23", "", { "os": "linux", "cpu": "arm64" }, "sha512-TjtNqgIh7RlAWgPLFCAt0mXvIB+J7WjmRvIRrAdX0mXsndOiBJ/DMOgXSLVsIWHCfPj8MIEot/hWpnJgXgIeag=="],
|
||||
"sst-linux-arm64": ["sst-linux-arm64@3.17.5", "", { "os": "linux", "cpu": "arm64" }, "sha512-dUHq6zkltogMLXcjrjPHjsLhTiPPizg5d//rSUwHBDLd7btDtzx8iHlLCwZydw9mIrFUvb81i/zmN9L+wI63uQ=="],
|
||||
|
||||
"sst-linux-x64": ["sst-linux-x64@3.17.23", "", { "os": "linux", "cpu": "x64" }, "sha512-qdqJiEbYfCjZlI3F/TA6eoIU7JXVkEEI/UMILNf2JWhky0KQdCW2Xyz+wb6c0msVJCWdUM/uj+1DaiP2eXvghw=="],
|
||||
"sst-linux-x64": ["sst-linux-x64@3.17.5", "", { "os": "linux", "cpu": "x64" }, "sha512-si2vIIbg3eZA5EBT1CUPze+M3qG+0zYP2NqrG0o77HKZxc/mKK/CSyY2KzgZJuktzVXpFh0bLxs6oBN4CEkm8Q=="],
|
||||
|
||||
"sst-linux-x86": ["sst-linux-x86@3.17.23", "", { "os": "linux", "cpu": "none" }, "sha512-aGmUujIvoNlmAABEGsOgfY1rxD9koC6hN8bnTLbDI+oI/u/zjHYh50jsbL0p3TlaHpwF/lxP3xFSuT6IKp+KgA=="],
|
||||
"sst-linux-x86": ["sst-linux-x86@3.17.5", "", { "os": "linux", "cpu": "none" }, "sha512-mr1v3sxkkabVvhZPLoiWNwMkszp7Z5WcIM9fHrEPu3ZfmKS1Ko1nk2Sqm1qTl/DV6RwOMqrgtnVkrxmMOd8A8w=="],
|
||||
|
||||
"sst-win32-arm64": ["sst-win32-arm64@3.17.23", "", { "os": "win32", "cpu": "arm64" }, "sha512-ZxdkGqYDrrZGz98rijDCN+m5yuCcwD6Bc9/6hubLsvdpNlVorUqzpg801Ec97xSK0nIC9g6pNiRyxAcsQQstUg=="],
|
||||
"sst-win32-arm64": ["sst-win32-arm64@3.17.5", "", { "os": "win32", "cpu": "arm64" }, "sha512-LDxaofS+7qYimC6vVCVFrIO0coc+Qdc5Ud/uWGHtYp+VwnhZ92Jjzsz44qflbfRC/vIYKEoMUpsmgfaNyS3aYQ=="],
|
||||
|
||||
"sst-win32-x64": ["sst-win32-x64@3.17.23", "", { "os": "win32", "cpu": "x64" }, "sha512-yc9cor4MS49Ccy2tQCF1tf6M81yLeSGzGL+gjhUxpVKo2pN3bxl3w70eyU/mTXSEeyAmG9zEfbt6FNu4sy5cUA=="],
|
||||
"sst-win32-x64": ["sst-win32-x64@3.17.5", "", { "os": "win32", "cpu": "x64" }, "sha512-G32vV3fBbTmEkfYAtoChdkzcZuLMiEfADR6OZ9IrkXnnaku55Xd9efEAa9hUbKJw/yI16/903ovK6vaO+nnJaw=="],
|
||||
|
||||
"sst-win32-x86": ["sst-win32-x86@3.17.23", "", { "os": "win32", "cpu": "none" }, "sha512-DIp3s54IpNAfdYjSRt6McvkbEPQDMxUu6RUeRAd2C+FcTJgTloon/ghAPQBaDgu2VoVgymjcJARO/XyfKcCLOQ=="],
|
||||
"sst-win32-x86": ["sst-win32-x86@3.17.5", "", { "os": "win32", "cpu": "none" }, "sha512-oimBphFoMIEKAKwGWMP0+uKrJdUPJb+i6IIbvuAuwBsChfe4LwUT+W1TvQLNykxpSw43ioXJSXHzjJmo1mI0BA=="],
|
||||
|
||||
"statuses": ["statuses@2.0.2", "", {}, "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw=="],
|
||||
|
||||
|
||||
+2
-4
@@ -15,12 +15,10 @@
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"validate": "bun ./packages/core/script/validate.ts",
|
||||
"helicone:generate": "bun ./packages/core/script/generate-helicone.ts",
|
||||
"venice:generate": "bun ./packages/core/script/generate-venice.ts"
|
||||
"validate": "bun ./packages/core/script/validate.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cloudflare/workers-types": "^4.20250801.0",
|
||||
"sst": "3.17.23"
|
||||
"sst": "3.17.5"
|
||||
}
|
||||
}
|
||||
@@ -1,505 +0,0 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
import { mkdir } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { z } from "zod";
|
||||
|
||||
// Friendli API endpoint
|
||||
const API_ENDPOINT = "https://api.friendli.ai/serverless/v1/models";
|
||||
|
||||
// Zod schemas for API response validation
|
||||
const Functionality = z.object({
|
||||
tool_call: z.boolean(),
|
||||
parallel_tool_call: z.boolean(),
|
||||
structured_output: z.boolean(),
|
||||
});
|
||||
|
||||
const Pricing = z.object({
|
||||
input: z.number(),
|
||||
output: z.number(),
|
||||
response_time: z.number(),
|
||||
unit_type: z.enum(["TOKEN", "SECOND"]),
|
||||
});
|
||||
|
||||
const FriendliModel = z
|
||||
.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
max_completion_tokens: z.number(),
|
||||
context_length: z.number(),
|
||||
functionality: Functionality,
|
||||
pricing: Pricing,
|
||||
hugging_face_url: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
license: z.string().optional(),
|
||||
policy: z.string().optional().nullable(),
|
||||
created: z.number(), // Unix timestamp
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const FriendliResponse = z.object({
|
||||
data: z.array(FriendliModel),
|
||||
});
|
||||
|
||||
// Family inference patterns
|
||||
const familyPatterns: [RegExp, string][] = [
|
||||
[/llama-3\.3/i, "llama-3.3"],
|
||||
[/llama-3\.1/i, "llama-3.1"],
|
||||
[/llama-4/i, "llama-4"],
|
||||
[/qwen3/i, "qwen3"],
|
||||
[/deepseek-r1/i, "deepseek-r1"],
|
||||
[/exaone/i, "exaone"],
|
||||
[/glm-4/i, "glm-4"],
|
||||
];
|
||||
|
||||
function inferFamily(modelId: string, modelName: string): string | undefined {
|
||||
for (const [pattern, family] of familyPatterns) {
|
||||
if (pattern.test(modelId) || pattern.test(modelName)) {
|
||||
return family;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function extractModelName(fullName: string): string {
|
||||
// "meta-llama/Llama-3.3-70B-Instruct" -> "Llama 3.3 70B Instruct"
|
||||
const parts = fullName.split("/");
|
||||
const modelName = parts.at(-1) ?? fullName;
|
||||
return modelName
|
||||
.replace(/-/g, " ")
|
||||
.replace(/\b\w/g, (l) => l.toUpperCase());
|
||||
}
|
||||
|
||||
// TODO: Replace with functionality.parse_reasoning from API when available
|
||||
function isReasoningModel(modelId: string): boolean {
|
||||
// Non-reasoning: Llama 3.x Instruct, Qwen3 Instruct
|
||||
const nonReasoningPatterns = [
|
||||
/llama-3\.\d.*instruct/i,
|
||||
/qwen3.*instruct/i,
|
||||
];
|
||||
|
||||
for (const pattern of nonReasoningPatterns) {
|
||||
if (pattern.test(modelId)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Everything else is reasoning or hybrid reasoning
|
||||
return true;
|
||||
}
|
||||
|
||||
function formatNumber(n: number): string {
|
||||
if (n >= 1000) {
|
||||
// Format with underscores for readability (e.g., 131_072)
|
||||
return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, "_");
|
||||
}
|
||||
return n.toString();
|
||||
}
|
||||
|
||||
function timestampToDate(timestamp: number): string {
|
||||
const date = new Date(timestamp * 1000);
|
||||
return date.toISOString().slice(0, 10);
|
||||
}
|
||||
|
||||
function getTodayDate(): string {
|
||||
return new Date().toISOString().slice(0, 10);
|
||||
}
|
||||
|
||||
interface ExistingModel {
|
||||
name?: string;
|
||||
family?: string;
|
||||
attachment?: boolean;
|
||||
reasoning?: boolean;
|
||||
tool_call?: boolean;
|
||||
structured_output?: boolean;
|
||||
temperature?: boolean;
|
||||
knowledge?: string;
|
||||
release_date?: string;
|
||||
last_updated?: string;
|
||||
open_weights?: boolean;
|
||||
interleaved?: boolean | { field: string };
|
||||
status?: string;
|
||||
cost?: {
|
||||
input?: number;
|
||||
output?: number;
|
||||
reasoning?: number;
|
||||
cache_read?: number;
|
||||
cache_write?: number;
|
||||
};
|
||||
limit?: {
|
||||
context?: number;
|
||||
input?: number;
|
||||
output?: number;
|
||||
};
|
||||
modalities?: {
|
||||
input?: string[];
|
||||
output?: string[];
|
||||
};
|
||||
provider?: {
|
||||
npm?: string;
|
||||
api?: string;
|
||||
};
|
||||
}
|
||||
|
||||
async function loadExistingModel(
|
||||
filePath: string,
|
||||
): Promise<ExistingModel | null> {
|
||||
try {
|
||||
const file = Bun.file(filePath);
|
||||
if (!(await file.exists())) {
|
||||
return null;
|
||||
}
|
||||
const toml = await import(filePath, { with: { type: "toml" } }).then(
|
||||
(mod) => mod.default,
|
||||
);
|
||||
return toml as ExistingModel;
|
||||
} catch (e) {
|
||||
console.warn(`Warning: Failed to parse existing file ${filePath}:`, e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
interface MergedModel {
|
||||
name: string;
|
||||
family?: string;
|
||||
attachment: boolean;
|
||||
reasoning: boolean;
|
||||
tool_call: boolean;
|
||||
structured_output?: boolean;
|
||||
temperature: boolean;
|
||||
knowledge?: string;
|
||||
release_date: string;
|
||||
last_updated: string;
|
||||
open_weights: boolean;
|
||||
interleaved?: boolean | { field: string };
|
||||
status?: string;
|
||||
cost?: {
|
||||
input: number;
|
||||
output: number;
|
||||
};
|
||||
limit: {
|
||||
context: number;
|
||||
output: number;
|
||||
};
|
||||
modalities: {
|
||||
input: string[];
|
||||
output: string[];
|
||||
};
|
||||
}
|
||||
|
||||
function mergeModel(
|
||||
apiModel: z.infer<typeof FriendliModel>,
|
||||
existing: ExistingModel | null,
|
||||
): MergedModel {
|
||||
const contextTokens = apiModel.context_length;
|
||||
const outputTokens = apiModel.max_completion_tokens;
|
||||
|
||||
const openWeights = Boolean(apiModel.hugging_face_url);
|
||||
|
||||
const merged: MergedModel = {
|
||||
// Always from API
|
||||
name: extractModelName(apiModel.name),
|
||||
attachment: false, // All Friendli models are text-only currently
|
||||
reasoning: isReasoningModel(apiModel.id),
|
||||
tool_call: apiModel.functionality.tool_call,
|
||||
temperature: true,
|
||||
release_date: timestampToDate(apiModel.created),
|
||||
last_updated: getTodayDate(),
|
||||
open_weights: openWeights,
|
||||
limit: {
|
||||
context: contextTokens,
|
||||
output: outputTokens,
|
||||
},
|
||||
modalities: {
|
||||
input: ["text"],
|
||||
output: ["text"],
|
||||
},
|
||||
};
|
||||
|
||||
// structured_output only if true
|
||||
if (apiModel.functionality.structured_output === true) {
|
||||
merged.structured_output = true;
|
||||
}
|
||||
|
||||
// Cost from API - ONLY include if unit_type is TOKEN
|
||||
if (apiModel.pricing.unit_type === "TOKEN") {
|
||||
merged.cost = {
|
||||
input: apiModel.pricing.input,
|
||||
output: apiModel.pricing.output,
|
||||
};
|
||||
} else {
|
||||
console.log(
|
||||
` Note: ${apiModel.id} uses ${apiModel.pricing.unit_type} pricing - cost section omitted`,
|
||||
);
|
||||
}
|
||||
|
||||
// Preserve from existing OR infer
|
||||
if (existing?.family) {
|
||||
merged.family = existing.family;
|
||||
} else {
|
||||
const inferred = inferFamily(apiModel.id, apiModel.name);
|
||||
if (inferred) {
|
||||
merged.family = inferred;
|
||||
}
|
||||
}
|
||||
|
||||
// Preserve manual fields from existing
|
||||
if (existing?.knowledge) {
|
||||
merged.knowledge = existing.knowledge;
|
||||
}
|
||||
if (existing?.interleaved !== undefined) {
|
||||
merged.interleaved = existing.interleaved;
|
||||
}
|
||||
if (existing?.status !== undefined) {
|
||||
merged.status = existing.status;
|
||||
}
|
||||
|
||||
return merged;
|
||||
}
|
||||
|
||||
function formatToml(model: MergedModel): string {
|
||||
const lines: string[] = [];
|
||||
|
||||
// Basic fields
|
||||
lines.push(`name = "${model.name.replace(/"/g, '\\"')}"`);
|
||||
if (model.family) {
|
||||
lines.push(`family = "${model.family}"`);
|
||||
}
|
||||
lines.push(`attachment = ${model.attachment}`);
|
||||
lines.push(`reasoning = ${model.reasoning}`);
|
||||
lines.push(`tool_call = ${model.tool_call}`);
|
||||
if (model.structured_output !== undefined) {
|
||||
lines.push(`structured_output = ${model.structured_output}`);
|
||||
}
|
||||
lines.push(`temperature = ${model.temperature}`);
|
||||
if (model.knowledge) {
|
||||
lines.push(`knowledge = "${model.knowledge}"`);
|
||||
}
|
||||
lines.push(`release_date = "${model.release_date}"`);
|
||||
lines.push(`last_updated = "${model.last_updated}"`);
|
||||
lines.push(`open_weights = ${model.open_weights}`);
|
||||
if (model.status) {
|
||||
lines.push(`status = "${model.status}"`);
|
||||
}
|
||||
|
||||
// Interleaved section (if present)
|
||||
if (model.interleaved !== undefined) {
|
||||
lines.push("");
|
||||
if (model.interleaved === true) {
|
||||
lines.push(`interleaved = true`);
|
||||
} else if (typeof model.interleaved === "object") {
|
||||
lines.push(`[interleaved]`);
|
||||
lines.push(`field = "${model.interleaved.field}"`);
|
||||
}
|
||||
}
|
||||
|
||||
// Cost section (only if present)
|
||||
if (model.cost) {
|
||||
lines.push("");
|
||||
lines.push(`[cost]`);
|
||||
lines.push(`input = ${model.cost.input}`);
|
||||
lines.push(`output = ${model.cost.output}`);
|
||||
}
|
||||
|
||||
// Limit section
|
||||
lines.push("");
|
||||
lines.push(`[limit]`);
|
||||
lines.push(`context = ${formatNumber(model.limit.context)}`);
|
||||
lines.push(`output = ${formatNumber(model.limit.output)}`);
|
||||
|
||||
// Modalities section
|
||||
lines.push("");
|
||||
lines.push(`[modalities]`);
|
||||
lines.push(
|
||||
`input = [${model.modalities.input.map((m) => `"${m}"`).join(", ")}]`,
|
||||
);
|
||||
lines.push(
|
||||
`output = [${model.modalities.output.map((m) => `"${m}"`).join(", ")}]`,
|
||||
);
|
||||
|
||||
return lines.join("\n") + "\n";
|
||||
}
|
||||
|
||||
interface Changes {
|
||||
field: string;
|
||||
oldValue: string;
|
||||
newValue: string;
|
||||
}
|
||||
|
||||
function detectChanges(
|
||||
existing: ExistingModel | null,
|
||||
merged: MergedModel,
|
||||
): Changes[] {
|
||||
if (!existing) return [];
|
||||
|
||||
const changes: Changes[] = [];
|
||||
|
||||
const compare = (field: string, oldVal: unknown, newVal: unknown) => {
|
||||
const oldStr = JSON.stringify(oldVal);
|
||||
const newStr = JSON.stringify(newVal);
|
||||
if (oldStr !== newStr) {
|
||||
changes.push({
|
||||
field,
|
||||
oldValue: formatValue(oldVal),
|
||||
newValue: formatValue(newVal),
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const formatValue = (val: unknown): string => {
|
||||
if (typeof val === "number") return formatNumber(val);
|
||||
if (Array.isArray(val)) return `[${val.join(", ")}]`;
|
||||
if (val === undefined) return "(none)";
|
||||
return String(val);
|
||||
};
|
||||
|
||||
compare("name", existing.name, merged.name);
|
||||
compare("family", existing.family, merged.family);
|
||||
compare("attachment", existing.attachment, merged.attachment);
|
||||
compare("reasoning", existing.reasoning, merged.reasoning);
|
||||
compare("tool_call", existing.tool_call, merged.tool_call);
|
||||
compare(
|
||||
"structured_output",
|
||||
existing.structured_output,
|
||||
merged.structured_output,
|
||||
);
|
||||
compare("open_weights", existing.open_weights, merged.open_weights);
|
||||
compare("release_date", existing.release_date, merged.release_date);
|
||||
compare("cost.input", existing.cost?.input, merged.cost?.input);
|
||||
compare("cost.output", existing.cost?.output, merged.cost?.output);
|
||||
compare("limit.context", existing.limit?.context, merged.limit.context);
|
||||
compare("limit.output", existing.limit?.output, merged.limit.output);
|
||||
compare("modalities.input", existing.modalities?.input, merged.modalities.input);
|
||||
|
||||
return changes;
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const args = process.argv.slice(2);
|
||||
const dryRun = args.includes("--dry-run");
|
||||
|
||||
const modelsDir = path.join(
|
||||
import.meta.dirname,
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"providers",
|
||||
"friendli",
|
||||
"models",
|
||||
);
|
||||
|
||||
if (dryRun) {
|
||||
console.log(`[DRY RUN] Fetching Friendli models from API...`);
|
||||
} else {
|
||||
console.log(`Fetching Friendli models from API...`);
|
||||
}
|
||||
|
||||
// Fetch API data
|
||||
const res = await fetch(API_ENDPOINT);
|
||||
if (!res.ok) {
|
||||
console.error(`Failed to fetch API: ${res.status} ${res.statusText}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const json = await res.json();
|
||||
const parsed = FriendliResponse.safeParse(json);
|
||||
if (!parsed.success) {
|
||||
console.error("Invalid API response:", parsed.error.errors);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const apiModels = parsed.data.data;
|
||||
|
||||
// Get existing files (recursively)
|
||||
const existingFiles = new Set<string>();
|
||||
try {
|
||||
for await (const file of new Bun.Glob("**/*.toml").scan({
|
||||
cwd: modelsDir,
|
||||
absolute: false,
|
||||
})) {
|
||||
existingFiles.add(file);
|
||||
}
|
||||
} catch {
|
||||
// Directory might not exist yet
|
||||
}
|
||||
|
||||
console.log(
|
||||
`Found ${apiModels.length} models in API, ${existingFiles.size} existing files\n`,
|
||||
);
|
||||
|
||||
// Track API model IDs for orphan detection
|
||||
const apiModelIds = new Set<string>();
|
||||
|
||||
let created = 0;
|
||||
let updated = 0;
|
||||
let unchanged = 0;
|
||||
|
||||
for (const apiModel of apiModels) {
|
||||
const relativePath = `${apiModel.id}.toml`;
|
||||
const filePath = path.join(modelsDir, relativePath);
|
||||
const dirPath = path.dirname(filePath);
|
||||
|
||||
apiModelIds.add(relativePath);
|
||||
|
||||
const existing = await loadExistingModel(filePath);
|
||||
const merged = mergeModel(apiModel, existing);
|
||||
const tomlContent = formatToml(merged);
|
||||
|
||||
if (existing === null) {
|
||||
created++;
|
||||
if (dryRun) {
|
||||
console.log(`[DRY RUN] Would create: ${relativePath}`);
|
||||
console.log(` name = "${merged.name}"`);
|
||||
if (merged.family) {
|
||||
console.log(` family = "${merged.family}" (inferred)`);
|
||||
}
|
||||
console.log("");
|
||||
} else {
|
||||
await mkdir(dirPath, { recursive: true });
|
||||
await Bun.write(filePath, tomlContent);
|
||||
console.log(`Created: ${relativePath}`);
|
||||
}
|
||||
} else {
|
||||
const changes = detectChanges(existing, merged);
|
||||
|
||||
if (changes.length > 0) {
|
||||
updated++;
|
||||
if (dryRun) {
|
||||
console.log(`[DRY RUN] Would update: ${relativePath}`);
|
||||
} else {
|
||||
await Bun.write(filePath, tomlContent);
|
||||
console.log(`Updated: ${relativePath}`);
|
||||
}
|
||||
for (const change of changes) {
|
||||
console.log(` ${change.field}: ${change.oldValue} → ${change.newValue}`);
|
||||
}
|
||||
console.log("");
|
||||
} else {
|
||||
unchanged++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check for orphaned files
|
||||
const orphaned: string[] = [];
|
||||
for (const file of existingFiles) {
|
||||
if (!apiModelIds.has(file)) {
|
||||
orphaned.push(file);
|
||||
console.log(`Warning: Orphaned file (not in API): ${file}`);
|
||||
}
|
||||
}
|
||||
|
||||
// Summary
|
||||
console.log("");
|
||||
if (dryRun) {
|
||||
console.log(
|
||||
`Summary: ${created} would be created, ${updated} would be updated, ${unchanged} unchanged, ${orphaned.length} orphaned`,
|
||||
);
|
||||
} else {
|
||||
console.log(
|
||||
`Summary: ${created} created, ${updated} updated, ${unchanged} unchanged, ${orphaned.length} orphaned`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
await main();
|
||||
@@ -1,208 +0,0 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
import { z } from "zod";
|
||||
import path from "node:path";
|
||||
import { mkdir, rm, readdir, stat } from "node:fs/promises";
|
||||
|
||||
// Helicone public model registry endpoint
|
||||
const DEFAULT_ENDPOINT =
|
||||
"https://jawn.helicone.ai/v1/public/model-registry/models";
|
||||
|
||||
// Zod schemas to validate the Helicone response
|
||||
const Pricing = z
|
||||
.object({
|
||||
prompt: z.number().optional(),
|
||||
completion: z.number().optional(),
|
||||
cacheRead: z.number().optional(),
|
||||
cacheWrite: z.number().optional(),
|
||||
reasoning: z.number().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const Endpoint = z
|
||||
.object({
|
||||
provider: z.string(),
|
||||
providerSlug: z.string().optional(),
|
||||
supportsPtb: z.boolean().optional(),
|
||||
pricing: Pricing.optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const ModelItem = z
|
||||
.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
author: z.string().optional(),
|
||||
contextLength: z.number().optional(),
|
||||
maxOutput: z.number().optional(),
|
||||
trainingDate: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
inputModalities: z.array(z.string()).optional(),
|
||||
outputModalities: z.array(z.string()).optional(),
|
||||
supportedParameters: z.array(z.string()).optional(),
|
||||
endpoints: z.array(Endpoint).optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const HeliconeResponse = z
|
||||
.object({
|
||||
data: z.object({
|
||||
models: z.array(ModelItem),
|
||||
total: z.number().optional(),
|
||||
filters: z.any().optional(),
|
||||
}),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
function pickEndpoint(m: z.infer<typeof ModelItem>) {
|
||||
if (!m.endpoints || m.endpoints.length === 0) return undefined;
|
||||
// Prefer endpoint that matches author if available
|
||||
if (m.author) {
|
||||
const match = m.endpoints.find((e) => e.provider === m.author);
|
||||
if (match) return match;
|
||||
}
|
||||
return m.endpoints[0];
|
||||
}
|
||||
|
||||
function boolFromParams(params: string[] | undefined, keys: string[]): boolean {
|
||||
if (!params) return false;
|
||||
const set = new Set(params.map((p) => p.toLowerCase()));
|
||||
return keys.some((k) => set.has(k.toLowerCase()));
|
||||
}
|
||||
|
||||
function sanitizeModalities(values: string[] | undefined): string[] {
|
||||
if (!values) return ["text"]; // default to text
|
||||
const allowed = new Set(["text", "audio", "image", "video", "pdf"]);
|
||||
const out = values.map((v) => v.toLowerCase()).filter((v) => allowed.has(v));
|
||||
return out.length > 0 ? out : ["text"];
|
||||
}
|
||||
|
||||
function formatToml(model: z.infer<typeof ModelItem>) {
|
||||
const ep = pickEndpoint(model);
|
||||
const pricing = ep?.pricing;
|
||||
|
||||
const supported = model.supportedParameters ?? [];
|
||||
|
||||
const nowISO = new Date().toISOString().slice(0, 10);
|
||||
const rdRaw = model.trainingDate ? String(model.trainingDate) : nowISO;
|
||||
const releaseDate = rdRaw.slice(0, 10);
|
||||
const lastUpdated = releaseDate;
|
||||
const knowledge = model.trainingDate
|
||||
? String(model.trainingDate).slice(0, 7)
|
||||
: undefined;
|
||||
|
||||
const attachment = false; // Not exposed by Helicone registry
|
||||
const temperature = boolFromParams(supported, ["temperature"]);
|
||||
const toolCall = boolFromParams(supported, ["tools", "tool_choice"]);
|
||||
const reasoning = boolFromParams(supported, [
|
||||
"reasoning",
|
||||
"include_reasoning",
|
||||
]);
|
||||
|
||||
const inputMods = sanitizeModalities(model.inputModalities);
|
||||
const outputMods = sanitizeModalities(model.outputModalities);
|
||||
|
||||
const lines: string[] = [];
|
||||
lines.push(`name = "${model.name.replaceAll('"', '\\"')}"`);
|
||||
lines.push(`release_date = "${releaseDate}"`);
|
||||
lines.push(`last_updated = "${lastUpdated}"`);
|
||||
lines.push(`attachment = ${attachment}`);
|
||||
lines.push(`reasoning = ${reasoning}`);
|
||||
lines.push(`temperature = ${temperature}`);
|
||||
lines.push(`tool_call = ${toolCall}`);
|
||||
if (knowledge) lines.push(`knowledge = "${knowledge}"`);
|
||||
lines.push(`open_weights = false`);
|
||||
lines.push("");
|
||||
|
||||
if (
|
||||
pricing &&
|
||||
(pricing.prompt ??
|
||||
pricing.completion ??
|
||||
pricing.cacheRead ??
|
||||
pricing.cacheWrite ??
|
||||
(reasoning && pricing.reasoning)) !== undefined
|
||||
) {
|
||||
lines.push(`[cost]`);
|
||||
if (pricing.prompt !== undefined) lines.push(`input = ${pricing.prompt}`);
|
||||
if (pricing.completion !== undefined)
|
||||
lines.push(`output = ${pricing.completion}`);
|
||||
if (reasoning && pricing.reasoning !== undefined)
|
||||
lines.push(`reasoning = ${pricing.reasoning}`);
|
||||
if (pricing.cacheRead !== undefined)
|
||||
lines.push(`cache_read = ${pricing.cacheRead}`);
|
||||
if (pricing.cacheWrite !== undefined)
|
||||
lines.push(`cache_write = ${pricing.cacheWrite}`);
|
||||
lines.push("");
|
||||
}
|
||||
|
||||
const context = model.contextLength ?? 0;
|
||||
const output = model.maxOutput ?? 4096;
|
||||
lines.push(`[limit]`);
|
||||
lines.push(`context = ${context}`);
|
||||
lines.push(`output = ${output}`);
|
||||
lines.push("");
|
||||
|
||||
lines.push(`[modalities]`);
|
||||
lines.push(`input = [${inputMods.map((m) => `"${m}"`).join(", ")}]`);
|
||||
lines.push(`output = [${outputMods.map((m) => `"${m}"`).join(", ")}]`);
|
||||
|
||||
return lines.join("\n") + "\n";
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const endpoint = DEFAULT_ENDPOINT;
|
||||
|
||||
const outDir = path.join(
|
||||
import.meta.dirname,
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"providers",
|
||||
"helicone",
|
||||
"models",
|
||||
);
|
||||
|
||||
const res = await fetch(endpoint);
|
||||
if (!res.ok) {
|
||||
console.error(`Failed to fetch registry: ${res.status} ${res.statusText}`);
|
||||
process.exit(1);
|
||||
}
|
||||
const json = await res.json();
|
||||
|
||||
const parsed = HeliconeResponse.safeParse(json);
|
||||
if (!parsed.success) {
|
||||
parsed.error.cause = json;
|
||||
console.error("Invalid Helicone response:", parsed.error.errors);
|
||||
console.error("When parsing:", parsed.error.cause);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const models = parsed.data.data.models;
|
||||
|
||||
// Clean output directory: remove subfolders and existing TOML files
|
||||
await mkdir(outDir, { recursive: true });
|
||||
for (const entry of await readdir(outDir)) {
|
||||
const p = path.join(outDir, entry);
|
||||
const st = await stat(p);
|
||||
if (st.isDirectory()) {
|
||||
await rm(p, { recursive: true, force: true });
|
||||
} else if (st.isFile() && entry.endsWith(".toml")) {
|
||||
await rm(p, { force: true });
|
||||
}
|
||||
}
|
||||
let created = 0;
|
||||
|
||||
for (const m of models) {
|
||||
const fileSafeId = m.id.replaceAll("/", "-");
|
||||
const filePath = path.join(outDir, `${fileSafeId}.toml`);
|
||||
const toml = formatToml(m);
|
||||
await Bun.write(filePath, toml);
|
||||
created++;
|
||||
}
|
||||
|
||||
console.log(
|
||||
`Generated ${created} model file(s) under providers/helicone/models/*.toml`,
|
||||
);
|
||||
}
|
||||
|
||||
await main();
|
||||
@@ -1,187 +0,0 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
/**
|
||||
* Generates model files from the data in Ollama Cloud's API.
|
||||
*
|
||||
* Ollama Cloud does not provide some data fields, such as release date or
|
||||
* knowledge cutoff. The `family` field provided by Ollama Cloud may not match
|
||||
* the values in family.ts. We expect that when TOML validaton fails, the
|
||||
* maintainer will manually source those data points (such as from other
|
||||
* provider TOML files, or from the internet at large). This script preserves
|
||||
* those fields when overwriting Ollama Cloud's TOML files.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import path from "node:path";
|
||||
|
||||
import type { Model } from "../src/schema";
|
||||
import type { ModelFamily } from "../src/family";
|
||||
|
||||
const modelsDir = path.join(
|
||||
import.meta.dirname,
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"providers",
|
||||
"ollama-cloud",
|
||||
"models"
|
||||
);
|
||||
|
||||
function modelFileName(modelName: string): string {
|
||||
return modelName + ".toml";
|
||||
}
|
||||
|
||||
type OllamaModel = Omit<Model, "id"> & {
|
||||
limit: Model["limit"] & { output?: number };
|
||||
};
|
||||
|
||||
const OllamaTagsResponse = z.object({
|
||||
models: z.array(
|
||||
z.object({
|
||||
name: z.string(),
|
||||
})
|
||||
),
|
||||
});
|
||||
|
||||
type OllamaTagsResponse = z.infer<typeof OllamaTagsResponse>;
|
||||
|
||||
const OllamaModelDetails = z.object({
|
||||
modified_at: z.string(),
|
||||
details: z.object({
|
||||
parent_model: z.string(),
|
||||
format: z.string(),
|
||||
family: z.string(),
|
||||
families: z.array(z.string()).nullable(),
|
||||
parameter_size: z.string().transform(Number),
|
||||
quantization_level: z.string(),
|
||||
}),
|
||||
model_info: z.record(z.union([z.string(), z.number()])),
|
||||
capabilities: z.array(z.enum(["thinking", "completion", "tools", "vision"])),
|
||||
});
|
||||
|
||||
type OllamaModelDetails = z.infer<typeof OllamaModelDetails>;
|
||||
|
||||
function generateToml(modelName: string, model: OllamaModel): string {
|
||||
const lines: string[] = [];
|
||||
|
||||
lines.push(`name = "${modelName}"`);
|
||||
lines.push(`family = "${model.family}"`);
|
||||
lines.push(`attachment = ${model.attachment}`);
|
||||
lines.push(`reasoning = ${model.reasoning}`);
|
||||
lines.push(`tool_call = ${model.tool_call}`);
|
||||
if (model.release_date) {
|
||||
lines.push(`release_date = "${model.release_date}"`);
|
||||
}
|
||||
if (model.knowledge) {
|
||||
lines.push(`knowledge = "${model.knowledge}"`);
|
||||
}
|
||||
lines.push(`last_updated = "${model.last_updated}"`);
|
||||
lines.push(`open_weights = ${model.open_weights}`);
|
||||
lines.push("");
|
||||
lines.push("[limit]");
|
||||
lines.push(`context = ${model.limit.context}`);
|
||||
if (model.limit.output !== undefined) {
|
||||
lines.push(`output = ${model.limit.output}`);
|
||||
}
|
||||
lines.push("");
|
||||
lines.push("[modalities]");
|
||||
lines.push(`input = ${JSON.stringify(model.modalities.input)}`);
|
||||
lines.push(`output = ${JSON.stringify(model.modalities.output)}`);
|
||||
return lines.join("\n") + "\n";
|
||||
}
|
||||
|
||||
const tagsResponse = await fetch("https://ollama.com/api/tags");
|
||||
if (!tagsResponse.ok) {
|
||||
console.error(
|
||||
`Failed to fetch tags: ${tagsResponse.status} ${tagsResponse.statusText}`
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const tagsJson = await tagsResponse.json();
|
||||
const tagsParsed = OllamaTagsResponse.safeParse(tagsJson);
|
||||
if (!tagsParsed.success) {
|
||||
console.error("Invalid tags response:", tagsParsed.error.errors);
|
||||
process.exit(1);
|
||||
}
|
||||
const tagsData: OllamaTagsResponse = tagsParsed.data;
|
||||
const modelNames = tagsData.models.map((m) => m.name);
|
||||
|
||||
console.log(`Fetching details for ${modelNames.length} models...`);
|
||||
|
||||
const modelsData: Array<{ name: string; data: OllamaModelDetails }> = [];
|
||||
for (const modelName of modelNames) {
|
||||
const showResponse = await fetch("https://ollama.com/api/show", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ model: modelName }),
|
||||
});
|
||||
|
||||
if (!showResponse.ok) {
|
||||
console.error(
|
||||
`Failed to fetch details for ${modelName}: ${showResponse.status} ${showResponse.statusText}`
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const showJson = await showResponse.json();
|
||||
const showParsed = OllamaModelDetails.safeParse(showJson);
|
||||
if (!showParsed.success) {
|
||||
console.error(
|
||||
`Invalid response for ${modelName}:`,
|
||||
showParsed.error.errors
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
modelsData.push({ name: modelName, data: showParsed.data });
|
||||
}
|
||||
|
||||
console.log(`Fetched all models. Writing new files...`);
|
||||
|
||||
let created = 0;
|
||||
for (const { name, data } of modelsData) {
|
||||
const fileName = modelFileName(name);
|
||||
const filePath = path.join(modelsDir, fileName);
|
||||
|
||||
let existingData: Omit<Model, "id"> | null;
|
||||
try {
|
||||
const existingToml = await Bun.file(filePath).text();
|
||||
existingData = Bun.TOML.parse(existingToml) as Omit<Model, "id">;
|
||||
} catch {
|
||||
// File doesn't exist
|
||||
existingData = null;
|
||||
}
|
||||
|
||||
const family = existingData?.family ?? (data.details.family as ModelFamily);
|
||||
const contextLength =
|
||||
(data.model_info[`${data.details.family}.context_length`] as number) ?? 0;
|
||||
|
||||
const ollamaModel: OllamaModel = {
|
||||
name,
|
||||
family,
|
||||
attachment: data.capabilities.includes("vision"),
|
||||
reasoning: data.capabilities.includes("thinking"),
|
||||
tool_call: data.capabilities.includes("tools"),
|
||||
release_date: existingData?.release_date,
|
||||
knowledge: existingData?.knowledge,
|
||||
last_updated: new Date().toISOString().slice(0, 10),
|
||||
open_weights: true,
|
||||
modalities: {
|
||||
input: data.capabilities.includes("vision")
|
||||
? ["text", "image"]
|
||||
: ["text"],
|
||||
output: ["text"],
|
||||
},
|
||||
limit: {
|
||||
context: contextLength,
|
||||
output: existingData?.limit.output,
|
||||
},
|
||||
};
|
||||
|
||||
await Bun.write(filePath, generateToml(name, ollamaModel));
|
||||
console.log(`Created: ${fileName}`);
|
||||
created++;
|
||||
}
|
||||
|
||||
console.log(`\nDone. Created ${created}`);
|
||||
@@ -1,591 +0,0 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
import { z } from "zod";
|
||||
import path from "node:path";
|
||||
import { readdir } from "node:fs/promises";
|
||||
import * as readline from "node:readline";
|
||||
import { ModelFamilyValues } from "../src/family.js";
|
||||
|
||||
// Venice API endpoint
|
||||
const API_ENDPOINT = "https://api.venice.ai/api/v1/models?type=text";
|
||||
|
||||
async function promptForApiKey(): Promise<string | null> {
|
||||
const rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout,
|
||||
});
|
||||
|
||||
return new Promise((resolve) => {
|
||||
rl.question(
|
||||
"Enter Venice API key to include alpha models (or press Enter to skip): ",
|
||||
(answer) => {
|
||||
rl.close();
|
||||
const trimmed = answer.trim();
|
||||
resolve(trimmed.length > 0 ? trimmed : null);
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
// Zod schemas for API response validation
|
||||
const Capabilities = z
|
||||
.object({
|
||||
optimizedForCode: z.boolean().optional(),
|
||||
quantization: z.string().optional(),
|
||||
supportsAudioInput: z.boolean().optional(),
|
||||
supportsFunctionCalling: z.boolean().optional(),
|
||||
supportsLogProbs: z.boolean().optional(),
|
||||
supportsReasoning: z.boolean().optional(),
|
||||
supportsResponseSchema: z.boolean().optional(),
|
||||
supportsVideoInput: z.boolean().optional(),
|
||||
supportsVision: z.boolean().optional(),
|
||||
supportsWebSearch: z.boolean().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const Pricing = z
|
||||
.object({
|
||||
input: z.object({ usd: z.number(), diem: z.number().optional() }).passthrough(),
|
||||
output: z.object({ usd: z.number(), diem: z.number().optional() }).passthrough(),
|
||||
cache_input: z.object({ usd: z.number(), diem: z.number().optional() }).passthrough().optional(),
|
||||
cache_write: z.object({ usd: z.number(), diem: z.number().optional() }).passthrough().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const ModelSpec = z
|
||||
.object({
|
||||
pricing: Pricing.optional(),
|
||||
availableContextTokens: z.number(),
|
||||
capabilities: Capabilities,
|
||||
constraints: z.any().optional(),
|
||||
name: z.string(),
|
||||
modelSource: z.string().optional(),
|
||||
offline: z.boolean().optional(),
|
||||
privacy: z.string().optional(),
|
||||
traits: z.array(z.string()).optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const VeniceModel = z
|
||||
.object({
|
||||
created: z.number(),
|
||||
id: z.string(),
|
||||
model_spec: ModelSpec,
|
||||
object: z.string(),
|
||||
owned_by: z.string(),
|
||||
type: z.string(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const VeniceResponse = z
|
||||
.object({
|
||||
data: z.array(VeniceModel),
|
||||
object: z.string(),
|
||||
type: z.string(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
function matchesFamily(target: string, family: string): boolean {
|
||||
const targetLower = target.toLowerCase();
|
||||
const familyLower = family.toLowerCase();
|
||||
let familyIdx = 0;
|
||||
|
||||
for (let i = 0; i < targetLower.length && familyIdx < familyLower.length; i++) {
|
||||
if (targetLower[i] === familyLower[familyIdx]) {
|
||||
familyIdx++;
|
||||
}
|
||||
}
|
||||
|
||||
return familyIdx === familyLower.length;
|
||||
}
|
||||
|
||||
function inferFamily(modelId: string, modelName: string): string | undefined {
|
||||
const sortedFamilies = [...ModelFamilyValues].sort((a, b) => b.length - a.length);
|
||||
|
||||
for (const family of sortedFamilies) {
|
||||
if (matchesFamily(modelId, family)) {
|
||||
return family;
|
||||
}
|
||||
}
|
||||
|
||||
for (const family of sortedFamilies) {
|
||||
if (matchesFamily(modelName, family)) {
|
||||
return family;
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function buildInputModalities(capabilities: z.infer<typeof Capabilities>): string[] {
|
||||
const mods: string[] = ["text"];
|
||||
if (capabilities.supportsVision) mods.push("image");
|
||||
if (capabilities.supportsAudioInput) mods.push("audio");
|
||||
if (capabilities.supportsVideoInput) mods.push("video");
|
||||
return mods;
|
||||
}
|
||||
|
||||
function formatNumber(n: number): string {
|
||||
if (n >= 1000) {
|
||||
// Format with underscores for readability (e.g., 131_072)
|
||||
return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, "_");
|
||||
}
|
||||
return n.toString();
|
||||
}
|
||||
|
||||
function timestampToDate(timestamp: number): string {
|
||||
const date = new Date(timestamp * 1000);
|
||||
return date.toISOString().slice(0, 10);
|
||||
}
|
||||
|
||||
function getTodayDate(): string {
|
||||
return new Date().toISOString().slice(0, 10);
|
||||
}
|
||||
|
||||
interface ExistingModel {
|
||||
name?: string;
|
||||
family?: string;
|
||||
attachment?: boolean;
|
||||
reasoning?: boolean;
|
||||
tool_call?: boolean;
|
||||
structured_output?: boolean;
|
||||
temperature?: boolean;
|
||||
knowledge?: string;
|
||||
release_date?: string;
|
||||
last_updated?: string;
|
||||
open_weights?: boolean;
|
||||
interleaved?: boolean | { field: string };
|
||||
status?: string;
|
||||
cost?: {
|
||||
input?: number;
|
||||
output?: number;
|
||||
reasoning?: number;
|
||||
cache_read?: number;
|
||||
cache_write?: number;
|
||||
};
|
||||
limit?: {
|
||||
context?: number;
|
||||
input?: number;
|
||||
output?: number;
|
||||
};
|
||||
modalities?: {
|
||||
input?: string[];
|
||||
output?: string[];
|
||||
};
|
||||
provider?: {
|
||||
npm?: string;
|
||||
api?: string;
|
||||
};
|
||||
}
|
||||
|
||||
async function loadExistingModel(filePath: string): Promise<ExistingModel | null> {
|
||||
try {
|
||||
const file = Bun.file(filePath);
|
||||
if (!(await file.exists())) {
|
||||
return null;
|
||||
}
|
||||
const toml = await import(filePath, { with: { type: "toml" } }).then(
|
||||
(mod) => mod.default,
|
||||
);
|
||||
return toml as ExistingModel;
|
||||
} catch (e) {
|
||||
console.warn(`Warning: Failed to parse existing file ${filePath}:`, e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
interface MergedModel {
|
||||
name: string;
|
||||
family?: string;
|
||||
attachment: boolean;
|
||||
reasoning: boolean;
|
||||
tool_call: boolean;
|
||||
structured_output?: boolean;
|
||||
temperature: boolean;
|
||||
knowledge?: string;
|
||||
release_date: string;
|
||||
last_updated: string;
|
||||
open_weights: boolean;
|
||||
interleaved?: boolean | { field: string };
|
||||
status?: string;
|
||||
cost?: {
|
||||
input: number;
|
||||
output: number;
|
||||
cache_read?: number;
|
||||
cache_write?: number;
|
||||
};
|
||||
limit: {
|
||||
context: number;
|
||||
output: number;
|
||||
};
|
||||
modalities: {
|
||||
input: string[];
|
||||
output: string[];
|
||||
};
|
||||
}
|
||||
|
||||
function mergeModel(
|
||||
apiModel: z.infer<typeof VeniceModel>,
|
||||
existing: ExistingModel | null,
|
||||
): MergedModel {
|
||||
const spec = apiModel.model_spec;
|
||||
const caps = spec.capabilities;
|
||||
|
||||
const contextTokens = spec.availableContextTokens;
|
||||
const proposedOutputTokens = Math.floor(contextTokens / 4);
|
||||
const outputTokens =
|
||||
existing?.limit?.output !== undefined && existing.limit.output < proposedOutputTokens
|
||||
? existing.limit.output
|
||||
: proposedOutputTokens
|
||||
|
||||
const openWeights = spec.modelSource
|
||||
? spec.modelSource.toLowerCase().includes("huggingface")
|
||||
: spec.privacy === "private";
|
||||
|
||||
const inputModalities = buildInputModalities(caps);
|
||||
|
||||
if (existing?.modalities?.input?.includes("pdf") && !inputModalities.includes("pdf")) {
|
||||
inputModalities.push("pdf");
|
||||
}
|
||||
|
||||
const attachment =
|
||||
caps.supportsVision === true ||
|
||||
caps.supportsAudioInput === true ||
|
||||
caps.supportsVideoInput === true;
|
||||
|
||||
const merged: MergedModel = {
|
||||
name: spec.name,
|
||||
attachment,
|
||||
reasoning: caps.supportsReasoning === true,
|
||||
tool_call: caps.supportsFunctionCalling === true,
|
||||
temperature: true,
|
||||
release_date: timestampToDate(apiModel.created),
|
||||
last_updated: getTodayDate(),
|
||||
open_weights: openWeights,
|
||||
limit: {
|
||||
context: contextTokens,
|
||||
output: outputTokens,
|
||||
},
|
||||
modalities: {
|
||||
input: inputModalities,
|
||||
output: ["text"],
|
||||
},
|
||||
};
|
||||
|
||||
// structured_output only if true
|
||||
if (caps.supportsResponseSchema === true) {
|
||||
merged.structured_output = true;
|
||||
}
|
||||
|
||||
// Cost from API
|
||||
if (spec.pricing) {
|
||||
merged.cost = {
|
||||
input: spec.pricing.input.usd,
|
||||
output: spec.pricing.output.usd,
|
||||
...(spec.pricing.cache_input && { cache_read: spec.pricing.cache_input.usd }),
|
||||
...(spec.pricing.cache_write && { cache_write: spec.pricing.cache_write.usd }),
|
||||
};
|
||||
}
|
||||
|
||||
const inferred = inferFamily(apiModel.id, spec.name);
|
||||
merged.family = inferred ?? existing?.family;
|
||||
|
||||
// Preserve manual fields from existing
|
||||
if (existing?.knowledge) {
|
||||
merged.knowledge = existing.knowledge;
|
||||
}
|
||||
if (existing?.interleaved !== undefined) {
|
||||
merged.interleaved = existing.interleaved;
|
||||
}
|
||||
if (existing?.status !== undefined) {
|
||||
merged.status = existing.status;
|
||||
}
|
||||
|
||||
return merged;
|
||||
}
|
||||
|
||||
function formatToml(model: MergedModel): string {
|
||||
const lines: string[] = [];
|
||||
|
||||
// Basic fields
|
||||
lines.push(`name = "${model.name.replace(/"/g, '\\"')}"`);
|
||||
if (model.family) {
|
||||
lines.push(`family = "${model.family}"`);
|
||||
}
|
||||
lines.push(`attachment = ${model.attachment}`);
|
||||
lines.push(`reasoning = ${model.reasoning}`);
|
||||
lines.push(`tool_call = ${model.tool_call}`);
|
||||
if (model.structured_output !== undefined) {
|
||||
lines.push(`structured_output = ${model.structured_output}`);
|
||||
}
|
||||
lines.push(`temperature = ${model.temperature}`);
|
||||
if (model.knowledge) {
|
||||
lines.push(`knowledge = "${model.knowledge}"`);
|
||||
}
|
||||
lines.push(`release_date = "${model.release_date}"`);
|
||||
lines.push(`last_updated = "${model.last_updated}"`);
|
||||
lines.push(`open_weights = ${model.open_weights}`);
|
||||
if (model.status) {
|
||||
lines.push(`status = "${model.status}"`);
|
||||
}
|
||||
|
||||
// Interleaved section (if present)
|
||||
if (model.interleaved !== undefined) {
|
||||
lines.push("");
|
||||
if (model.interleaved === true) {
|
||||
lines.push(`interleaved = true`);
|
||||
} else if (typeof model.interleaved === "object") {
|
||||
lines.push(`[interleaved]`);
|
||||
lines.push(`field = "${model.interleaved.field}"`);
|
||||
}
|
||||
}
|
||||
|
||||
// Cost section
|
||||
if (model.cost) {
|
||||
lines.push("");
|
||||
lines.push(`[cost]`);
|
||||
lines.push(`input = ${model.cost.input}`);
|
||||
lines.push(`output = ${model.cost.output}`);
|
||||
if (model.cost.cache_read !== undefined) {
|
||||
lines.push(`cache_read = ${model.cost.cache_read}`);
|
||||
}
|
||||
if (model.cost.cache_write !== undefined) {
|
||||
lines.push(`cache_write = ${model.cost.cache_write}`);
|
||||
}
|
||||
}
|
||||
|
||||
// Limit section
|
||||
lines.push("");
|
||||
lines.push(`[limit]`);
|
||||
lines.push(`context = ${formatNumber(model.limit.context)}`);
|
||||
lines.push(`output = ${formatNumber(model.limit.output)}`);
|
||||
|
||||
// Modalities section
|
||||
lines.push("");
|
||||
lines.push(`[modalities]`);
|
||||
lines.push(`input = [${model.modalities.input.map((m) => `"${m}"`).join(", ")}]`);
|
||||
lines.push(`output = [${model.modalities.output.map((m) => `"${m}"`).join(", ")}]`);
|
||||
|
||||
return lines.join("\n") + "\n";
|
||||
}
|
||||
|
||||
interface Changes {
|
||||
field: string;
|
||||
oldValue: string;
|
||||
newValue: string;
|
||||
}
|
||||
|
||||
function detectChanges(
|
||||
existing: ExistingModel | null,
|
||||
merged: MergedModel,
|
||||
): Changes[] {
|
||||
if (!existing) return [];
|
||||
|
||||
const changes: Changes[] = [];
|
||||
|
||||
const compare = (field: string, oldVal: unknown, newVal: unknown) => {
|
||||
const oldStr = JSON.stringify(oldVal);
|
||||
const newStr = JSON.stringify(newVal);
|
||||
if (oldStr !== newStr) {
|
||||
changes.push({
|
||||
field,
|
||||
oldValue: formatValue(oldVal),
|
||||
newValue: formatValue(newVal),
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const formatValue = (val: unknown): string => {
|
||||
if (typeof val === "number") return formatNumber(val);
|
||||
if (Array.isArray(val)) return `[${val.join(", ")}]`;
|
||||
if (val === undefined) return "(none)";
|
||||
return String(val);
|
||||
};
|
||||
|
||||
compare("name", existing.name, merged.name);
|
||||
compare("family", existing.family, merged.family);
|
||||
compare("attachment", existing.attachment, merged.attachment);
|
||||
compare("reasoning", existing.reasoning, merged.reasoning);
|
||||
compare("tool_call", existing.tool_call, merged.tool_call);
|
||||
compare("structured_output", existing.structured_output, merged.structured_output);
|
||||
compare("open_weights", existing.open_weights, merged.open_weights);
|
||||
compare("release_date", existing.release_date, merged.release_date);
|
||||
compare("cost.input", existing.cost?.input, merged.cost?.input);
|
||||
compare("cost.output", existing.cost?.output, merged.cost?.output);
|
||||
compare("cost.cache_read", existing.cost?.cache_read, merged.cost?.cache_read);
|
||||
compare("cost.cache_write", existing.cost?.cache_write, merged.cost?.cache_write);
|
||||
compare("limit.context", existing.limit?.context, merged.limit.context);
|
||||
compare("limit.output", existing.limit?.output, merged.limit.output);
|
||||
compare("modalities.input", existing.modalities?.input, merged.modalities.input);
|
||||
|
||||
return changes;
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const args = process.argv.slice(2);
|
||||
const dryRun = args.includes("--dry-run");
|
||||
|
||||
const modelsDir = path.join(
|
||||
import.meta.dirname,
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"providers",
|
||||
"venice",
|
||||
"models",
|
||||
);
|
||||
|
||||
// Check for API key from CLI argument, environment, or prompt
|
||||
let apiKey: string | null = null;
|
||||
|
||||
// Check CLI args for --api-key=xxx or --api-key xxx
|
||||
const apiKeyArgIndex = args.findIndex((arg) => arg.startsWith("--api-key"));
|
||||
if (apiKeyArgIndex !== -1) {
|
||||
const arg = args[apiKeyArgIndex];
|
||||
if (arg.includes("=")) {
|
||||
apiKey = arg.split("=")[1];
|
||||
} else if (args[apiKeyArgIndex + 1]) {
|
||||
apiKey = args[apiKeyArgIndex + 1];
|
||||
}
|
||||
}
|
||||
|
||||
// Fall back to environment variable
|
||||
if (!apiKey) {
|
||||
apiKey = process.env.VENICE_API_KEY ?? null;
|
||||
}
|
||||
|
||||
// Prompt if still no key
|
||||
if (!apiKey) {
|
||||
apiKey = await promptForApiKey();
|
||||
}
|
||||
|
||||
const includeAlpha = apiKey !== null;
|
||||
|
||||
if (dryRun) {
|
||||
console.log(
|
||||
`[DRY RUN] Fetching Venice models from API${includeAlpha ? " (including alpha models)" : ""}...`,
|
||||
);
|
||||
} else {
|
||||
console.log(
|
||||
`Fetching Venice models from API${includeAlpha ? " (including alpha models)" : ""}...`,
|
||||
);
|
||||
}
|
||||
|
||||
// Fetch API data
|
||||
const fetchOptions: RequestInit = {};
|
||||
if (apiKey) {
|
||||
fetchOptions.headers = {
|
||||
Authorization: `Bearer ${apiKey}`,
|
||||
};
|
||||
}
|
||||
|
||||
const res = await fetch(API_ENDPOINT, fetchOptions);
|
||||
if (!res.ok) {
|
||||
console.error(`Failed to fetch API: ${res.status} ${res.statusText}`);
|
||||
if (res.status === 401) {
|
||||
console.error("Invalid API key. Please check your VENICE_API_KEY.");
|
||||
}
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const json = await res.json();
|
||||
const parsed = VeniceResponse.safeParse(json);
|
||||
if (!parsed.success) {
|
||||
console.error("Invalid API response:", parsed.error.errors);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const apiModels = parsed.data.data;
|
||||
|
||||
// Get existing files
|
||||
const existingFiles = new Set<string>();
|
||||
try {
|
||||
const files = await readdir(modelsDir);
|
||||
for (const file of files) {
|
||||
if (file.endsWith(".toml")) {
|
||||
existingFiles.add(file);
|
||||
}
|
||||
}
|
||||
} catch {
|
||||
// Directory might not exist yet
|
||||
}
|
||||
|
||||
console.log(`Found ${apiModels.length} models in API, ${existingFiles.size} existing files\n`);
|
||||
|
||||
// Track API model IDs for orphan detection
|
||||
const apiModelIds = new Set<string>();
|
||||
|
||||
let created = 0;
|
||||
let updated = 0;
|
||||
let unchanged = 0;
|
||||
|
||||
for (const apiModel of apiModels) {
|
||||
const safeId = apiModel.id.replace(/\//g, "-");
|
||||
const filename = `${safeId}.toml`;
|
||||
const filePath = path.join(modelsDir, filename);
|
||||
|
||||
apiModelIds.add(filename);
|
||||
|
||||
const existing = await loadExistingModel(filePath);
|
||||
const merged = mergeModel(apiModel, existing);
|
||||
const tomlContent = formatToml(merged);
|
||||
|
||||
if (existing === null) {
|
||||
// New file
|
||||
created++;
|
||||
if (dryRun) {
|
||||
console.log(`[DRY RUN] Would create: ${filename}`);
|
||||
console.log(` name = "${merged.name}"`);
|
||||
if (merged.family) {
|
||||
console.log(` family = "${merged.family}" (inferred)`);
|
||||
}
|
||||
console.log("");
|
||||
} else {
|
||||
await Bun.write(filePath, tomlContent);
|
||||
console.log(`Created: ${filename}`);
|
||||
}
|
||||
} else {
|
||||
// Check for changes
|
||||
const changes = detectChanges(existing, merged);
|
||||
|
||||
if (changes.length > 0) {
|
||||
updated++;
|
||||
if (dryRun) {
|
||||
console.log(`[DRY RUN] Would update: ${filename}`);
|
||||
} else {
|
||||
await Bun.write(filePath, tomlContent);
|
||||
console.log(`Updated: ${filename}`);
|
||||
}
|
||||
for (const change of changes) {
|
||||
console.log(` ${change.field}: ${change.oldValue} → ${change.newValue}`);
|
||||
}
|
||||
console.log("");
|
||||
} else {
|
||||
unchanged++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check for orphaned files
|
||||
const orphaned: string[] = [];
|
||||
for (const file of existingFiles) {
|
||||
if (!apiModelIds.has(file)) {
|
||||
orphaned.push(file);
|
||||
console.log(`Warning: Orphaned file (not in API): ${file}`);
|
||||
}
|
||||
}
|
||||
|
||||
// Summary
|
||||
console.log("");
|
||||
if (dryRun) {
|
||||
console.log(
|
||||
`Summary: ${created} would be created, ${updated} would be updated, ${unchanged} unchanged, ${orphaned.length} orphaned`,
|
||||
);
|
||||
} else {
|
||||
console.log(
|
||||
`Summary: ${created} created, ${updated} updated, ${unchanged} unchanged, ${orphaned.length} orphaned`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
await main();
|
||||
@@ -1,371 +0,0 @@
|
||||
import { z } from "zod";
|
||||
|
||||
export const ModelFamilyValues = [
|
||||
// Arcee
|
||||
"trinity",
|
||||
"trinity-mini",
|
||||
|
||||
// OpenAI/GPT style
|
||||
"gpt",
|
||||
"gpt-codex",
|
||||
"gpt-codex-mini",
|
||||
"gpt-pro",
|
||||
"gpt-mini",
|
||||
"gpt-nano",
|
||||
"gpt-oss",
|
||||
|
||||
// OpenAI o-series (reasoning models)
|
||||
"o",
|
||||
"o-mini",
|
||||
"o-pro",
|
||||
|
||||
// Anthropic style
|
||||
"claude",
|
||||
"claude-haiku",
|
||||
"claude-sonnet",
|
||||
"claude-opus",
|
||||
|
||||
// Gemini style
|
||||
"gemini",
|
||||
"gemini-pro",
|
||||
"gemini-flash",
|
||||
"gemini-flash-lite",
|
||||
"gemini-embedding",
|
||||
|
||||
// GLM (zai)
|
||||
"glm",
|
||||
"glmv",
|
||||
"glm-air",
|
||||
"glm-flash",
|
||||
"glm-free",
|
||||
"glm-z",
|
||||
|
||||
// Meta Llama
|
||||
"llama",
|
||||
|
||||
// Alibaba Qwen
|
||||
"qwen",
|
||||
|
||||
// DeepSeek
|
||||
"deepseek",
|
||||
"deepseek-thinking",
|
||||
|
||||
// Microsoft Phi
|
||||
"phi",
|
||||
|
||||
// Moonshot Kimi
|
||||
"kimi",
|
||||
"kimi-free",
|
||||
"kimi-thinking",
|
||||
|
||||
// Mistral family
|
||||
"mistral",
|
||||
"mistral-large",
|
||||
"mistral-medium",
|
||||
"mistral-small",
|
||||
"mistral-nemo",
|
||||
"ministral",
|
||||
"codestral",
|
||||
"devstral",
|
||||
"pixtral",
|
||||
"mixtral",
|
||||
|
||||
// xAI Grok
|
||||
"grok",
|
||||
"grok-vision",
|
||||
"grok-beta",
|
||||
|
||||
// Google Gemma
|
||||
"gemma",
|
||||
|
||||
// AWS Nova
|
||||
"nova",
|
||||
"nova-pro",
|
||||
"nova-lite",
|
||||
"nova-micro",
|
||||
|
||||
// Cohere Command
|
||||
"command",
|
||||
"command-r",
|
||||
"command-a",
|
||||
"command-light",
|
||||
|
||||
// AI21 Jamba
|
||||
"jamba",
|
||||
|
||||
// NVIDIA Nemotron
|
||||
"nemotron",
|
||||
|
||||
// AWS Titan
|
||||
"titan",
|
||||
"titan-embed",
|
||||
|
||||
// MiniMax
|
||||
"minimax",
|
||||
"minimax-free",
|
||||
|
||||
// Hunyuan
|
||||
"hunyuan",
|
||||
|
||||
// Yi
|
||||
"yi",
|
||||
|
||||
// Granite
|
||||
"granite",
|
||||
|
||||
// Reka
|
||||
"reka",
|
||||
|
||||
// Sonar (Perplexity)
|
||||
"sonar",
|
||||
"sonar-pro",
|
||||
"sonar-reasoning",
|
||||
"sonar-deep-research",
|
||||
|
||||
// Solar
|
||||
"solar",
|
||||
"solar-mini",
|
||||
"solar-pro",
|
||||
|
||||
// Exaone
|
||||
"exaone",
|
||||
|
||||
// Step (StepFun)
|
||||
"step",
|
||||
|
||||
// Embedding models
|
||||
"text-embedding",
|
||||
"cohere-embed",
|
||||
"voyage",
|
||||
"mistral-embed",
|
||||
"bge",
|
||||
"plamo",
|
||||
"codestral-embed",
|
||||
|
||||
// Image generation
|
||||
"dall-e",
|
||||
"flux",
|
||||
"imagen",
|
||||
"recraft",
|
||||
"stable-diffusion",
|
||||
"ideogram",
|
||||
"dreamshaper",
|
||||
|
||||
// Video generation
|
||||
"sora",
|
||||
"veo",
|
||||
"runway",
|
||||
"dream-machine",
|
||||
|
||||
// Audio/Speech
|
||||
"whisper",
|
||||
"elevenlabs",
|
||||
"lyria",
|
||||
"melotts",
|
||||
|
||||
// Baidu Ernie
|
||||
"ernie",
|
||||
|
||||
// Hermes
|
||||
"hermes",
|
||||
|
||||
// Zephyr
|
||||
"zephyr",
|
||||
|
||||
// OpenChat
|
||||
"openchat",
|
||||
|
||||
// Starling
|
||||
"starling",
|
||||
|
||||
// Qwen QVQ
|
||||
"qvq",
|
||||
|
||||
// Sherlock
|
||||
"sherlock",
|
||||
|
||||
// Pony
|
||||
"pony",
|
||||
|
||||
|
||||
// Mercury
|
||||
"mercury",
|
||||
|
||||
// Cogito
|
||||
"cogito",
|
||||
|
||||
// Mimo
|
||||
"mimo",
|
||||
|
||||
// Longcat
|
||||
"longcat",
|
||||
|
||||
// Magistral
|
||||
"magistral",
|
||||
"magistral-small",
|
||||
"magistral-medium",
|
||||
|
||||
// Phoenix
|
||||
"phoenix",
|
||||
|
||||
// Trinity
|
||||
"trinity",
|
||||
|
||||
// Lucid
|
||||
"lucid",
|
||||
|
||||
// Intellect
|
||||
"intellect",
|
||||
|
||||
// Aura (Stability AI)
|
||||
"aura",
|
||||
|
||||
// JAIS
|
||||
"jais",
|
||||
|
||||
// Sarvam
|
||||
"sarvam",
|
||||
|
||||
// Falcon
|
||||
"falcon",
|
||||
|
||||
// Baichuan
|
||||
"baichuan",
|
||||
|
||||
// Skywork
|
||||
"skywork",
|
||||
|
||||
// BART
|
||||
"bart",
|
||||
|
||||
// DistilBERT
|
||||
"distilbert",
|
||||
|
||||
// ResNet
|
||||
"resnet",
|
||||
|
||||
// M2M100
|
||||
"m2m",
|
||||
|
||||
// IndicTrans
|
||||
"indictrans",
|
||||
|
||||
// LLaVA
|
||||
"llava",
|
||||
|
||||
// Seed
|
||||
"seed",
|
||||
|
||||
// Ray
|
||||
"ray",
|
||||
|
||||
// T-Stars
|
||||
"tstars",
|
||||
|
||||
// RNJ
|
||||
"rnj",
|
||||
|
||||
// Ling & Ring (InclusionAI)
|
||||
"ling",
|
||||
"ring",
|
||||
|
||||
// Kat Coder
|
||||
"kat-coder",
|
||||
|
||||
// SQL Coder
|
||||
"sqlcoder",
|
||||
|
||||
// DiscoLM
|
||||
"discolm",
|
||||
|
||||
// Osmosis
|
||||
"osmosis",
|
||||
|
||||
// Parakeet
|
||||
"parakeet",
|
||||
|
||||
// NeMo
|
||||
"nemoretriever",
|
||||
|
||||
// Nano Banana
|
||||
"nano-banana",
|
||||
|
||||
// Una Cybertron
|
||||
"una-cybertron",
|
||||
|
||||
// Morph
|
||||
"morph",
|
||||
|
||||
// Voxtral
|
||||
"voxtral",
|
||||
|
||||
// Venice
|
||||
"venice",
|
||||
|
||||
// Auto router
|
||||
"auto",
|
||||
"model-router",
|
||||
|
||||
// V0
|
||||
"v0",
|
||||
|
||||
// Tako
|
||||
"tako",
|
||||
|
||||
// MAI
|
||||
"mai",
|
||||
|
||||
// RedNote
|
||||
"rednote",
|
||||
|
||||
// Smart Turn
|
||||
"smart-turn",
|
||||
|
||||
// Qwerky
|
||||
"qwerky",
|
||||
|
||||
// Big Pickle
|
||||
"big-pickle",
|
||||
|
||||
// Chutes AI
|
||||
"chutesai",
|
||||
|
||||
// OpenGVLab
|
||||
"opengvlab",
|
||||
|
||||
// TNG Tech
|
||||
"tngtech",
|
||||
|
||||
// TopazLabs
|
||||
"topazlabs",
|
||||
|
||||
// Unsloth
|
||||
"unsloth",
|
||||
|
||||
// Nousresearch
|
||||
"nousresearch",
|
||||
|
||||
// Alpha variants (experimental models)
|
||||
"alpha",
|
||||
|
||||
// OSWE
|
||||
"oswe",
|
||||
|
||||
// Neural Chat
|
||||
"neural-chat",
|
||||
|
||||
// Pangu (Ascend Tribe)
|
||||
"pangu",
|
||||
|
||||
// LiquidAI
|
||||
"liquid",
|
||||
|
||||
// Sourceful
|
||||
"sourceful",
|
||||
|
||||
// AllenAI
|
||||
"allenai"
|
||||
] as const;
|
||||
|
||||
export const ModelFamily = z.enum(ModelFamilyValues);
|
||||
export type ModelFamily = z.infer<typeof ModelFamily>;
|
||||
+61
-68
@@ -1,48 +1,35 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { ModelFamily } from "./family";
|
||||
|
||||
const Cost = z.object({
|
||||
input: z.number().min(0, "Input price cannot be negative"),
|
||||
output: z.number().min(0, "Output price cannot be negative"),
|
||||
reasoning: z.number().min(0, "Input price cannot be negative").optional(),
|
||||
cache_read: z
|
||||
.number()
|
||||
.min(0, "Cache read price cannot be negative")
|
||||
.optional(),
|
||||
cache_write: z
|
||||
.number()
|
||||
.min(0, "Cache write price cannot be negative")
|
||||
.optional(),
|
||||
input_audio: z
|
||||
.number()
|
||||
.min(0, "Audio input price cannot be negative")
|
||||
.optional(),
|
||||
output_audio: z
|
||||
.number()
|
||||
.min(0, "Audio output price cannot be negative")
|
||||
.optional(),
|
||||
});
|
||||
export const Model = z
|
||||
.object({
|
||||
id: z.string(),
|
||||
name: z.string().min(1, "Model name cannot be empty"),
|
||||
family: ModelFamily.optional(),
|
||||
attachment: z.boolean(),
|
||||
reasoning: z.boolean(),
|
||||
reasoning: z.union([
|
||||
z.boolean(),
|
||||
z.object({
|
||||
supported: z.boolean(),
|
||||
controllable: z.boolean().optional(),
|
||||
type: z.enum(["effort", "budget"]).optional(),
|
||||
effort_levels: z.array(z.string()).optional(),
|
||||
budget_range: z.object({
|
||||
min: z.number(),
|
||||
max: z.number(),
|
||||
dynamic: z.number().optional(),
|
||||
off: z.number().optional(),
|
||||
}).optional(),
|
||||
default: z.union([z.string(), z.number()]).optional(),
|
||||
}).refine((data) => {
|
||||
if (!data.supported) return true;
|
||||
if (data.type === "effort" && !data.effort_levels?.length) return false;
|
||||
if (data.type === "budget" && !data.budget_range) return false;
|
||||
return true;
|
||||
}, {
|
||||
message: "effort_levels required for type 'effort', budget_range required for type 'budget'"
|
||||
}),
|
||||
]),
|
||||
temperature: z.boolean(),
|
||||
tool_call: z.boolean(),
|
||||
interleaved: z
|
||||
.union([
|
||||
z.literal(true),
|
||||
z
|
||||
.object({
|
||||
field: z.enum(["reasoning_content", "reasoning_details"]),
|
||||
})
|
||||
.strict(),
|
||||
])
|
||||
.optional(),
|
||||
structured_output: z.boolean().optional(),
|
||||
temperature: z.boolean().optional(),
|
||||
knowledge: z
|
||||
.string()
|
||||
.regex(/^\d{4}-\d{2}(-\d{2})?$/, {
|
||||
@@ -60,12 +47,34 @@ export const Model = z
|
||||
output: z.array(z.enum(["text", "audio", "image", "video", "pdf"])),
|
||||
}),
|
||||
open_weights: z.boolean(),
|
||||
cost: Cost.extend({
|
||||
context_over_200k: Cost.optional(),
|
||||
}).optional(),
|
||||
cost: z
|
||||
.object({
|
||||
input: z.number().min(0, "Input price cannot be negative"),
|
||||
output: z.number().min(0, "Output price cannot be negative"),
|
||||
reasoning: z
|
||||
.number()
|
||||
.min(0, "Input price cannot be negative")
|
||||
.optional(),
|
||||
cache_read: z
|
||||
.number()
|
||||
.min(0, "Cache read price cannot be negative")
|
||||
.optional(),
|
||||
cache_write: z
|
||||
.number()
|
||||
.min(0, "Cache write price cannot be negative")
|
||||
.optional(),
|
||||
input_audio: z
|
||||
.number()
|
||||
.min(0, "Audio input price cannot be negative")
|
||||
.optional(),
|
||||
output_audio: z
|
||||
.number()
|
||||
.min(0, "Audio output price cannot be negative")
|
||||
.optional(),
|
||||
})
|
||||
.optional(),
|
||||
limit: z.object({
|
||||
context: z.number().min(0, "Context window must be positive"),
|
||||
input: z.number().min(0, "Input tokens must be positive").optional(),
|
||||
output: z.number().min(0, "Output tokens must be positive"),
|
||||
}),
|
||||
status: z.enum(["alpha", "beta", "deprecated"]).optional(),
|
||||
@@ -79,12 +88,15 @@ export const Model = z
|
||||
.strict()
|
||||
.refine(
|
||||
(data) => {
|
||||
return !(data.reasoning === false && data.cost?.reasoning !== undefined);
|
||||
const reasoningSupported = typeof data.reasoning === "boolean"
|
||||
? data.reasoning
|
||||
: data.reasoning.supported;
|
||||
return !(reasoningSupported === false && data.cost?.reasoning !== undefined);
|
||||
},
|
||||
{
|
||||
message: "Cannot set cost.reasoning when reasoning is false",
|
||||
message: "Cannot set cost.reasoning when reasoning is not supported",
|
||||
path: ["cost", "reasoning"],
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
export type Model = z.infer<typeof Model>;
|
||||
@@ -100,41 +112,22 @@ export const Provider = z
|
||||
.string()
|
||||
.min(
|
||||
1,
|
||||
"Please provide a link to the provider documentation where models are listed",
|
||||
"Please provide a link to the provider documentation where models are listed"
|
||||
),
|
||||
models: z.record(Model),
|
||||
})
|
||||
.strict()
|
||||
.refine(
|
||||
(data) => {
|
||||
const isOpenAI = data.npm === "@ai-sdk/openai";
|
||||
const isOpenAIcompatible = data.npm === "@ai-sdk/openai-compatible";
|
||||
const isOpenrouter = data.npm === "@openrouter/ai-sdk-provider";
|
||||
const isAnthropic = data.npm === "@ai-sdk/anthropic";
|
||||
const hasApi = data.api !== undefined;
|
||||
|
||||
return (
|
||||
// openai-compatible: must have api
|
||||
(isOpenAIcompatible && hasApi) ||
|
||||
// openrouter: must have api
|
||||
(isOpenrouter && hasApi) ||
|
||||
// anthropic: api optional (always allowed)
|
||||
isAnthropic ||
|
||||
// openai: api optional (always allowed)
|
||||
isOpenAI ||
|
||||
// all others: must NOT have api
|
||||
(!isOpenAI &&
|
||||
!isOpenAIcompatible &&
|
||||
!isOpenrouter &&
|
||||
!isAnthropic &&
|
||||
!hasApi)
|
||||
(data.npm === "@ai-sdk/openai-compatible" && data.api !== undefined) ||
|
||||
(data.npm !== "@ai-sdk/openai-compatible" && data.api === undefined)
|
||||
);
|
||||
},
|
||||
{
|
||||
message:
|
||||
"'api' is required for openai-compatible and openrouter, optional for anthropic and openai, forbidden otherwise",
|
||||
"'api' field is required if and only if npm is '@ai-sdk/openai-compatible'",
|
||||
path: ["api"],
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
export type Provider = z.infer<typeof Provider>;
|
||||
@@ -11,7 +11,6 @@ export default {
|
||||
): Promise<Response> {
|
||||
const url = new URL(request.url);
|
||||
const ip = request.headers.get("cf-connecting-ip") || "unknown";
|
||||
const country = request.headers.get("cf-ipcountry") || "unknown";
|
||||
const agent = request.headers.get("user-agent") || "unknown";
|
||||
if (agent.includes("opencode") || agent.includes("bun")) {
|
||||
ctx.waitUntil(
|
||||
@@ -27,7 +26,6 @@ export default {
|
||||
properties: {
|
||||
$process_person_profile: false,
|
||||
user_agent: agent,
|
||||
country,
|
||||
path: url.pathname,
|
||||
},
|
||||
}),
|
||||
@@ -35,44 +33,6 @@ export default {
|
||||
);
|
||||
}
|
||||
|
||||
if (url.pathname === "/model-schema.json") {
|
||||
const apiUrl = new URL(url);
|
||||
apiUrl.pathname = "/_api.json";
|
||||
const apiResponse = await env.ASSETS.fetch(
|
||||
new Request(apiUrl.toString(), request),
|
||||
);
|
||||
const providers = (await apiResponse.json()) as Record<
|
||||
string,
|
||||
{ models: Record<string, unknown> }
|
||||
>;
|
||||
|
||||
const modelIds: string[] = [];
|
||||
for (const [providerId, provider] of Object.entries(providers)) {
|
||||
for (const modelId of Object.keys(provider.models)) {
|
||||
modelIds.push(`${providerId}/${modelId}`);
|
||||
}
|
||||
}
|
||||
|
||||
const schema = {
|
||||
$schema: "https://json-schema.org/draft/2020-12/schema",
|
||||
$id: "https://models.dev/model-schema.json",
|
||||
$defs: {
|
||||
Model: {
|
||||
type: "string",
|
||||
enum: modelIds.sort(),
|
||||
description: "AI model identifier in provider/model format",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
return new Response(JSON.stringify(schema, null, 2), {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "public, max-age=3600",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
if (url.pathname === "/api.json") {
|
||||
url.pathname = "/_api.json";
|
||||
} else if (
|
||||
|
||||
+12
-20
@@ -207,7 +207,7 @@ export const Rendered = renderToString(
|
||||
</svg>
|
||||
</a>
|
||||
<div class="search-container">
|
||||
<input type="text" id="search" placeholder="Search models" />
|
||||
<input type="text" id="search" placeholder="Filter by model" />
|
||||
<span class="search-shortcut">⌘K</span>
|
||||
</div>
|
||||
<button id="help">How to use</button>
|
||||
@@ -222,9 +222,6 @@ export const Rendered = renderToString(
|
||||
<th class="sortable" data-type="text">
|
||||
Model <span class="sort-indicator"></span>
|
||||
</th>
|
||||
<th class="sortable" data-type="text">
|
||||
Family <span class="sort-indicator"></span>
|
||||
</th>
|
||||
<th class="sortable" data-type="text">
|
||||
Provider ID <span class="sort-indicator"></span>
|
||||
</th>
|
||||
@@ -316,15 +313,9 @@ export const Rendered = renderToString(
|
||||
<th class="sortable" data-type="number">
|
||||
Context Limit <span class="sort-indicator"></span>
|
||||
</th>
|
||||
<th class="sortable" data-type="number">
|
||||
Input Limit <span class="sort-indicator"></span>
|
||||
</th>
|
||||
<th class="sortable" data-type="number">
|
||||
Output Limit <span class="sort-indicator"></span>
|
||||
</th>
|
||||
<th class="sortable" data-type="boolean">
|
||||
Structured Output <span class="sort-indicator"></span>
|
||||
</th>
|
||||
<th class="sortable" data-type="boolean">
|
||||
Temperature <span class="sort-indicator"></span>
|
||||
</th>
|
||||
@@ -362,7 +353,6 @@ export const Rendered = renderToString(
|
||||
</div>
|
||||
</td>
|
||||
<td>{model.name}</td>
|
||||
<td>{model.family ?? "-"}</td>
|
||||
<td>{providerId}</td>
|
||||
<td>
|
||||
<div class="model-id-cell">
|
||||
@@ -412,7 +402,17 @@ export const Rendered = renderToString(
|
||||
</div>
|
||||
</td>
|
||||
<td>{model.tool_call ? "Yes" : "No"}</td>
|
||||
<td>{model.reasoning ? "Yes" : "No"}</td>
|
||||
<td>{
|
||||
typeof model.reasoning === "boolean"
|
||||
? (model.reasoning ? "Yes" : "No")
|
||||
: model.reasoning.supported
|
||||
? (model.reasoning.controllable === false
|
||||
? "Always"
|
||||
: model.reasoning.type
|
||||
? `Yes (${model.reasoning.type})`
|
||||
: "Yes")
|
||||
: "No"
|
||||
}</td>
|
||||
<td>
|
||||
<div class="modalities">
|
||||
{model.modalities.input.map((modality) =>
|
||||
@@ -435,15 +435,7 @@ export const Rendered = renderToString(
|
||||
<td>{renderCost(model.cost?.input_audio)}</td>
|
||||
<td>{renderCost(model.cost?.output_audio)}</td>
|
||||
<td>{model.limit.context.toLocaleString()}</td>
|
||||
<td>{model.limit.input?.toLocaleString() ?? "-"}</td>
|
||||
<td>{model.limit.output.toLocaleString()}</td>
|
||||
<td>
|
||||
{model.structured_output === undefined
|
||||
? "-"
|
||||
: model.structured_output
|
||||
? "Yes"
|
||||
: "No"}
|
||||
</td>
|
||||
<td>{model.temperature ? "Yes" : "No"}</td>
|
||||
<td>{model.open_weights ? "Open" : "Closed"}</td>
|
||||
<td>
|
||||
|
||||
@@ -8,41 +8,26 @@ Bun.serve({
|
||||
"/": Index,
|
||||
"/assets/*": (req) => {
|
||||
const file = Bun.file(
|
||||
path.join(import.meta.dir, new URL(req.url).pathname)
|
||||
path.join(import.meta.dir, new URL(req.url).pathname),
|
||||
);
|
||||
return new Response(file);
|
||||
},
|
||||
"/logos/*": async (req) => {
|
||||
const url = new URL(req.url);
|
||||
const provider = url.pathname.split("/")[2].replace(".svg", "");
|
||||
const logoPath = path.join(
|
||||
import.meta.dir,
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"providers",
|
||||
provider,
|
||||
"logo.svg"
|
||||
);
|
||||
const defaultLogoPath = path.join(
|
||||
import.meta.dir,
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"providers",
|
||||
"logo.svg"
|
||||
);
|
||||
const provider = url.pathname.split('/')[2].replace('.svg', '');
|
||||
const logoPath = path.join(import.meta.dir, "..", "..", "..", "providers", provider, "logo.svg");
|
||||
const defaultLogoPath = path.join(import.meta.dir, "..", "..", "..", "providers", "logo.svg");
|
||||
|
||||
let file = Bun.file(logoPath);
|
||||
if (!(await file.exists())) {
|
||||
if (!await file.exists()) {
|
||||
file = Bun.file(defaultLogoPath);
|
||||
}
|
||||
|
||||
return new Response(file, {
|
||||
headers: {
|
||||
"Content-Type": "image/svg+xml",
|
||||
"Cache-Control": "public, max-age=3600",
|
||||
},
|
||||
"Cache-Control": "public, max-age=3600"
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" style="display: block;" viewBox="0 0 2048 2048" width="1046" height="1046" preserveAspectRatio="none">
|
||||
<path transform="translate(0,0)" fill="rgb(156,155,155)" d="M 388.193 1682.23 C 380.878 1674.23 349.014 1650.79 338.487 1642.13 C 148.161 1485.91 28.1107 1260.14 5.01063 1015 C -18.4493 771.014 55.9168 527.694 211.767 338.509 C 367.861 148.455 593.42 28.6444 838.288 5.7197 C 1092.75 -18.7181 1345.95 63.524 1537.48 232.828 C 1567.76 259.726 1596.32 288.496 1623 318.968 C 1631.78 329.058 1640.32 339.36 1648.6 349.865 C 1654.15 356.824 1662.64 368.871 1669.4 374.06 C 1866.4 518.124 1998.49 734.204 2036.88 975.222 C 2041.98 1007.66 2045.11 1039.38 2046.62 1072.12 C 2046.85 1077.09 2047.16 1082.22 2048 1087.12 L 2048 1155.79 L 2047.85 1156.71 C 2045.71 1170.93 2045.27 1196.57 2043.86 1212.22 C 2040.62 1246.59 2035.38 1280.75 2028.17 1314.51 C 1981.27 1534.16 1856.1 1729.25 1675.99 1863.43 C 1479.61 2010.02 1232.99 2072.49 990.498 2037.07 C 801.767 2009.86 626.135 1924.74 487.842 1793.46 C 455.956 1763.37 418.158 1722.72 392.022 1687.5 C 390.729 1685.76 389.452 1684 388.193 1682.23 z"/>
|
||||
<path transform="translate(0,0)" fill="rgb(117,116,116)" d="M 1669.4 374.06 C 1866.4 518.124 1998.49 734.204 2036.88 975.222 C 2041.98 1007.66 2045.11 1039.38 2046.62 1072.12 C 2046.85 1077.09 2047.16 1082.22 2048 1087.12 L 2048 1155.79 L 2047.85 1156.71 C 2045.71 1170.93 2045.27 1196.57 2043.86 1212.22 C 2040.62 1246.59 2035.38 1280.75 2028.17 1314.51 C 1981.27 1534.16 1856.1 1729.25 1675.99 1863.43 C 1479.61 2010.02 1232.99 2072.49 990.498 2037.07 C 801.767 2009.86 626.135 1924.74 487.842 1793.46 C 455.956 1763.37 418.158 1722.72 392.022 1687.5 C 390.729 1685.76 389.452 1684 388.193 1682.23 C 394.373 1684.07 421.092 1702.62 428.047 1707.15 C 439.611 1714.6 451.324 1721.83 463.177 1728.82 C 490.564 1744.99 528.003 1763.59 557.361 1776.32 C 782.899 1873.92 1037.96 1878.01 1266.51 1787.69 C 1495.36 1696.62 1678.57 1518.24 1775.72 1291.9 C 1877.79 1053.06 1875.1 782.375 1768.31 545.611 C 1753.03 511.993 1733.8 474.565 1714.15 443.177 C 1706.81 431.355 1699.2 419.704 1691.32 408.231 C 1685.67 400.055 1672.56 382.889 1669.4 374.06 z"/>
|
||||
<path transform="translate(0,0)" fill="rgb(254,254,254)" d="M 907.581 300.401 C 923.66 299.084 947.483 300.532 962.897 302.556 C 1041.39 313.102 1112.41 354.577 1160.17 417.755 C 1202.42 473.452 1228.57 555 1218.78 624.854 C 1256.03 619.819 1285.79 618.643 1323.38 625.442 C 1401.3 639.582 1470.3 684.357 1514.95 749.754 C 1560.04 815.479 1576.85 896.56 1561.6 974.792 C 1546.59 1052.29 1501.28 1120.59 1435.71 1164.55 C 1366.19 1211.67 1287.89 1223.85 1206.7 1207.99 L 1208.16 1225.92 C 1213.72 1304.44 1187.72 1381.94 1135.93 1441.23 C 1080.14 1505.71 1008.69 1536.8 924.661 1542.84 C 910.37 1543.02 898.883 1543.12 884.551 1541.84 C 806.009 1534.5 733.606 1496.24 683.294 1435.48 C 630.495 1371.76 609.152 1293.49 617.004 1211.82 C 577.182 1218.28 543.704 1219.15 503.598 1211.31 C 425.862 1195.87 357.514 1150.02 313.752 1083.94 C 269.997 1017.95 254.398 937.224 270.419 859.682 C 286.452 782.387 332.522 714.62 398.502 671.28 C 468.674 625.191 546.96 613.555 628.149 630.32 C 625.459 583.013 627.036 545.389 643.173 499.662 C 684.204 383.394 785.737 308.984 907.581 300.401 z"/>
|
||||
<path transform="translate(0,0)" fill="rgb(156,155,155)" d="M 907.659 407.406 C 928.022 404.422 959.425 408.947 978.901 414.989 C 1028.11 429.972 1069.15 464.261 1092.65 510.025 C 1116.27 555.792 1120.24 609.2 1103.65 657.957 C 1098.74 672.384 1090.33 686.336 1086.3 699.186 C 1082.14 712.53 1083.57 726.994 1090.26 739.265 C 1100.24 757.657 1118.84 768.259 1139.57 767.119 C 1155.78 766.227 1164.63 759.273 1178.02 751.678 C 1221.56 726.903 1273.23 720.668 1321.41 734.376 C 1370.6 748.209 1412.18 781.215 1436.82 825.985 C 1461.35 870.569 1467.02 923.112 1452.58 971.905 C 1438.06 1020.82 1404.54 1061.88 1359.51 1085.9 C 1280.31 1128.12 1181.39 1108.75 1124.87 1039.74 C 1113.7 1026.12 1105.83 1013.42 1087.4 1008.03 C 1041 993.798 1000.36 1044.75 1026.36 1086.49 C 1041.95 1111.53 1062.76 1127.17 1078.18 1153.03 C 1090.26 1175.57 1097.84 1197.66 1100.84 1223.2 C 1107.04 1273.73 1092.65 1324.64 1060.9 1364.44 C 1029.42 1404.28 983.238 1429.79 932.752 1435.23 C 882.189 1440.86 831.491 1425.87 792.121 1393.65 C 752.588 1361.54 727.605 1314.91 722.781 1264.21 C 718.894 1225.82 727.653 1167.83 758.478 1141.35 C 771.141 1130.47 781.921 1118.81 792.404 1105.84 C 869.373 1010.12 879.456 876.886 817.771 770.669 C 809.316 756.055 799.574 742.224 788.661 729.342 C 782.235 721.815 773.191 712.791 767.461 705.187 C 749.008 680.699 737.483 646.859 734.444 616.659 C 729.188 565.849 744.584 515.06 777.168 475.721 C 810.289 435.451 856.055 412.394 907.659 407.406 z"/>
|
||||
<path transform="translate(0,0)" fill="rgb(156,155,155)" d="M 554.228 729.711 C 659.104 725.931 747.227 807.802 751.164 912.672 C 755.1 1017.54 673.362 1105.79 568.498 1109.88 C 463.411 1113.98 374.937 1032.03 370.992 926.942 C 367.047 821.849 449.129 733.498 554.228 729.711 z"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.9 KiB |
@@ -1,21 +0,0 @@
|
||||
name = "MiniMax-M1"
|
||||
family = "minimax"
|
||||
release_date = "2025-06-16"
|
||||
last_updated = "2025-06-16"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.132
|
||||
output = 1.254
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,20 +0,0 @@
|
||||
name = "MiniMax-M2"
|
||||
release_date = "2025-10-26"
|
||||
last_updated = "2025-10-26"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.330
|
||||
output = 1.320
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "chatgpt-4o-latest"
|
||||
family = "gpt"
|
||||
release_date = "2024-08-08"
|
||||
last_updated = "2024-08-08"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = false
|
||||
knowledge = "2023-09"
|
||||
|
||||
[cost]
|
||||
input = 5.000
|
||||
output = 15.000
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "claude-haiku-4-5-20251001"
|
||||
release_date = "2025-10-16"
|
||||
last_updated = "2025-10-16"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
|
||||
[cost]
|
||||
input = 1.000
|
||||
output = 5.000
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "claude-opus-4-1-20250805-thinking"
|
||||
release_date = "2025-05-27"
|
||||
last_updated = "2025-05-27"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
|
||||
[cost]
|
||||
input = 15.000
|
||||
output = 75.000
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "claude-opus-4-1-20250805"
|
||||
release_date = "2025-08-05"
|
||||
last_updated = "2025-08-05"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
|
||||
[cost]
|
||||
input = 15.000
|
||||
output = 75.000
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "claude-opus-4-5-20251101-thinking"
|
||||
release_date = "2025-11-25"
|
||||
last_updated = "2025-11-25"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
|
||||
[cost]
|
||||
input = 5.000
|
||||
output = 25.000
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "claude-opus-4-5-20251101"
|
||||
release_date = "2025-11-25"
|
||||
last_updated = "2025-11-25"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
|
||||
[cost]
|
||||
input = 5.000
|
||||
output = 25.000
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "claude-sonnet-4-5-20250929-thinking"
|
||||
release_date = "2025-09-30"
|
||||
last_updated = "2025-09-30"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
|
||||
[cost]
|
||||
input = 3.000
|
||||
output = 15.000
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "claude-sonnet-4-5-20250929"
|
||||
release_date = "2025-09-29"
|
||||
last_updated = "2025-09-29"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
|
||||
[cost]
|
||||
input = 3.000
|
||||
output = 15.000
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "Deepseek-Chat"
|
||||
family = "deepseek"
|
||||
release_date = "2024-11-29"
|
||||
last_updated = "2024-11-29"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-07"
|
||||
|
||||
[cost]
|
||||
input = 0.290
|
||||
output = 0.430
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "Deepseek-Reasoner"
|
||||
family = "deepseek-thinking"
|
||||
release_date = "2025-01-20"
|
||||
last_updated = "2025-01-20"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-07"
|
||||
|
||||
[cost]
|
||||
input = 0.290
|
||||
output = 0.430
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "DeepSeek-V3.2-Thinking"
|
||||
release_date = "2025-12-01"
|
||||
last_updated = "2025-12-01"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-12"
|
||||
|
||||
[cost]
|
||||
input = 0.290
|
||||
output = 0.430
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "deepseek-v3.2"
|
||||
release_date = "2025-12-01"
|
||||
last_updated = "2025-12-01"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-12"
|
||||
|
||||
[cost]
|
||||
input = 0.290
|
||||
output = 0.430
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,20 +0,0 @@
|
||||
name = "doubao-seed-1-6-thinking-250715"
|
||||
release_date = "2025-07-15"
|
||||
last_updated = "2025-07-15"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.121
|
||||
output = 1.210
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 16_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,20 +0,0 @@
|
||||
name = "doubao-seed-1-6-vision-250815"
|
||||
release_date = "2025-09-30"
|
||||
last_updated = "2025-09-30"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.114
|
||||
output = 1.143
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,20 +0,0 @@
|
||||
name = "doubao-seed-1-8-251215"
|
||||
release_date = "2025-12-18"
|
||||
last_updated = "2025-12-18"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.114
|
||||
output = 0.286
|
||||
|
||||
[limit]
|
||||
context = 224_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,20 +0,0 @@
|
||||
name = "doubao-seed-code-preview-251028"
|
||||
release_date = "2025-11-11"
|
||||
last_updated = "2025-11-11"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.170
|
||||
output = 1.140
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "gemini-2.0-flash-lite"
|
||||
family = "gemini-flash-lite"
|
||||
release_date = "2025-06-16"
|
||||
last_updated = "2025-06-16"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = false
|
||||
knowledge = "2024-11"
|
||||
|
||||
[cost]
|
||||
input = 0.075
|
||||
output = 0.300
|
||||
|
||||
[limit]
|
||||
context = 2_000_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gemini-2.5-flash-image"
|
||||
release_date = "2025-10-08"
|
||||
last_updated = "2025-10-08"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = false
|
||||
knowledge = "2025-01"
|
||||
|
||||
[cost]
|
||||
input = 0.300
|
||||
output = 30.000
|
||||
|
||||
[limit]
|
||||
context = 32_768
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gemini-2.5-flash-lite-preview-09-2025"
|
||||
release_date = "2025-09-26"
|
||||
last_updated = "2025-09-26"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-01"
|
||||
|
||||
[cost]
|
||||
input = 0.100
|
||||
output = 0.400
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "gemini-2.5-flash-nothink"
|
||||
family = "gemini-flash"
|
||||
release_date = "2025-06-24"
|
||||
last_updated = "2025-06-24"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-01"
|
||||
|
||||
[cost]
|
||||
input = 0.300
|
||||
output = 2.500
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gemini-2.5-flash-preview-09-2025"
|
||||
release_date = "2025-09-26"
|
||||
last_updated = "2025-09-26"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-01"
|
||||
|
||||
[cost]
|
||||
input = 0.300
|
||||
output = 2.500
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "gemini-2.5-flash"
|
||||
family = "gemini-flash"
|
||||
release_date = "2025-06-17"
|
||||
last_updated = "2025-06-17"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-01"
|
||||
|
||||
[cost]
|
||||
input = 0.300
|
||||
output = 2.500
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "gemini-2.5-pro"
|
||||
family = "gemini-pro"
|
||||
release_date = "2025-06-17"
|
||||
last_updated = "2025-06-17"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-01"
|
||||
|
||||
[cost]
|
||||
input = 1.250
|
||||
output = 10.000
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gemini-3-flash-preview"
|
||||
release_date = "2025-12-18"
|
||||
last_updated = "2025-12-18"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-06"
|
||||
|
||||
[cost]
|
||||
input = 0.500
|
||||
output = 3.000
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gemini-3-pro-image-preview"
|
||||
release_date = "2025-11-20"
|
||||
last_updated = "2025-11-20"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = false
|
||||
knowledge = "2025-06"
|
||||
|
||||
[cost]
|
||||
input = 2.000
|
||||
output = 120.000
|
||||
|
||||
[limit]
|
||||
context = 32_768
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gemini-3-pro-preview"
|
||||
release_date = "2025-11-19"
|
||||
last_updated = "2025-11-19"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-06"
|
||||
|
||||
[cost]
|
||||
input = 2.000
|
||||
output = 12.000
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "GLM-4.5"
|
||||
release_date = "2025-07-29"
|
||||
last_updated = "2025-07-29"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
|
||||
[cost]
|
||||
input = 0.286
|
||||
output = 1.142
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 98_304
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "GLM-4.5V"
|
||||
release_date = "2025-07-29"
|
||||
last_updated = "2025-07-29"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
|
||||
[cost]
|
||||
input = 0.290
|
||||
output = 0.860
|
||||
|
||||
[limit]
|
||||
context = 64_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "glm-4.6"
|
||||
release_date = "2025-09-30"
|
||||
last_updated = "2025-09-30"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
|
||||
[cost]
|
||||
input = 0.286
|
||||
output = 1.142
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "GLM-4.6V"
|
||||
release_date = "2025-12-08"
|
||||
last_updated = "2025-12-08"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
|
||||
[cost]
|
||||
input = 0.145
|
||||
output = 0.430
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "glm-4.7"
|
||||
release_date = "2025-12-22"
|
||||
last_updated = "2025-12-22"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-06"
|
||||
|
||||
[cost]
|
||||
input = 0.286
|
||||
output = 1.142
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "gpt-4.1-mini"
|
||||
family = "gpt-mini"
|
||||
release_date = "2025-04-14"
|
||||
last_updated = "2025-04-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-04"
|
||||
|
||||
[cost]
|
||||
input = 0.400
|
||||
output = 1.600
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "gpt-4.1-nano"
|
||||
family = "gpt-nano"
|
||||
release_date = "2025-04-14"
|
||||
last_updated = "2025-04-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-04"
|
||||
|
||||
[cost]
|
||||
input = 0.100
|
||||
output = 0.400
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "gpt-4.1"
|
||||
family = "gpt"
|
||||
release_date = "2025-04-14"
|
||||
last_updated = "2025-04-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-04"
|
||||
|
||||
[cost]
|
||||
input = 2.000
|
||||
output = 8.000
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "gpt-4o"
|
||||
family = "gpt"
|
||||
release_date = "2024-05-13"
|
||||
last_updated = "2024-05-13"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2023-09"
|
||||
|
||||
[cost]
|
||||
input = 2.500
|
||||
output = 10.000
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gpt-5-mini"
|
||||
release_date = "2025-08-08"
|
||||
last_updated = "2025-08-08"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
|
||||
[cost]
|
||||
input = 0.250
|
||||
output = 2.000
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gpt-5-pro"
|
||||
release_date = "2025-10-08"
|
||||
last_updated = "2025-10-08"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
|
||||
[cost]
|
||||
input = 15.000
|
||||
output = 120.000
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
output = 272_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gpt-5-thinking"
|
||||
release_date = "2025-08-08"
|
||||
last_updated = "2025-08-08"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
|
||||
[cost]
|
||||
input = 1.250
|
||||
output = 10.000
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gpt-5.1-chat-latest"
|
||||
release_date = "2025-11-14"
|
||||
last_updated = "2025-11-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
|
||||
[cost]
|
||||
input = 1.250
|
||||
output = 10.000
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gpt-5.1"
|
||||
release_date = "2025-11-14"
|
||||
last_updated = "2025-11-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
|
||||
[cost]
|
||||
input = 1.250
|
||||
output = 10.000
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gpt-5.2-chat-latest"
|
||||
release_date = "2025-12-12"
|
||||
last_updated = "2025-12-12"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
|
||||
[cost]
|
||||
input = 1.750
|
||||
output = 14.000
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gpt-5.2"
|
||||
release_date = "2025-12-12"
|
||||
last_updated = "2025-12-12"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
|
||||
[cost]
|
||||
input = 1.750
|
||||
output = 14.000
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "gpt-5"
|
||||
release_date = "2025-08-08"
|
||||
last_updated = "2025-08-08"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
|
||||
[cost]
|
||||
input = 1.250
|
||||
output = 10.000
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "grok-4-1-fast-non-reasoning"
|
||||
release_date = "2025-11-20"
|
||||
last_updated = "2025-11-20"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-06"
|
||||
|
||||
[cost]
|
||||
input = 0.200
|
||||
output = 0.500
|
||||
|
||||
[limit]
|
||||
context = 2_000_000
|
||||
output = 30_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "grok-4-1-fast-reasoning"
|
||||
release_date = "2025-11-20"
|
||||
last_updated = "2025-11-20"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-06"
|
||||
|
||||
[cost]
|
||||
input = 0.200
|
||||
output = 0.500
|
||||
|
||||
[limit]
|
||||
context = 2_000_000
|
||||
output = 30_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "grok-4-fast-non-reasoning"
|
||||
release_date = "2025-09-23"
|
||||
last_updated = "2025-09-23"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-06"
|
||||
|
||||
[cost]
|
||||
input = 0.200
|
||||
output = 0.500
|
||||
|
||||
[limit]
|
||||
context = 2_000_000
|
||||
output = 30_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "grok-4-fast-reasoning"
|
||||
release_date = "2025-09-23"
|
||||
last_updated = "2025-09-23"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-06"
|
||||
|
||||
[cost]
|
||||
input = 0.200
|
||||
output = 0.500
|
||||
|
||||
[limit]
|
||||
context = 2_000_000
|
||||
output = 30_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "grok-4.1"
|
||||
release_date = "2025-11-18"
|
||||
last_updated = "2025-11-18"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-06"
|
||||
|
||||
[cost]
|
||||
input = 2.000
|
||||
output = 10.000
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "kimi-k2-thinking-turbo"
|
||||
release_date = "2025-09-05"
|
||||
last_updated = "2025-09-05"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-06"
|
||||
|
||||
[cost]
|
||||
input = 1.265
|
||||
output = 9.119
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 262_144
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "kimi-k2-thinking"
|
||||
release_date = "2025-09-05"
|
||||
last_updated = "2025-09-05"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-06"
|
||||
|
||||
[cost]
|
||||
input = 0.575
|
||||
output = 2.300
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 262_144
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "ministral-14b-2512"
|
||||
release_date = "2025-12-16"
|
||||
last_updated = "2025-12-16"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-12"
|
||||
|
||||
[cost]
|
||||
input = 0.330
|
||||
output = 0.330
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "mistral-large-2512"
|
||||
release_date = "2025-12-16"
|
||||
last_updated = "2025-12-16"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-12"
|
||||
|
||||
[cost]
|
||||
input = 1.100
|
||||
output = 3.300
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 262_144
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "Qwen-Max-Latest"
|
||||
family = "qwen"
|
||||
release_date = "2024-04-03"
|
||||
last_updated = "2025-01-25"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-11"
|
||||
|
||||
[cost]
|
||||
input = 0.343
|
||||
output = 1.372
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "Qwen-Plus"
|
||||
family = "qwen"
|
||||
release_date = "2024-07-23"
|
||||
last_updated = "2024-07-23"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
|
||||
[cost]
|
||||
input = 0.120
|
||||
output = 1.200
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "Qwen3-235B-A22B"
|
||||
family = "qwen"
|
||||
release_date = "2025-04-29"
|
||||
last_updated = "2025-04-29"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-04"
|
||||
|
||||
[cost]
|
||||
input = 0.290
|
||||
output = 2.860
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "Qwen3-30B-A3B"
|
||||
family = "qwen"
|
||||
release_date = "2025-04-29"
|
||||
last_updated = "2025-04-29"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-04"
|
||||
|
||||
[cost]
|
||||
input = 0.110
|
||||
output = 1.080
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "qwen3-max-2025-09-23"
|
||||
release_date = "2025-09-24"
|
||||
last_updated = "2025-09-24"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-04"
|
||||
|
||||
[cost]
|
||||
input = 0.860
|
||||
output = 3.430
|
||||
|
||||
[limit]
|
||||
context = 258_048
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,5 +0,0 @@
|
||||
name = "302.AI"
|
||||
env = ["302AI_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
doc = "https://doc.302.ai"
|
||||
api = "https://api.302.ai/v1"
|
||||
@@ -1,14 +0,0 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M6.93433 9.57807C6.93433 8.92952 7.46008 8.40376 8.10864 8.40376C8.75719 8.40376 9.28295 8.92952 9.28295 9.57807V16.6239C9.28295 17.2725 8.75719 17.7983 8.10864 17.7983C7.46008 17.7983 6.93433 17.2725 6.93433 16.6239V9.57807Z" />
|
||||
<path d="M30.7144 25.1377C30.7144 24.4891 31.2402 23.9634 31.8887 23.9634C32.5373 23.9634 33.063 24.4891 33.063 25.1377V31.0092C33.063 31.6578 32.5373 32.1836 31.8887 32.1836C31.2402 32.1836 30.7144 31.6578 30.7144 31.0093V25.1377Z" />
|
||||
<path d="M22.7875 30.422C22.7875 29.7735 23.3132 29.2477 23.9618 29.2477C24.6103 29.2477 25.1361 29.7735 25.1361 30.422V34.8257C25.1361 35.4742 24.6103 36 23.9618 36C23.3132 36 22.7875 35.4742 22.7875 34.8257V30.422Z" />
|
||||
<path d="M6.93433 28.367C6.93433 27.7185 7.46008 27.1927 8.10864 27.1927C8.75719 27.1927 9.28295 27.7185 9.28295 28.367V31.5964C9.28295 32.245 8.75719 32.7707 8.10864 32.7707C7.46008 32.7707 6.93433 32.245 6.93433 31.5964V28.367Z" />
|
||||
<path d="M14.8617 5.46787C14.8617 4.81931 15.3874 4.29355 16.036 4.29355C16.6845 4.29355 17.2103 4.81931 17.2103 5.46787V9.87153C17.2103 10.5201 16.6845 11.0458 16.036 11.0458C15.3874 11.0458 14.8617 10.5201 14.8617 9.87153V5.46787Z" />
|
||||
<path d="M30.7144 9.28437C30.7144 8.63582 31.2402 8.11006 31.8887 8.11006C32.5373 8.11006 33.063 8.63582 33.063 9.28437V13.688C33.063 14.3366 32.5373 14.8623 31.8887 14.8623C31.2402 14.8623 30.7144 14.3366 30.7144 13.688V9.28437Z" />
|
||||
<path d="M22.7875 5.17431C22.7875 4.52576 23.3132 4 23.9618 4C24.6103 4 25.1361 4.52576 25.1361 5.17431V18.3853C25.1361 19.0339 24.6103 19.5596 23.9618 19.5596C23.3132 19.5596 22.7875 19.0339 22.7875 18.3853V5.17431Z" />
|
||||
<path d="M14.8617 21.3212C14.8617 20.6726 15.3874 20.1469 16.036 20.1469C16.6845 20.1469 17.2103 20.6726 17.2103 21.3212V34.5322C17.2103 35.1807 16.6845 35.7065 16.036 35.7065C15.3874 35.7065 14.8617 35.1807 14.8617 34.5322V21.3212Z" />
|
||||
<path d="M10.4577 21.9083C10.4577 23.2055 9.40623 24.257 8.10912 24.257C6.81201 24.257 5.7605 23.2055 5.7605 21.9083C5.7605 20.6112 6.81201 19.5597 8.10912 19.5597C9.40623 19.5597 10.4577 20.6112 10.4577 21.9083Z" />
|
||||
<path d="M18.3843 14.8624C18.3843 16.1596 17.3328 17.2111 16.0357 17.2111C14.7386 17.2111 13.6871 16.1596 13.6871 14.8624C13.6871 13.5653 14.7386 12.5138 16.0357 12.5138C17.3328 12.5138 18.3843 13.5653 18.3843 14.8624Z" />
|
||||
<path d="M26.3101 24.2569C26.3101 25.554 25.2586 26.6056 23.9615 26.6056C22.6644 26.6056 21.6128 25.554 21.6128 24.2569C21.6128 22.9598 22.6644 21.9083 23.9615 21.9083C25.2586 21.9083 26.3101 22.9598 26.3101 24.2569Z" />
|
||||
<path d="M34.2378 19.5597C34.2378 20.8568 33.1863 21.9083 31.8892 21.9083C30.5921 21.9083 29.5406 20.8568 29.5406 19.5597C29.5406 18.2626 30.5921 17.2111 31.8892 17.2111C33.1863 17.2111 34.2378 18.2626 34.2378 19.5597Z" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.8 KiB |
@@ -1,21 +0,0 @@
|
||||
name = "QwQ 32B"
|
||||
family = "qwen"
|
||||
release_date = "2024-11-28"
|
||||
last_updated = "2024-11-28"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.40
|
||||
output = 0.40
|
||||
|
||||
[limit]
|
||||
context = 32_768
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "Qwen 2.5 72B Instruct"
|
||||
family = "qwen"
|
||||
release_date = "2024-09-19"
|
||||
last_updated = "2024-09-19"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.11
|
||||
output = 0.38
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "Qwen3 235B A22B Instruct"
|
||||
family = "qwen"
|
||||
release_date = "2025-07-01"
|
||||
last_updated = "2025-07-01"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.13
|
||||
output = 0.60
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "Qwen3 32B"
|
||||
family = "qwen"
|
||||
release_date = "2025-04-29"
|
||||
last_updated = "2025-04-29"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.09
|
||||
output = 0.29
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "Qwen3 Coder 480B A35B Instruct"
|
||||
family = "qwen"
|
||||
release_date = "2025-07-22"
|
||||
last_updated = "2025-07-22"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.29
|
||||
output = 1.20
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "Claude Haiku 4.5"
|
||||
family = "claude-haiku"
|
||||
release_date = "2025-10-15"
|
||||
last_updated = "2025-10-15"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-02-28"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 1.00
|
||||
output = 5.00
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "Claude Opus 4.1"
|
||||
family = "claude-opus"
|
||||
release_date = "2025-08-05"
|
||||
last_updated = "2025-08-05"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 15.00
|
||||
output = 75.00
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "Claude Opus 4"
|
||||
family = "claude-opus"
|
||||
release_date = "2025-05-14"
|
||||
last_updated = "2025-05-14"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 15.00
|
||||
output = 75.00
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "Claude Opus 4.5"
|
||||
family = "claude-opus"
|
||||
release_date = "2025-11-01"
|
||||
last_updated = "2025-11-01"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-03-31"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 5.00
|
||||
output = 25.00
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "Claude Sonnet 4"
|
||||
family = "claude-sonnet"
|
||||
release_date = "2025-05-14"
|
||||
last_updated = "2025-05-14"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 3.00
|
||||
output = 15.00
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "Claude Sonnet 4.5"
|
||||
family = "claude-sonnet"
|
||||
release_date = "2025-09-29"
|
||||
last_updated = "2025-09-29"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-07-31"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 3.00
|
||||
output = 15.00
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "DeepSeek R1"
|
||||
family = "deepseek-thinking"
|
||||
release_date = "2025-01-20"
|
||||
last_updated = "2025-01-20"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 3.00
|
||||
output = 7.00
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "DeepSeek V3.1 Terminus"
|
||||
family = "deepseek"
|
||||
release_date = "2025-06-01"
|
||||
last_updated = "2025-06-01"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.27
|
||||
output = 1.00
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "DeepSeek V3.2"
|
||||
family = "deepseek"
|
||||
release_date = "2025-06-15"
|
||||
last_updated = "2025-06-15"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.27
|
||||
output = 0.40
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "DeepSeek V3.1"
|
||||
family = "deepseek"
|
||||
release_date = "2025-01-20"
|
||||
last_updated = "2025-01-20"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.14
|
||||
output = 0.28
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,17 +0,0 @@
|
||||
name = "Gemini 2.0 Pro Exp"
|
||||
family = "gemini-pro"
|
||||
release_date = "2025-02-05"
|
||||
last_updated = "2025-02-05"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 2_000_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "Gemini 2.5 Flash"
|
||||
family = "gemini-flash"
|
||||
release_date = "2025-03-20"
|
||||
last_updated = "2025-06-05"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.30
|
||||
output = 2.50
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "Gemini 2.5 Pro"
|
||||
family = "gemini-pro"
|
||||
release_date = "2025-03-25"
|
||||
last_updated = "2025-03-25"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 1.25
|
||||
output = 10.00
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "Gemini 3 Flash Preview"
|
||||
family = "gemini-flash"
|
||||
release_date = "2025-12-17"
|
||||
last_updated = "2025-12-17"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.50
|
||||
output = 3.00
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "Gemini 3 Pro Preview"
|
||||
family = "gemini-pro"
|
||||
release_date = "2025-06-01"
|
||||
last_updated = "2025-06-01"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 2.00
|
||||
output = 12.00
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 65_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "GPT-4.1 Mini"
|
||||
family = "gpt"
|
||||
release_date = "2025-04-14"
|
||||
last_updated = "2025-04-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-04"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.40
|
||||
output = 1.60
|
||||
|
||||
[limit]
|
||||
context = 1_047_576
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "GPT-4.1 Nano"
|
||||
family = "gpt"
|
||||
release_date = "2025-04-14"
|
||||
last_updated = "2025-04-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-04"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.10
|
||||
output = 0.40
|
||||
|
||||
[limit]
|
||||
context = 1_047_576
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "GPT-4o Mini"
|
||||
family = "gpt"
|
||||
release_date = "2024-07-18"
|
||||
last_updated = "2024-07-18"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-04"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.15
|
||||
output = 0.60
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "GPT-5 Mini"
|
||||
family = "gpt-mini"
|
||||
release_date = "2025-08-07"
|
||||
last_updated = "2025-08-07"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
knowledge = "2024-05-30"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.25
|
||||
output = 2.00
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
Loaded 100 of 2662 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user