ui: fix env var detection (#1986)

This commit is contained in:
Lily Delalande
2025-04-01 16:42:08 -04:00
committed by GitHub
parent 35c2536975
commit 9607126867

View File

@@ -130,10 +130,19 @@ const getSharingUrl = () => {
return process.env.GOOSE_BASE_URL_SHARE;
};
const getVersion = () => {
// checks app env for sharing url
loadShellEnv(app.isPackaged); // will try to take it from the zshrc file
// to in the env at bundle time
return process.env.GOOSE_VERSION;
};
let [provider, model] = getGooseProvider();
let sharingUrl = getSharingUrl();
let gooseVersion = getVersion();
let appConfig = {
GOOSE_PROVIDER: provider,
GOOSE_MODEL: model,
@@ -181,6 +190,7 @@ const createChat = async (
GOOSE_WORKING_DIR: working_dir,
REQUEST_DIR: dir,
GOOSE_BASE_URL_SHARE: sharingUrl,
GOOSE_VERSION: gooseVersion,
botConfig: botConfig,
}),
],