Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Merge upstream main 10af83e74 into PR #3565

Sebastian B1d04c8f230fe
diff --cc server/bot-box/broker.test.ts
index 590259b46f,2b631876f9..9a6d0a1528
--- a/server/bot-box/broker.test.ts
+++ b/server/bot-box/broker.test.ts
@@@ -1,11 -1,10 +1,11 @@@
import { createServer, request, type Server } from "node:http";
import { mkdtempSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";
+import { createConnection } from "node:net";
import { join } from "node:path";
-import { afterEach, describe, expect, it } from "vitest";
+import { afterEach, describe, expect, it, vi } from "vitest";
- import { BROKER_PROCESS_TTL_MS, BROKER_THREAD_TTL_MS, BROKER_TOKEN_PREFIX, brokerUrl, openCredentialBroker, type CredentialBroker } from "./broker.ts";
+ import { BROKER_PROCESS_TTL_MS, BROKER_THREAD_TTL_MS, BROKER_TOKEN_PREFIX, brokerUrl, openCredentialBroker, upstreamUrl, type CredentialBroker } from "./broker.ts";
const REAL_KEY = "sk-ant-real-key-0123456789abcdef";