feat: add new models

This commit is contained in:
Robert Yan 2026-01-29 17:30:36 +08:00
parent 537ddff08b
commit 4fba5c7b1d

View File

@ -20,10 +20,31 @@ export const NEAR_AI_DEFAULT_COST = {
* - NVIDIA TEE for GPU-level isolation * - NVIDIA TEE for GPU-level isolation
* - Cryptographic signing of all AI outputs inside TEE * - Cryptographic signing of all AI outputs inside TEE
* *
* All NEAR AI models are fully private - prompts/responses are not logged. * Models marked as "private" are fully private - prompts/responses are not logged.
* The `privacy` field is set to "private" for all models. * Models marked as "anonymized" use anonymized proxy endpoints (not TEE-protected).
* The `privacy` field indicates the privacy level for each model.
*/ */
export const NEAR_AI_MODEL_CATALOG = [ export const NEAR_AI_MODEL_CATALOG = [
{
id: "anthropic/claude-sonnet-4-5",
name: "Claude Sonnet 4.5",
reasoning: true,
input: ["text"],
contextWindow: 200000,
maxTokens: 8192,
cost: { input: 3, output: 15.5, cacheRead: 0, cacheWrite: 0 },
privacy: "anonymized",
},
{
id: "black-forest-labs/FLUX.2-klein-4B",
name: "FLUX.2-klein-4B",
reasoning: false,
input: ["text"],
contextWindow: 128000,
maxTokens: 8192,
cost: { input: 1, output: 1, cacheRead: 0, cacheWrite: 0 },
privacy: "private",
},
{ {
id: "deepseek-ai/DeepSeek-V3.1", id: "deepseek-ai/DeepSeek-V3.1",
name: "DeepSeek V3.1", name: "DeepSeek V3.1",
@ -34,6 +55,26 @@ export const NEAR_AI_MODEL_CATALOG = [
cost: { input: 1.05, output: 3.1, cacheRead: 0, cacheWrite: 0 }, cost: { input: 1.05, output: 3.1, cacheRead: 0, cacheWrite: 0 },
privacy: "private", privacy: "private",
}, },
{
id: "google/gemini-3-pro",
name: "Gemini 3 Pro Preview",
reasoning: true,
input: ["text"],
contextWindow: 1000000,
maxTokens: 8192,
cost: { input: 1.25, output: 15, cacheRead: 0, cacheWrite: 0 },
privacy: "anonymized",
},
{
id: "openai/gpt-5.2",
name: "OpenAI GPT-5.2",
reasoning: true,
input: ["text"],
contextWindow: 400000,
maxTokens: 8192,
cost: { input: 1.8, output: 15.5, cacheRead: 0, cacheWrite: 0 },
privacy: "anonymized",
},
{ {
id: "openai/gpt-oss-120b", id: "openai/gpt-oss-120b",
name: "GPT OSS 120B", name: "GPT OSS 120B",
@ -80,6 +121,5 @@ export function buildNearAiModelDefinition(entry: NearAiCatalogEntry): ModelDefi
cost: entry.cost, cost: entry.cost,
contextWindow: entry.contextWindow, contextWindow: entry.contextWindow,
maxTokens: entry.maxTokens, maxTokens: entry.maxTokens,
privacy: entry.privacy,
}; };
} }