Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
Merge branch 'main' into fix/anthropic-serial-tool-use-400
atoz96362589bb577d
diff --cc web-app/src/lib/custom-chat-transport.tsindex 136695967,9d7985e05..9f2384610--- a/web-app/src/lib/custom-chat-transport.ts+++ b/web-app/src/lib/custom-chat-transport.ts@@@ -274,15 -278,15 +278,21 @@@ export class CustomChatTransport implem? useAgentMode.getState().isAgentMode(this.threadId): false+ // Capture the effective provider name early so the Anthropic serial+ // tool-use repair later uses the same value that was used to create the+ // model, even if the user switches provider mid-request.+ let effectiveProviderName: string | undefined+if (isAgentMode) {// Agent mode: route to OpenClaw gateway+ effectiveProviderName = 'openclaw'await ensureOpenClawHttpApi()++ const gatewayReachable = await checkOpenClawGateway()+ if (!gatewayReachable) {+ throw new Error('Cannot reach the OpenClaw gateway. Please check that Remote Access is running in Settings.')+ }+const authToken = await getOpenClawAuthToken()if (!authToken) {throw new Error('OpenClaw is not available. Please check that it is running in Settings > Remote Access.')