惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
C
Check Point Blog
博客园_首页
B
Blog
D
Docker
U
Unit 42
量子位
I
InfoQ
有赞技术团队
有赞技术团队
Martin Fowler
Martin Fowler
GbyAI
GbyAI
L
LangChain Blog
云风的 BLOG
云风的 BLOG
博客园 - Franky
美团技术团队
T
The Blog of Author Tim Ferriss
阮一峰的网络日志
阮一峰的网络日志
月光博客
月光博客
Vercel News
Vercel News
Recent Announcements
Recent Announcements
雷峰网
雷峰网
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Google DeepMind News
Google DeepMind News

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
refactor: derive deepinfra catalog from manifest · opencl...
shakkernerd · 2026-05-01 · via Recent Commits to openclaw:main

@@ -1,10 +1,17 @@

1+

import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";

12

import { fetchWithTimeout } from "openclaw/plugin-sdk/provider-http";

23

import type { ModelDefinitionConfig } from "openclaw/plugin-sdk/provider-model-shared";

34

import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";

5+

import manifest from "./openclaw.plugin.json" with { type: "json" };

4657

const log = createSubsystemLogger("deepinfra-models");

687-

export const DEEPINFRA_BASE_URL = "https://api.deepinfra.com/v1/openai";

9+

const DEEPINFRA_MANIFEST_PROVIDER = buildManifestModelProviderConfig({

10+

providerId: "deepinfra",

11+

catalog: manifest.modelCatalog.providers.deepinfra,

12+

});

13+14+

export const DEEPINFRA_BASE_URL = DEEPINFRA_MANIFEST_PROVIDER.baseUrl;

815

export const DEEPINFRA_MODELS_URL = `${DEEPINFRA_BASE_URL}/models?sort_by=openclaw&filter=with_meta`;

9161017

export const DEEPINFRA_DEFAULT_MODEL_ID = "deepseek-ai/DeepSeek-V3.2";

@@ -13,71 +20,7 @@ export const DEEPINFRA_DEFAULT_MODEL_REF = `deepinfra/${DEEPINFRA_DEFAULT_MODEL_

1320

const DEEPINFRA_DEFAULT_CONTEXT_WINDOW = 128000;

1421

const DEEPINFRA_DEFAULT_MAX_TOKENS = 8192;

152216-

export const DEEPINFRA_MODEL_CATALOG: ModelDefinitionConfig[] = [

17-

{

18-

id: "deepseek-ai/DeepSeek-V3.2",

19-

name: "DeepSeek V3.2",

20-

reasoning: false,

21-

input: ["text"],

22-

contextWindow: 163840,

23-

maxTokens: 163840,

24-

cost: { input: 0.26, output: 0.38, cacheRead: 0.13, cacheWrite: 0 },

25-

},

26-

{

27-

id: "zai-org/GLM-5.1",

28-

name: "GLM-5.1",

29-

reasoning: true,

30-

input: ["text"],

31-

contextWindow: 202752,

32-

maxTokens: 202752,

33-

cost: { input: 1.05, output: 3.5, cacheRead: 0.205000005, cacheWrite: 0 },

34-

},

35-

{

36-

id: "stepfun-ai/Step-3.5-Flash",

37-

name: "Step 3.5 Flash",

38-

reasoning: false,

39-

input: ["text"],

40-

contextWindow: 262144,

41-

maxTokens: 262144,

42-

cost: { input: 0.1, output: 0.3, cacheRead: 0.02, cacheWrite: 0 },

43-

},

44-

{

45-

id: "MiniMaxAI/MiniMax-M2.5",

46-

name: "MiniMax M2.5",

47-

reasoning: true,

48-

input: ["text"],

49-

contextWindow: 196608,

50-

maxTokens: 196608,

51-

cost: { input: 0.15, output: 1.15, cacheRead: 0.03, cacheWrite: 0 },

52-

},

53-

{

54-

id: "moonshotai/Kimi-K2.5",

55-

name: "Kimi K2.5",

56-

reasoning: true,

57-

input: ["text", "image"],

58-

contextWindow: 262144,

59-

maxTokens: 262144,

60-

cost: { input: 0.45, output: 2.25, cacheRead: 0.070000002, cacheWrite: 0 },

61-

},

62-

{

63-

id: "nvidia/NVIDIA-Nemotron-3-Super-120B-A12B",

64-

name: "NVIDIA Nemotron 3 Super 120B A12B",

65-

reasoning: true,

66-

input: ["text"],

67-

contextWindow: 262144,

68-

maxTokens: 262144,

69-

cost: { input: 0.1, output: 0.5, cacheRead: 0, cacheWrite: 0 },

70-

},

71-

{

72-

id: "meta-llama/Llama-3.3-70B-Instruct-Turbo",

73-

name: "Llama 3.3 70B Instruct Turbo",

74-

reasoning: false,

75-

input: ["text"],

76-

contextWindow: 131072,

77-

maxTokens: 131072,

78-

cost: { input: 0.1, output: 0.32, cacheRead: 0, cacheWrite: 0 },

79-

},

80-

];

23+

export const DEEPINFRA_MODEL_CATALOG: ModelDefinitionConfig[] = DEEPINFRA_MANIFEST_PROVIDER.models;

81248225

const DISCOVERY_TIMEOUT_MS = 5000;

8326

const DISCOVERY_CACHE_TTL_MS = 5 * 60 * 1000;