support configuring the port

This commit is contained in:
jinhui.li
2025-07-20 01:00:33 +08:00
parent 174c9a740f
commit d0de78eaf0
5 changed files with 10 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ export async function executeCodeCommand(args: string[] = []) {
const env = {
...process.env,
ANTHROPIC_AUTH_TOKEN: "test",
ANTHROPIC_BASE_URL: `http://127.0.0.1:3456`,
ANTHROPIC_BASE_URL: `http://127.0.0.1:${config.PORT || 3456}`,
API_TIMEOUT_MS: "600000",
};