fix(grok-web): stabilize tool calling and response parsing (#1857)

Integrated into release/v3.7.8
This commit is contained in:
Raxxoor
2026-05-01 20:11:32 +01:00
committed by GitHub
parent d2ce20dc5c
commit e21ebaa389
4 changed files with 3077 additions and 32 deletions

View File

@@ -102,11 +102,6 @@ const nextConfig = {
})
);
// Mark @ngrok/ngrok as external to prevent webpack from trying to bundle its .node binaries
config.externals = config.externals || [];
config.externals.push({
"@ngrok/ngrok": "commonjs @ngrok/ngrok",
});
// ── Turbopack / Next.js 16 module-hash patch (#394, #396, #398) ────────
//
// Next.js 16 (with or without Turbopack) compiles the instrumentation hook
@@ -128,6 +123,7 @@ const nextConfig = {
const KNOWN_EXTERNALS = new Set([
"better-sqlite3",
"keytar",
"@ngrok/ngrok",
"wreq-js",
"zod",
"pino",

View File

@@ -1127,10 +1127,10 @@ export const REGISTRY: Record<string, RegistryEntry> = {
authHeader: "cookie",
passthroughModels: true,
models: [
{ id: "fast", name: "Grok Fast" },
{ id: "expert", name: "Grok 4.20 Thinking" },
{ id: "heavy", name: "Grok 4.20 Multi Agent" },
{ id: "grok-420-computer-use-sa", name: "Grok 4.3 (Beta)" },
{ id: "fast", name: "Grok Fast", toolCalling: true },
{ id: "expert", name: "Grok 4.20 Thinking", toolCalling: true },
{ id: "heavy", name: "Grok 4.20 Multi Agent", toolCalling: true },
{ id: "grok-420-computer-use-sa", name: "Grok 4.3 (Beta)", toolCalling: true },
],
},

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff