mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-02 14:04:27 +01:00
ui: fix env var detection (#1986)
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user