Skip to content

Commit

Permalink
use env.update
Browse files Browse the repository at this point in the history
  • Loading branch information
tushar-composio committed Jan 2, 2025
1 parent 2739587 commit 90f03e5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions python/composio/tools/env/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,15 @@ def __init__(self, config: WorkspaceConfigType):
self.github_access_token = config.github_access_token or os.environ.get(
ENV_GITHUB_ACCESS_TOKEN, "NO_VALUE"
)
self.environment = {
**(config.environment or {}),
ENV_COMPOSIO_API_KEY: self.composio_api_key,
ENV_COMPOSIO_BASE_URL: self.composio_base_url,
ENV_GITHUB_ACCESS_TOKEN: self.github_access_token,
f"_COMPOSIO_{ENV_GITHUB_ACCESS_TOKEN}": self.github_access_token,
ENV_ACCESS_TOKEN: self.access_token,
}
self.environment.update(
{
ENV_COMPOSIO_API_KEY: self.composio_api_key,
ENV_COMPOSIO_BASE_URL: self.composio_base_url,
ENV_GITHUB_ACCESS_TOKEN: self.github_access_token,
f"_COMPOSIO_{ENV_GITHUB_ACCESS_TOKEN}": self.github_access_token,
ENV_ACCESS_TOKEN: self.access_token,
}
)

def _request(
self,
Expand Down

0 comments on commit 90f03e5

Please sign in to comment.