Compare commits

..
Author SHA1 Message Date
Aiden Clineandopencode-agent[bot] bbbf80ea6d ci: run opencode on new issues
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-06-28 04:35:24 +00:00
616 changed files with 1121 additions and 2229 deletions

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
name: opencode-issue-fix
on:
issues:
types: [opened]
jobs:
opencode-issue-fix:
if: github.repository == 'anomalyco/models.dev'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
issues: read
pull-requests: read
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Run opencode
uses: anomalyco/opencode/github@2c14fc5586fe0b88e5c04732d2e846769cc35671 # latest
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
OPENCODE_PERMISSION: '{"bash": "deny"}'
with:
model: opencode/claude-opus-4-5
prompt: |
Fix the issue that was just opened.
Requirements:
- Implement the smallest correct change that addresses the issue.
- Do not use the bash/shell tool. The workflow denies it; use file read/edit tools instead.
- If there is not enough information to make a safe fix, explain what is missing instead of making speculative changes.
The GitHub Action will create a pull request if you modify files.
+17
View File
@@ -0,0 +1,17 @@
name = "Aion 2.0"
family = "o"
release_date = "2026-03-24"
last_updated = "2026-06-10"
attachment = false
reasoning = true
tool_call = false
temperature = true
open_weights = false
[limit]
context = 128000
output = 32768
[modalities]
input = ["text"]
output = ["text"]
@@ -0,0 +1,21 @@
name = "Trinity Large Thinking"
family = "trinity"
release_date = "2026-04-02"
last_updated = "2026-06-10"
attachment = false
reasoning = true
tool_call = true
structured_output = true
temperature = true
open_weights = true
[limit]
context = 256000
output = 65536
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/arcee-ai/Trinity-Large-Thinking-FP8-Block"
@@ -1,23 +1,22 @@
name = "DeepSeek V3.2"
family = "deepseek"
release_date = "2025-12-03"
last_updated = "2025-12-05"
release_date = "2025-12-04"
last_updated = "2026-06-10"
attachment = false
reasoning = true
tool_call = true
structured_output = true
temperature = true
tool_call = true
knowledge = "2025-01"
knowledge = "2025-10"
open_weights = true
[cost]
input = 0
output = 0
[limit]
context = 131_072
output = 65_536
context = 160000
output = 32768
[modalities]
input = ["text"]
output = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/deepseek-ai/DeepSeek-V3.2"
+20
View File
@@ -0,0 +1,20 @@
name = "Gemma 3 27B"
family = "gemma"
release_date = "2026-03-18"
last_updated = "2026-06-10"
attachment = false
reasoning = false
tool_call = false
temperature = true
open_weights = true
[limit]
context = 40000
output = 4096
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/google/gemma-3-27b-it"
@@ -1,20 +1,17 @@
name = "Wan2.7 Image"
release_date = "2026-05-29"
last_updated = "2026-05-29"
name = "Gemma 4 26B A4B Uncensored"
family = "gemma"
release_date = "2026-05-24"
last_updated = "2026-06-10"
attachment = false
reasoning = false
temperature = true
tool_call = false
open_weights = false
[cost]
input = 0
output = 0
[limit]
context = 8_192
output = 0
context = 64_000
output = 4_096
[modalities]
input = ["text"]
output = ["image"]
output = ["text"]
+20
View File
@@ -0,0 +1,20 @@
name = "Gemma 4 31B Instruct"
family = "gemma"
release_date = "2026-05-20"
last_updated = "2026-06-10"
attachment = false
reasoning = true
tool_call = false
temperature = true
open_weights = true
[limit]
context = 32000
output = 4096
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/google/gemma-4-31B-it"
@@ -1,22 +1,20 @@
name = "GPT OSS 120B"
family = "gpt-oss"
release_date = "2025-08-05"
last_updated = "2025-08-05"
release_date = "2026-03-18"
last_updated = "2026-06-10"
attachment = false
reasoning = true
tool_call = false
temperature = true
tool_call = true
structured_output = true
open_weights = true
[cost]
input = 0.072
output = 0.28
[limit]
context = 131_072
output = 32_768
context = 128000
output = 32768
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/openai/gpt-oss-120b"
@@ -1,22 +1,20 @@
name = "GPT OSS 20B"
family = "gpt-oss"
release_date = "2025-08-05"
last_updated = "2025-08-05"
release_date = "2026-03-18"
last_updated = "2026-06-10"
attachment = false
reasoning = true
tool_call = false
temperature = true
tool_call = true
structured_output = true
open_weights = true
[cost]
input = 0.05
output = 0.20
[limit]
context = 131_072
output = 32_768
context = 128000
output = 32768
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/openai/gpt-oss-20b"
+20
View File
@@ -0,0 +1,20 @@
name = "Qwen 2.5 7B"
family = "qwen"
release_date = "2026-03-18"
last_updated = "2026-06-10"
attachment = false
reasoning = false
tool_call = false
temperature = true
open_weights = true
[limit]
context = 32000
output = 4096
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/Qwen/Qwen2.5-7B-Instruct"
+20
View File
@@ -0,0 +1,20 @@
name = "Qwen3 30B A3B"
family = "qwen"
release_date = "2026-03-18"
last_updated = "2026-06-10"
attachment = false
reasoning = false
tool_call = true
temperature = true
open_weights = true
[limit]
context = 256000
output = 32768
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/Qwen/Qwen3-30B-A3B-Instruct-2507"
@@ -0,0 +1,17 @@
name = "Qwen3.6 35B A3B Uncensored"
family = "qwen3.6"
release_date = "2026-05-24"
last_updated = "2026-06-10"
attachment = false
reasoning = false
temperature = true
tool_call = false
open_weights = false
[limit]
context = 128_000
output = 4_096
[modalities]
input = ["text"]
output = ["text"]
+20
View File
@@ -0,0 +1,20 @@
name = "Qwen 3.6 35B A3B FP8"
family = "qwen"
release_date = "2026-05-20"
last_updated = "2026-06-10"
attachment = false
reasoning = true
temperature = true
tool_call = true
open_weights = true
[limit]
context = 32_000
output = 4_096
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/Qwen/Qwen3.6-35B-A3B-FP8"
@@ -0,0 +1,20 @@
name = "Qwen3 VL 30B A3B"
family = "qwen"
release_date = "2026-03-18"
last_updated = "2026-06-10"
attachment = true
reasoning = false
tool_call = true
temperature = true
open_weights = true
[limit]
context = 128000
output = 4096
[modalities]
input = ["text", "image"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/Qwen/Qwen3-VL-30B-A3B-Instruct"
@@ -0,0 +1,20 @@
name = "Venice Uncensored 1.1"
family = "venice"
release_date = "2026-03-18"
last_updated = "2026-06-10"
attachment = false
reasoning = false
tool_call = false
temperature = true
open_weights = true
[limit]
context = 32000
output = 4096
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/cognitivecomputations/Dolphin-Mistral-24B-Venice-Edition"
+21
View File
@@ -0,0 +1,21 @@
name = "Gemma 4 Uncensored"
family = "gemma"
release_date = "2026-04-13"
last_updated = "2026-06-10"
attachment = true
reasoning = false
temperature = true
tool_call = true
structured_output = true
open_weights = true
[limit]
context = 256_000
output = 8_192
[modalities]
input = ["text", "image"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/Jiunsong/supergemma4-26b-uncensored-gguf-v2"
+22
View File
@@ -0,0 +1,22 @@
name = "Google Gemma 3 27B Instruct"
family = "gemma"
release_date = "2025-11-04"
last_updated = "2026-06-10"
attachment = true
reasoning = false
temperature = true
tool_call = true
structured_output = true
knowledge = "2025-07"
open_weights = true
[limit]
context = 198_000
output = 16_384
[modalities]
input = ["text", "image"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/google/gemma-3-27b-it"
+18
View File
@@ -0,0 +1,18 @@
name = "Grok 4.20 Multi-Agent"
family = "grok"
release_date = "2026-03-12"
last_updated = "2026-06-10"
attachment = true
reasoning = true
temperature = true
tool_call = false
structured_output = true
open_weights = false
[limit]
context = 2_000_000
output = 128_000
[modalities]
input = ["text", "image"]
output = ["text"]
@@ -1,16 +1,17 @@
name = "Anthropic Claude Fable 5"
family = "claude-fable"
release_date = "2026-06-09"
last_updated = "2026-06-12"
name = "Grok 4.20"
family = "grok"
release_date = "2026-03-12"
last_updated = "2026-06-10"
attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
temperature = true
open_weights = false
[limit]
context = 1_000_000
output = 128_000
context = 2000000
output = 128000
[modalities]
input = ["text", "image"]
@@ -0,0 +1,21 @@
name = "Hermes 3 Llama 3.1 405b"
family = "hermes"
release_date = "2025-09-25"
last_updated = "2026-06-10"
attachment = false
reasoning = false
temperature = true
tool_call = false
knowledge = "2024-04"
open_weights = true
[limit]
context = 128_000
output = 16_384
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/NousResearch/Hermes-3-Llama-3.1-405B"
+21
View File
@@ -0,0 +1,21 @@
name = "Llama 3.2 3B"
family = "llama"
release_date = "2024-10-03"
last_updated = "2026-06-10"
attachment = false
reasoning = false
temperature = true
tool_call = true
knowledge = "2023-12"
open_weights = true
[limit]
context = 128_000
output = 4_096
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/meta-llama/Llama-3.2-3B"
+21
View File
@@ -0,0 +1,21 @@
name = "Llama 3.3 70B"
family = "llama"
release_date = "2025-04-06"
last_updated = "2026-06-10"
attachment = false
reasoning = false
temperature = true
tool_call = true
knowledge = "2023-12"
open_weights = true
[limit]
context = 128_000
output = 4_096
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/meta-llama/Llama-3.3-70B-Instruct"
+18
View File
@@ -0,0 +1,18 @@
name = "Mercury 2"
family = "mercury"
release_date = "2026-02-20"
last_updated = "2026-06-10"
attachment = false
reasoning = true
tool_call = true
structured_output = true
temperature = true
open_weights = false
[limit]
context = 128000
output = 50000
[modalities]
input = ["text"]
output = ["text"]
@@ -0,0 +1,21 @@
name = "Mistral Small 3.2 24B Instruct"
family = "mistral-small"
release_date = "2026-01-15"
last_updated = "2026-06-10"
attachment = false
reasoning = false
temperature = true
tool_call = true
structured_output = true
open_weights = true
[limit]
context = 256_000
output = 16_384
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/mistralai/Mistral-Small-3.2-24B-Instruct-2506"
@@ -0,0 +1,21 @@
name = "GLM 4.7 Flash Heretic"
family = "glm"
release_date = "2026-02-04"
last_updated = "2026-06-10"
attachment = false
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = true
[limit]
context = 200_000
output = 24_000
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/Olafangensan/GLM-4.7-Flash-heretic"
+21
View File
@@ -0,0 +1,21 @@
name = "OpenAI GPT OSS 120B"
family = "gpt-oss"
release_date = "2025-11-06"
last_updated = "2026-06-10"
attachment = false
reasoning = true
tool_call = true
temperature = true
knowledge = "2025-07"
open_weights = true
[limit]
context = 128000
output = 16384
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/openai/gpt-oss-120b"
@@ -0,0 +1,22 @@
name = "Qwen 3 235B A22B Instruct 2507"
family = "qwen"
release_date = "2025-04-29"
last_updated = "2026-06-10"
attachment = false
reasoning = false
temperature = true
tool_call = true
structured_output = true
knowledge = "2025-07"
open_weights = true
[limit]
context = 128_000
output = 16_384
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/Qwen/Qwen3-235B-A22B-Instruct-2507-FP8"
@@ -0,0 +1,22 @@
name = "Qwen 3 235B A22B Thinking 2507"
family = "qwen"
release_date = "2025-04-29"
last_updated = "2026-06-10"
attachment = false
reasoning = true
temperature = true
tool_call = true
structured_output = true
knowledge = "2025-07"
open_weights = true
[limit]
context = 128_000
output = 16_384
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/Qwen/Qwen3-235B-A22B-Thinking-2507-FP8"
@@ -1,23 +1,21 @@
name = "Qwen3.5 9B"
name = "Qwen 3.5 9B"
family = "qwen"
release_date = "2026-03-03"
last_updated = "2026-03-03"
release_date = "2026-03-05"
last_updated = "2026-06-10"
attachment = true
reasoning = true
reasoning_options = [{ type = "toggle" }]
temperature = true
tool_call = true
structured_output = true
open_weights = true
[cost]
input = 0.17
output = 0.25
[limit]
context = 262_144
output = 65_536
context = 256_000
output = 32_768
[modalities]
input = ["text", "image"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/Qwen/Qwen3.5-9B"
@@ -0,0 +1,21 @@
name = "Qwen 3 Coder 480B Turbo"
family = "qwen"
release_date = "2026-01-27"
last_updated = "2026-06-10"
attachment = false
reasoning = false
temperature = true
tool_call = true
structured_output = true
open_weights = true
[limit]
context = 256_000
output = 65_536
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/Qwen/Qwen3-Coder-480B-A35B-Instruct-Turbo"
+22
View File
@@ -0,0 +1,22 @@
name = "Qwen 3 Next 80b"
family = "qwen"
release_date = "2025-04-29"
last_updated = "2026-06-10"
attachment = false
reasoning = false
temperature = true
tool_call = true
structured_output = true
knowledge = "2025-07"
open_weights = true
[limit]
context = 256_000
output = 16_384
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/Qwen/Qwen3-Next-80B-A3B-Instruct"
+21
View File
@@ -0,0 +1,21 @@
name = "Qwen3 VL 235B"
family = "qwen3.5"
release_date = "2026-01-16"
last_updated = "2026-06-10"
attachment = true
reasoning = false
temperature = true
tool_call = true
structured_output = true
open_weights = true
[limit]
context = 256_000
output = 16_384
[modalities]
input = ["text", "image"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/Qwen/Qwen3-VL-235B-A22B-Instruct"
+21
View File
@@ -0,0 +1,21 @@
name = "Venice Uncensored 1.2"
family = "venice"
release_date = "2026-04-01"
last_updated = "2026-06-10"
attachment = true
reasoning = false
temperature = true
tool_call = true
structured_output = true
open_weights = true
[limit]
context = 128_000
output = 8_192
[modalities]
input = ["text", "image"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/cognitivecomputations/Dolphin-Mistral-24B-Venice-Edition"
@@ -0,0 +1,21 @@
name = "Venice Role Play Uncensored"
family = "venice"
release_date = "2026-02-20"
last_updated = "2026-06-10"
attachment = true
reasoning = false
temperature = true
tool_call = true
structured_output = true
open_weights = true
[limit]
context = 128_000
output = 4_096
[modalities]
input = ["text", "image"]
output = ["text"]
[[weights]]
url = "https://huggingface.co/dphnAI/24B-3.2-RP-K2-final"
+3 -28
View File
@@ -51,7 +51,6 @@ export interface SyncProvider<SourceModel> {
skipCreates?: boolean;
deleteMissing?: boolean;
preserveSymlinks?: boolean;
preserveBaseModels?: boolean;
sameModel?(current: ExistingModel, desired: SyncedModel): boolean;
missingNotice?(paths: string[]): string[];
sourceID?(model: SourceModel): string;
@@ -119,9 +118,7 @@ export async function syncProvider<SourceModel>(
): Promise<SyncResult> {
console.log(`\nSyncing ${provider.name}...`);
const existingState = await readExisting(provider.modelsDir);
const { models: existing, brokenSymlinks } = existingState;
let { modelMetadata } = existingState;
const { models: existing, brokenSymlinks } = await readExisting(provider.modelsDir);
const sourceModels = provider.parseModels(await provider.fetchModels());
const desired = new Map<string, { model: z.infer<typeof SyncedAuthoredModel>; content: string }>();
const desiredMetadata = new Map<string, { model: z.infer<typeof ModelMetadata>; content: string }>();
@@ -165,28 +162,11 @@ export async function syncProvider<SourceModel>(
});
}
const translatedModel = provider.preserveBaseModels === false
? translated.model
: preserveBaseModel(translated.model, existing.get(relativePath)?.authored);
const translatedBase = "base_model" in translatedModel ? translatedModel.base_model : undefined;
let resolvedReasoning: boolean | undefined;
if (translatedBase !== undefined) {
if (translated.metadata?.id === translatedBase) {
resolvedReasoning = translated.metadata.model.reasoning;
} else {
modelMetadata ??= await readModelMetadata(provider.modelsDir);
const canonicalReasoning = modelMetadata[translatedBase]?.reasoning;
resolvedReasoning = typeof canonicalReasoning === "boolean" ? canonicalReasoning : undefined;
}
} else {
resolvedReasoning = existing.get(relativePath)?.toml.reasoning;
}
const parsed = SyncedAuthoredModel.safeParse(stripUndefined({
id: translated.id,
...preserveReasoningOptions(
translatedModel,
preserveBaseModel(translated.model, existing.get(relativePath)?.authored),
existing.get(relativePath)?.authored,
resolvedReasoning,
),
}));
if (!parsed.success) {
@@ -336,12 +316,7 @@ export function preserveBaseModel(model: SyncedModel, existing: ExistingModel |
export function preserveReasoningOptions(
model: SyncedModel,
existing: ExistingModel | undefined,
resolvedReasoning: boolean | undefined = existing?.reasoning,
): SyncedModel {
if ((model.reasoning ?? resolvedReasoning) === false) {
const { reasoning_options: _reasoningOptions, ...withoutReasoningOptions } = model;
return withoutReasoningOptions as SyncedModel;
}
if (model.reasoning_options !== undefined || existing?.reasoning_options === undefined) return model;
return {
...model,
@@ -414,7 +389,7 @@ async function readExisting(modelsDir: string) {
existing.set(file, { authored, toml, symlink });
}
return { models: existing, brokenSymlinks, modelMetadata };
return { models: existing, brokenSymlinks };
}
async function isSymlink(filePath: string) {
@@ -121,7 +121,6 @@ export function buildOvhcloudModel(
last_updated: lastUpdated,
attachment,
reasoning,
reasoning_options: reasoning ? existing?.reasoning_options : undefined,
temperature: temperature || undefined,
tool_call: toolCall,
structured_output: structuredOutput || undefined,
+35 -8
View File
@@ -3,7 +3,7 @@ import path from "node:path";
import { z } from "zod";
import { ModelFamilyValues } from "../../family.js";
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedMetadata, SyncedModel } from "../index.js";
import { factorBaseModel } from "./openrouter.js";
const API_ENDPOINT = "https://api.venice.ai/api/v1/models?type=text";
@@ -11,7 +11,6 @@ const MODELS_DIR = path.join(import.meta.dirname, "..", "..", "..", "..", "..",
const Capabilities = z.object({
supportsAudioInput: z.boolean().optional(),
supportsE2EE: z.boolean().optional(),
supportsFunctionCalling: z.boolean().optional(),
supportsReasoning: z.boolean().optional(),
supportsReasoningEffort: z.boolean().optional(),
@@ -83,7 +82,7 @@ export const venice = {
id: "venice",
name: "Venice",
modelsDir: "providers/venice/models",
preserveBaseModels: false,
metadataNamespace: "venice",
async fetchModels() {
const headers = process.env.VENICE_API_KEY
? { Authorization: `Bearer ${process.env.VENICE_API_KEY}` }
@@ -98,14 +97,20 @@ export const venice = {
return VeniceResponse.parse(raw).data;
},
translateModel(model, context) {
if (model.model_spec.capabilities.supportsE2EE === true) return undefined;
const id = model.id.replaceAll("/", "-");
const existing = context.existing(id);
const existingBase = existing?.base_model?.startsWith("venice/") === false ? existing.base_model : undefined;
const resolvedBase = existingBase ?? resolveVeniceBaseModel(model.id, model.model_spec.name);
const resolvedBase = existing?.base_model ?? resolveVeniceBaseModel(model.id, model.model_spec.name);
const baseModel = resolvedBase ?? `venice/${id}`;
const full = buildVeniceModel(model, existing, null);
const metadata = baseModel.startsWith("venice/")
? { id: baseModel, model: buildVeniceMetadata(full, model.model_spec.modelSource) }
: undefined;
return {
id,
model: buildVeniceModel(model, existing, resolvedBase ?? null),
model: resolvedBase === undefined
? factorNewMetadata(baseModel, full)
: buildVeniceModel(model, existing, baseModel),
metadata,
};
},
} satisfies SyncProvider<VeniceModel>;
@@ -161,7 +166,7 @@ export function buildVeniceModel(
reasoning_options: reasoningOptions,
tool_call: capabilities.supportsFunctionCalling === true,
structured_output: capabilities.supportsResponseSchema === true ? true : undefined,
temperature: undefined,
temperature: true,
cost,
limit,
modalities: { input: [...new Set(input)], output: ["text" as const] },
@@ -240,6 +245,28 @@ function inferFamily(id: string, name: string) {
});
}
function buildVeniceMetadata(model: SyncedModel, source: string | undefined): SyncedMetadata {
if ("base_model" in model) throw new Error("Cannot build Venice metadata from a factored model");
const { cost: _cost, reasoning_options: _reasoningOptions, interleaved: _interleaved, status: _status, ...metadata } = model;
return {
...metadata,
weights: model.open_weights && source?.startsWith("https://huggingface.co/")
? [{ url: source }]
: undefined,
};
}
function factorNewMetadata(baseModel: string, model: SyncedModel): SyncedModel {
if ("base_model" in model) return model;
return {
base_model: baseModel,
reasoning_options: model.reasoning_options,
cost: model.cost,
status: model.status,
interleaved: model.interleaved,
};
}
function stable(value: unknown): string {
if (Array.isArray(value)) return `[${value.map(stable).sort().join(",")}]`;
if (value !== null && typeof value === "object") {
+3 -27
View File
@@ -5,7 +5,6 @@ import path from "node:path";
import {
buildVeniceModel,
resolveVeniceBaseModel,
venice,
VeniceResponse,
type VeniceModel,
} from "../src/sync/providers/venice.js";
@@ -62,25 +61,6 @@ test("Venice emits empty reasoning options when efforts are unavailable", () =>
expect(synced).toMatchObject({ reasoning: true, reasoning_options: [] });
});
test("Venice does not infer temperature support", () => {
const synced = buildVeniceModel(catalogModel, undefined, null, "2026-06-10");
expect(synced.temperature).toBeUndefined();
});
test("Venice skips E2EE models", () => {
const translated = venice.translateModel({
...catalogModel,
id: "e2ee-test-model",
model_spec: {
...catalogModel.model_spec,
capabilities: { ...catalogModel.model_spec.capabilities, supportsE2EE: true },
},
}, { existing: () => undefined });
expect(translated).toBeUndefined();
});
test("Venice uses boundary-aware family matching", () => {
const synced = buildVeniceModel({
...catalogModel,
@@ -128,7 +108,6 @@ test("Venice maps API fields and keeps inherited models compact", () => {
expect(synced).not.toHaveProperty("release_date");
expect(synced).not.toHaveProperty("open_weights");
expect(synced).not.toHaveProperty("modalities");
expect(synced).not.toHaveProperty("temperature");
});
test("Venice preserves last_updated when authoritative data is unchanged", () => {
@@ -148,7 +127,7 @@ test("Venice rejects malformed responses", () => {
expect(() => VeniceResponse.parse({ data: [{ id: "broken" }] })).toThrow();
});
test("Venice models use only canonical metadata and declare reasoning options", async () => {
test("all Venice models use metadata inheritance and declare reasoning options", async () => {
const root = path.join(import.meta.dirname, "..", "..", "..");
const modelsDir = path.join(root, "providers", "venice", "models");
@@ -157,11 +136,8 @@ test("Venice models use only canonical metadata and declare reasoning options",
base_model?: string;
reasoning_options?: unknown[];
};
expect(model.base_model, file).toBeDefined();
expect(model.reasoning_options, file).toBeDefined();
if (model.base_model !== undefined) {
expect(model.base_model.startsWith("venice/"), file).toBe(false);
expect(await Bun.file(path.join(root, "models", `${model.base_model}.toml`)).exists(), file).toBe(true);
}
expect(file.startsWith("e2ee-"), file).toBe(false);
expect(await Bun.file(path.join(root, "models", `${model.base_model}.toml`)).exists(), file).toBe(true);
}
});
@@ -1,7 +0,0 @@
base_model = "alibaba/qwen3.7-plus"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
@@ -1,15 +0,0 @@
base_model = "minimax/MiniMax-M2.5"
[interleaved]
field = "reasoning_content"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
[limit]
context = 196_608
input = 196_601
output = 24_576
@@ -1,9 +0,0 @@
base_model = "deepseek/deepseek-v4-flash"
[interleaved]
field = "reasoning_content"
[cost]
input = 0
output = 0
cache_read = 0
@@ -1,9 +0,0 @@
base_model = "deepseek/deepseek-v4-pro"
[interleaved]
field = "reasoning_content"
[cost]
input = 0
output = 0
cache_read = 0
@@ -1,14 +0,0 @@
base_model = "zhipuai/glm-5.1"
[interleaved]
field = "reasoning_content"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
[limit]
context = 202_752
output = 128_000
@@ -1,15 +0,0 @@
base_model = "zhipuai/glm-5"
open_weights = false
[interleaved]
field = "reasoning_content"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
[limit]
context = 202_752
output = 16_384
@@ -1,17 +0,0 @@
base_model = "moonshotai/kimi-k2.5"
base_model_omit = ["structured_output"]
family = "kimi"
attachment = true
temperature = true
[interleaved]
field = "reasoning_content"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
[limit]
output = 32_768
@@ -1,15 +0,0 @@
base_model = "moonshotai/kimi-k2.6"
base_model_omit = ["structured_output"]
family = "kimi"
[interleaved]
field = "reasoning_content"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
[limit]
output = 16_384
@@ -1,21 +0,0 @@
name = "Qwen Image 2.0 Pro"
family = "qwen"
release_date = "2026-03-03"
last_updated = "2026-03-03"
attachment = false
reasoning = false
temperature = true
tool_call = false
open_weights = false
[cost]
input = 0
output = 0
[limit]
context = 8_192
output = 0
[modalities]
input = ["text"]
output = ["image"]
@@ -1,21 +0,0 @@
name = "Qwen Image 2.0"
family = "qwen"
release_date = "2026-03-03"
last_updated = "2026-03-03"
attachment = false
reasoning = false
temperature = true
tool_call = false
open_weights = false
[cost]
input = 0
output = 0
[limit]
context = 8_192
output = 0
[modalities]
input = ["text"]
output = ["image"]
@@ -1,7 +0,0 @@
base_model = "alibaba/qwen3.6-flash"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
@@ -1,7 +0,0 @@
base_model = "alibaba/qwen3.6-plus"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
@@ -1,7 +0,0 @@
base_model = "alibaba/qwen3.7-max"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
@@ -1,7 +0,0 @@
base_model = "alibaba/qwen3.7-plus"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
@@ -1,20 +0,0 @@
name = "Wan2.7 Image Pro"
release_date = "2026-05-29"
last_updated = "2026-05-29"
attachment = false
reasoning = false
temperature = true
tool_call = false
open_weights = false
[cost]
input = 0
output = 0
[limit]
context = 8_192
output = 0
[modalities]
input = ["text"]
output = ["image"]
@@ -1,5 +0,0 @@
name = "Alibaba Token Plan (China)"
env = ["ALIBABA_TOKEN_PLAN_API_KEY"]
npm = "@ai-sdk/openai-compatible"
doc = "https://www.alibabacloud.com/help/zh/model-studio/token-plan-overview"
api = "https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1"
@@ -1,7 +0,0 @@
base_model = "alibaba/qwen3.7-plus"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
-1
View File
@@ -4,7 +4,6 @@ release_date = "2025-10"
last_updated = "2025-10"
attachment = false
reasoning = true
reasoning_options = []
temperature = true
knowledge = "2024-06"
tool_call = false
+4 -6
View File
@@ -1,22 +1,20 @@
name = "GPT OSS 120B"
family = "gpt-oss"
release_date = "2025-08-05"
last_updated = "2026-06-10"
last_updated = "2025-08-05"
attachment = false
reasoning = true
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
temperature = true
tool_call = true
open_weights = true
structured_output = true
[cost]
input = 0.35
output = 0.75
input = 0.25
output = 0.69
[limit]
context = 131_072
output = 40_960
output = 32_768
[modalities]
input = ["text"]
@@ -0,0 +1,23 @@
name = "Llama 3.1 8B"
family = "llama"
release_date = "2025-01-01"
last_updated = "2026-05-27"
attachment = false
reasoning = false
temperature = true
knowledge = "2023-12"
tool_call = true
open_weights = true
status = "deprecated"
[cost]
input = 0.10
output = 0.10
[limit]
context = 32_000
output = 8000
[modalities]
input = ["text"]
output = ["text"]
+4 -7
View File
@@ -1,14 +1,11 @@
name = "Z.AI GLM-4.7"
release_date = "2026-01-07"
last_updated = "2026-06-10"
release_date = "2026-01-10"
last_updated = "2026-01-10"
attachment = false
reasoning = true
reasoning_options = [{ type = "effort", values = ["none"] }]
reasoning = false
temperature = true
tool_call = true
open_weights = true
structured_output = true
status = "beta"
[cost]
input = 2.25
@@ -18,7 +15,7 @@ cache_write = 0
[limit]
context = 131_072
output = 40_960
output = 40_000
[modalities]
input = ["text"]
@@ -4,7 +4,6 @@ release_date = "2025-12"
last_updated = "2026-02-25"
attachment = false
reasoning = true
reasoning_options = []
temperature = true
tool_call = true
knowledge = "2024-10"
@@ -4,7 +4,6 @@ release_date = "2026-02-12"
last_updated = "2026-02-25"
attachment = false
reasoning = true
reasoning_options = []
temperature = true
tool_call = true
open_weights = true
@@ -4,7 +4,6 @@ release_date = "2025-12-01"
last_updated = "2025-12-12"
attachment = true
reasoning = true
reasoning_options = []
temperature = true
tool_call = true
knowledge = "2025-12"
@@ -4,7 +4,6 @@ release_date = "2025-12"
last_updated = "2026-02-25"
attachment = true
reasoning = true
reasoning_options = []
temperature = true
tool_call = true
open_weights = true
@@ -1,5 +1,4 @@
base_model = "moonshotai/kimi-k2.6"
reasoning_options = []
[interleaved]
field = "reasoning_content"
@@ -4,7 +4,6 @@ release_date = "2025-08-05"
last_updated = "2026-02-25"
attachment = false
reasoning = true
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
temperature = true
tool_call = true
open_weights = true
@@ -4,7 +4,6 @@ release_date = "2025-08-05"
last_updated = "2025-12-12"
attachment = false
reasoning = true
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
temperature = true
tool_call = true
open_weights = true
@@ -4,7 +4,6 @@ release_date = "2025-07-31"
last_updated = "2026-02-25"
attachment = false
reasoning = true
reasoning_options = []
temperature = true
tool_call = true
structured_output = true
@@ -3,7 +3,6 @@ release_date = "2026-05-12"
last_updated = "2026-06-02"
attachment = true
reasoning = true
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
tool_call = true
open_weights = false
knowledge = "2026-05"
@@ -1,8 +0,0 @@
base_model = "anthropic/claude-opus-4-8"
[cost]
input = 5.64
output = 28.198
cache_read = 0.563
cache_write = 7.049
@@ -12,13 +12,13 @@ knowledge = "2025-06"
open_weights = true
[cost]
input = 0.15
output = 1.15
input = 0.27
output = 0.95
cache_read = 0.03
cache_write = 0.375
[limit]
context = 196_608
context = 204_800
output = 131_072
[modalities]
@@ -4,6 +4,7 @@ release_date = "2025-07-23"
last_updated = "2025-07-23"
attachment = false
reasoning = false
reasoning_options = []
temperature = true
knowledge = "2025-04"
tool_call = true
@@ -11,7 +12,7 @@ open_weights = true
[cost]
input = 0.3
output = 1.0
output = 1.2
[limit]
context = 262_144
@@ -4,16 +4,16 @@ release_date = "2026-02-01"
last_updated = "2026-04-20"
attachment = true
reasoning = true
reasoning_options = []
reasoning_options = [{ type = "toggle" }]
temperature = true
knowledge = "2025-01"
tool_call = true
open_weights = true
[cost]
input = 0.14
output = 1.00
cache_read = 0.05
input = 0.2
output = 0.95
cached = 0.1
[limit]
context = 262_144
@@ -4,16 +4,16 @@ release_date = "2026-02-01"
last_updated = "2026-04-20"
attachment = true
reasoning = true
reasoning_options = []
reasoning_options = [{ type = "toggle" }]
temperature = true
knowledge = "2025-01"
tool_call = true
open_weights = true
[cost]
input = 0.45
output = 3.00
cache_read = 0.22
input = 0.54
output = 3.4
cached = 0.27
[limit]
context = 262_144
@@ -4,14 +4,14 @@ release_date = "2026-04-01"
last_updated = "2026-04-01"
attachment = true
reasoning = true
reasoning_options = []
reasoning_options = [{ type = "toggle" }]
temperature = true
tool_call = true
open_weights = true
[cost]
input = 0.15
output = 0.95
input = 0.20
output = 1.00
[limit]
context = 262_144
@@ -6,7 +6,7 @@ reasoning = true
reasoning_options = []
temperature = true
knowledge = "2024-07"
tool_call = true
tool_call = false
open_weights = false
[interleaved]
@@ -4,6 +4,7 @@ release_date = "2024-12-06"
last_updated = "2024-12-06"
attachment = false
reasoning = false
reasoning_options = []
tool_call = true
open_weights = true
@@ -4,7 +4,8 @@ release_date = "2025-04-05"
last_updated = "2025-04-05"
attachment = false
reasoning = false
tool_call = false
reasoning_options = []
tool_call = true
open_weights = true
[cost]
@@ -12,7 +13,7 @@ input = 0.15
output = 0.60
[limit]
context = 1_048_576
context = 1_000_000
output = 16_384
[modalities]
@@ -4,15 +4,16 @@ release_date = "2025-04-05"
last_updated = "2025-04-05"
attachment = false
reasoning = false
reasoning_options = []
tool_call = true
open_weights = true
[cost]
input = 0.10
input = 0.08
output = 0.30
[limit]
context = 327_680
context = 10_000_000
output = 16_384
[modalities]
@@ -12,9 +12,9 @@ knowledge = "2025-01"
open_weights = true
[cost]
input = 0.45
output = 2.25
cache_read = 0.07
input = 0.50
output = 2.80
cached_input = 0.09
[limit]
context = 262_144
@@ -12,8 +12,8 @@ tool_call = true
open_weights = true
[cost]
input = 0.039
output = 0.19
input = 0.05
output = 0.24
[limit]
context = 131_072
@@ -20,7 +20,7 @@ output = 1.74
cache_read = 0.08
[limit]
context = 202_752
context = 204_800
output = 131_072
[modalities]
@@ -6,7 +6,7 @@ last_updated = "2026-01-19"
knowledge = "2025-04"
attachment = false
reasoning = true
reasoning_options = []
reasoning_options = [{ type = "toggle" }]
temperature = true
tool_call = true
open_weights = true
@@ -15,7 +15,7 @@ open_weights = true
field = "reasoning_content"
[cost]
input = 0.40
input = 0.43
output = 1.75
cache_read = 0.08
@@ -16,9 +16,9 @@ structured_output = true
field = "reasoning_content"
[cost]
input = 1.05
output = 3.50
cache_read = 0.205
input = 1.4
output = 4.4
cache_read = 0.26
[limit]
context = 202_752
@@ -15,9 +15,9 @@ open_weights = true
field = "reasoning_content"
[cost]
input = 0.60
output = 2.08
cache_read = 0.12
input = 0.8
output = 2.56
cache_read = 0.16
[limit]
context = 202_752
@@ -9,8 +9,6 @@ knowledge = "2025-09"
tool_call = true
open_weights = true
reasoning_options = []
[interleaved]
field = "reasoning_content"
@@ -1,17 +0,0 @@
name = "Nemotron 3 Ultra"
family = "nemotron"
release_date = "2026-06-04"
last_updated = "2026-06-12"
attachment = false
reasoning = false
temperature = true
tool_call = true
open_weights = false
[limit]
context = 131_072
output = 8_192
[modalities]
input = ["text"]
output = ["text"]
@@ -8,9 +8,6 @@ temperature = true
tool_call = true
open_weights = true
[[reasoning_options]]
type = "toggle"
[cost]
input = 0
output = 0
@@ -15,10 +15,6 @@ type = "toggle"
type = "effort"
values = ["low", "medium", "high"]
[[reasoning_options]]
type = "budget_tokens"
min = 1
[cost]
cache_read = 0.10
input = 0.50
@@ -2,7 +2,6 @@ name = "MiniMax-M2.5"
family = "minimax"
attachment = false
reasoning = true
reasoning_options = []
tool_call = true
structured_output = true
temperature = true
@@ -2,7 +2,6 @@ name = "GLM-5.1"
family = "glm"
attachment = false
reasoning = true
reasoning_options = []
tool_call = true
structured_output = true
temperature = true
@@ -2,7 +2,6 @@ name = "GLM-5"
family = "glm"
attachment = false
reasoning = true
reasoning_options = []
tool_call = true
structured_output = true
temperature = true
@@ -1,11 +0,0 @@
base_model = "anthropic/claude-fable-5"
[cost]
input = 10
output = 50
cache_read = 1
cache_write = 12.5
[limit]
context = 1_000_000
output = 128_000
@@ -4,7 +4,6 @@ release_date = "2025-08-28"
last_updated = "2025-08-28"
attachment = false
reasoning = true
reasoning_options = []
temperature = true
tool_call = true
structured_output = true
@@ -4,7 +4,6 @@ release_date = "2025-12-17"
last_updated = "2026-04-04"
attachment = false
reasoning = true
reasoning_options = []
temperature = true
tool_call = true
structured_output = true
@@ -4,7 +4,6 @@ release_date = "2025-11-13"
last_updated = "2025-11-13"
attachment = false
reasoning = true
reasoning_options = []
temperature = true
tool_call = true
structured_output = true
@@ -4,7 +4,6 @@ release_date = "2025-08-05"
last_updated = "2025-08-05"
attachment = false
reasoning = true
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
temperature = true
tool_call = true
open_weights = true
@@ -4,7 +4,6 @@ release_date = "2025-08-05"
last_updated = "2025-08-05"
attachment = false
reasoning = true
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
temperature = true
tool_call = true
open_weights = true
@@ -4,7 +4,6 @@ release_date = "2025-08-13"
last_updated = "2025-08-13"
attachment = false
reasoning = true
reasoning_options = []
temperature = true
tool_call = true
structured_output = true
@@ -4,7 +4,6 @@ release_date = "2026-01-06"
last_updated = "2026-01-06"
attachment = false
reasoning = true
reasoning_options = [{ type = "toggle" }]
temperature = true
tool_call = true
structured_output = true
Loaded 100 of 616 files, more files were not shown because too many files have changed in this diff. Show more