11 lines
431 B
JavaScript
11 lines
431 B
JavaScript
import { existsSync } from "node:fs";
|
|
import { fileURLToPath } from "node:url";
|
|
const envPath = fileURLToPath(new URL("../.env.local", import.meta.url));
|
|
if (existsSync(envPath)) process.loadEnvFile(envPath);
|
|
export const config = {
|
|
apiKey: process.env.ARK_API_KEY || "",
|
|
model: process.env.ARK_MODEL || "doubao-seed-2-1-lite-260915",
|
|
port: Number(process.env.AI_PORT || 8094),
|
|
host: process.env.AI_HOST || "127.0.0.1",
|
|
};
|