Add ability to use observer in the prompt section (#1406)

This commit is contained in:
Shuchang Zheng
2024-12-17 06:53:17 -08:00
committed by GitHub
parent be48737b5e
commit b70559392c
4 changed files with 141 additions and 5 deletions

View File

@@ -19,4 +19,13 @@ if (!artifactApiBaseUrl) {
console.warn("artifactApiBaseUrl environment variable was not set");
}
export { apiBaseUrl, environment, envCredential, artifactApiBaseUrl };
const observerEnabled = import.meta.env.VITE_OBSERVER_ENABLED as string;
const observerFeatureEnabled = observerEnabled === "true";
export {
apiBaseUrl,
environment,
envCredential,
artifactApiBaseUrl,
observerFeatureEnabled,
};