Unverified 提交 ae351c5e authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Add staging engine (+ logs) (#225)

上级 731eef1b
......@@ -15,6 +15,7 @@
"clean": "rm -rf out && rm -rf scaffold/node_modules",
"start": "electron-forge start",
"dev:engine": "DYAD_LOCAL_ENGINE=http://localhost:8080/v1 npm start",
"staging:engine": "DYAD_LOCAL_ENGINE=https://staging---dyad-llm-engine-kq7pivehnq-uc.a.run.app/v1 npm start",
"staging:gateway": "DYAD_GATEWAY_URL=https://staging---litellm-gcp-cloud-run-kq7pivehnq-uc.a.run.app/v1 npm start",
"package": "npm run clean && electron-forge package",
"make": "npm run clean && electron-forge make",
......
......@@ -69,9 +69,8 @@ Creates a chat model for text generation.
export function createDyadEngine(
options: ExampleProviderSettings,
): DyadEngineProvider {
const baseURL = withoutTrailingSlash(
options.baseURL ?? "https://api.example.com/v1",
);
const baseURL = withoutTrailingSlash(options.baseURL);
logger.info("creating dyad engine with baseURL", baseURL);
const getHeaders = () => ({
Authorization: `Bearer ${loadApiKey({
apiKey: options.apiKey,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论