Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

fix(#2357): add sonnet-5 to the sampling-params rejection regex

ruvnet9dd999c93d0c
diff --git a/package.json b/package.json
index ec99061b70..023561ec81 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "claude-flow",
- "version": "3.30.4",
+ "version": "3.30.5",
"description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
"main": "dist/index.js",
"type": "module",
diff --git a/ruflo/package.json b/ruflo/package.json
index 151167fd6a..81a9fcf54b 100644
--- a/ruflo/package.json
+++ b/ruflo/package.json
@@ -1,6 +1,6 @@
{
"name": "ruflo",
- "version": "3.30.4",
+ "version": "3.30.5",
"description": "Ruflo - Enterprise AI agent orchestration platform. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
"main": "bin/ruflo.js",
"type": "module",
diff --git a/v3/@claude-flow/cli/__tests__/sampling-params-2357.test.ts b/v3/@claude-flow/cli/__tests__/sampling-params-2357.test.ts
index 919dc53f1c..7370322948 100644
--- a/v3/@claude-flow/cli/__tests__/sampling-params-2357.test.ts
+++ b/v3/@claude-flow/cli/__tests__/sampling-params-2357.test.ts
@@ -23,6 +23,7 @@ describe('modelRejectsSamplingParams (#2357)', () => {
'claude-fable-5',
'claude-opus-4-8',
'claude-opus-4-7',
+ 'claude-sonnet-5',
])('rejects sampling params for %s', (m) => {
expect(modelRejectsSamplingParams(m)).toBe(true);
});
@@ -78,6 +79,7 @@ describe('callAnthropicMessages request body (#2357)', () => {
'claude-fable-5',
'claude-opus-4-8',
'claude-opus-4-7',
+ 'claude-sonnet-5',
])('omits temperature for %s (the API 400s otherwise)', async (model) => {
const r = await callAnthropicMessages({ prompt: 'ping', model, maxTokens: 8 });
expect(r.success).toBe(true);
diff --git a/v3/@claude-flow/cli/package-lock.json b/v3/@claude-flow/cli/package-lock.json
index f9a17968b1..e9b157565d 100644
--- a/v3/@claude-flow/cli/package-lock.json
+++ b/v3/@claude-flow/cli/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@claude-flow/cli",
- "version": "3.30.4",
+ "version": "3.30.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@claude-flow/cli",
- "version": "3.30.4",
+ "version": "3.30.5",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json
index f714d2818f..591889dce7 100644
--- a/v3/@claude-flow/cli/package.json
+++ b/v3/@claude-flow/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@claude-flow/cli",
- "version": "3.30.4",
+ "version": "3.30.5",
"type": "module",
"description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
"main": "dist/src/index.js",
diff --git a/v3/@claude-flow/cli/src/mcp-tools/agent-execute-core.ts b/v3/@claude-flow/cli/src/mcp-tools/agent-execute-core.ts
index 966df9719d..c10af2ed89 100644
--- a/v3/@claude-flow/cli/src/mcp-tools/agent-execute-core.ts
+++ b/v3/@claude-flow/cli/src/mcp-tools/agent-execute-core.ts
@@ -83,14 +83,14 @@ const MODEL_MAP: Record<string, string> = {
inherit: DEFAULT_ANTHROPIC_MODEL,
};
-// #2357 — the adaptive-thinking family (Fable 5, Opus 4.8, Opus 4.7) removed
-// the sampling parameters (temperature/top_p/top_k); the Anthropic API
+// #2357 — the adaptive-thinking family (Fable 5, Opus 4.8, Opus 4.7, Sonnet 5)
+// removed the sampling parameters (temperature/top_p/top_k); the Anthropic API
// returns 400 "Extra inputs are not permitted" when any is present.
// Prefix-match so dated snapshots (e.g. claude-opus-4-8-YYYYMMDD) are
// covered. Applies only to the direct Anthropic path — the Ollama/OpenRouter
// OpenAI-compat paths accept temperature and are unchanged.
export function modelRejectsSamplingParams(model: string): boolean {
- return /^claude-(fable-5|opus-4-8|opus-4-7)/.test(model);
+ return /^claude-(fable-5|opus-4-8|opus-4-7|sonnet-5)/.test(model);
}
export interface AnthropicCallInput {