Skip to content
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

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft

📦 NEW: Config based env #38

wants to merge 25 commits into from

Conversation

ahmadawais
Copy link
Member

Adds config file based env vars to support Cloudflare and other envs where process.env is not available.

import pipeSummary from '../baseai/pipes/summary';
import {Pipe} from './../../../packages/core/src/pipes/pipes';
Copy link
Collaborator

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.

Copy link
Collaborator

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';

@@ -29,4 +29,16 @@ export interface BaseAIConfig {
log: LoggerConfig;
memory: MemoryConfig;
envFilePath: string;
env: {
Copy link
Collaborator

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants