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

Merge branch 'pr-3495' into feat/release-3.56.0-batch

r8129a3d6f7a8
diff --cc v3/@claude-flow/cli/src/mcp-tools/agent-execute-core.ts
index 73d454a8f9,588f8d2dd7..2a165cc460
--- a/v3/@claude-flow/cli/src/mcp-tools/agent-execute-core.ts
+++ b/v3/@claude-flow/cli/src/mcp-tools/agent-execute-core.ts
@@@ -244,16 -240,13 +244,16 @@@ export async function callAnthropicMess
}
const model = input.model || DEFAULT_ANTHROPIC_MODEL;
const startedAt = Date.now();
+ const controller = new AbortController();
+ const timer = setTimeout(() => controller.abort(), input.timeoutMs || 60000);
try {
- const controller = new AbortController();
- const timer = setTimeout(() => controller.abort(), input.timeoutMs || 60000);
- const res = await fetch('https://api.anthropic.com/v1/messages', {
+ const baseUrl = (process.env.ANTHROPIC_BASE_URL || 'https://api.anthropic.com').replace(/\/+$/, '');
+ const res = await fetch(`${baseUrl}/v1/messages`, {
method: 'POST',
headers: {
- 'x-api-key': anthropicKey,
+ ...(anthropicAuthToken
+ ? { Authorization: `Bearer ${anthropicAuthToken}` }
+ : { 'x-api-key': anthropicKey }),
'anthropic-version': '2023-06-01',
'content-type': 'application/json',
},