From 024c1990a891f7a7082abcd797c136a01d47b436 Mon Sep 17 00:00:00 2001 From: Robert Yan Date: Thu, 29 Jan 2026 19:14:06 +0800 Subject: [PATCH] fix: update model configs --- docs/providers/nearai.md | 22 +++++++++++----------- src/agents/nearai-models.ts | 10 ---------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/docs/providers/nearai.md b/docs/providers/nearai.md index 63862cb27..85497a739 100644 --- a/docs/providers/nearai.md +++ b/docs/providers/nearai.md @@ -28,7 +28,7 @@ All AI outputs are cryptographically signed inside the TEE before leaving the se ## Features -- **OpenAI-compatible API**: Standard `/v1/chat/completions` endpoint +- **OpenAI-compatible APIs**: Standard endpoints like `/v1/chat/completions`, `v1/responses`, `/v1/images/generations`, etc. - **Streaming**: Supported on all models - **Function calling**: Supported - **Vision**: Supported on vision-capable models @@ -93,16 +93,16 @@ moltbot models list | grep nearai > **Note:** The model list may change. See the latest available models at [cloud.near.ai/models](https://cloud.near.ai/models). -| Model ID | Name | Privacy | Reasoning | Context | Cost ($/M tokens) | -|----------|------|---------|-----------|---------|-------------------| -| `anthropic/claude-sonnet-4-5` | Claude Sonnet 4.5 | Anonymized | ✅ | 200K | $3.00 in / $15.50 out | -| `black-forest-labs/FLUX.2-klein-4B` | FLUX.2-klein-4B | Private | ❌ | 128K | $1.00 in / $1.00 out | -| `deepseek-ai/DeepSeek-V3.1` | DeepSeek V3.1 | Private | ❌ | 128K | $1.05 in / $3.10 out | -| `google/gemini-3-pro` | Gemini 3 Pro Preview | Anonymized | ✅ | 1M | $1.25 in / $15.00 out | -| `openai/gpt-5.2` | OpenAI GPT-5.2 | Anonymized | ✅ | 400K | $1.80 in / $15.50 out | -| `openai/gpt-oss-120b` | GPT OSS 120B | Private | ✅ | 131K | $0.15 in / $0.55 out | -| `Qwen/Qwen3-30B-A3B-Instruct-2507` | Qwen3 30B | Private | ❌ | 262K | $0.15 in / $0.55 out | -| `zai-org/GLM-4.7` | GLM 4.7 (default) | Private | ✅ | 131K | $0.85 in / $3.30 out | +| Model ID | Name | Privacy | Reasoning | Context | Cost | +|----------|------|---------|-----------|---------|------| +| `anthropic/claude-sonnet-4-5` | Claude Sonnet 4.5 | Anonymized | ✅ | 200K | $3.00 in / $15.50 out ($/M tokens) | +| `black-forest-labs/FLUX.2-klein-4B` | FLUX.2-klein-4B | Private | ❌ | 128K | $0.012/image | +| `deepseek-ai/DeepSeek-V3.1` | DeepSeek V3.1 | Private | ❌ | 128K | $1.05 in / $3.10 out ($/M tokens) | +| `google/gemini-3-pro` | Gemini 3 Pro Preview | Anonymized | ✅ | 1M | $1.25 in / $15.00 out ($/M tokens) | +| `openai/gpt-5.2` | OpenAI GPT-5.2 | Anonymized | ✅ | 400K | $1.80 in / $15.50 out ($/M tokens) | +| `openai/gpt-oss-120b` | GPT OSS 120B | Private | ✅ | 131K | $0.15 in / $0.55 out ($/M tokens) | +| `Qwen/Qwen3-30B-A3B-Instruct-2507` | Qwen3 30B | Private | ❌ | 262K | $0.15 in / $0.55 out ($/M tokens) | +| `zai-org/GLM-4.7` | GLM 4.7 (default) | Private | ✅ | 131K | $0.85 in / $3.30 out ($/M tokens) | ## Configure via `moltbot configure` diff --git a/src/agents/nearai-models.ts b/src/agents/nearai-models.ts index 5928b830f..1ff9f8d68 100644 --- a/src/agents/nearai-models.ts +++ b/src/agents/nearai-models.ts @@ -35,16 +35,6 @@ export const NEAR_AI_MODEL_CATALOG = [ 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", name: "DeepSeek V3.1",