-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
📦 NEW: Config based env #38
base: main
Are you sure you want to change the base?
Conversation
import pipeSummary from '../baseai/pipes/summary'; | ||
import {Pipe} from './../../../packages/core/src/pipes/pipes'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be imported from core. This will break.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace it with
import {Pipe} from '@baseai/core';
packages/baseai/types/config.ts
Outdated
@@ -29,4 +29,16 @@ export interface BaseAIConfig { | |||
log: LoggerConfig; | |||
memory: MemoryConfig; | |||
envFilePath: string; | |||
env: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be optional
// Other default configuration options can be added here | ||
env: {} as any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not add it to default config as it is optional.
f7f6375
to
17c0dbd
Compare
Adds config file based env vars to support Cloudflare and other envs where
process.env
is not available.