Allow overriding gateway URL (#169)

This commit is contained in:
Will Chen
2025-05-15 15:09:45 -07:00
committed by GitHub
parent 35b459d82d
commit bbf4bb765c
2 changed files with 3 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ import { llmErrorStore } from "@/main/llm_error_store";
import { createDyadEngine } from "./llm_engine_provider";
const dyadLocalEngine = process.env.DYAD_LOCAL_ENGINE;
const dyadGatewayUrl = process.env.DYAD_GATEWAY_URL;
const AUTO_MODELS = [
{
@@ -105,7 +106,7 @@ export async function getModelClient(
})
: createOpenAI({
apiKey: dyadApiKey,
baseURL: "https://llm-gateway.dyad.sh/v1",
baseURL: dyadGatewayUrl ?? "https://llm-gateway.dyad.sh/v1",
});
logger.info(