mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-14 10:38:29 +00:00
git-subtree-dir: packages/tools git-subtree-split: 78317b9c127f18bd040c1d77e3c0840cdc9a5b38
14 lines
646 B
Python
14 lines
646 B
Python
import os
|
|
|
|
def get_platform_api_base_url() -> str:
|
|
"""Get the platform API base URL from environment or use default."""
|
|
base_url = os.getenv("CREWAI_PLUS_URL", "https://app.crewai.com")
|
|
return f"{base_url}/crewai_plus/api/v1/integrations"
|
|
|
|
def get_platform_integration_token() -> str:
|
|
"""Get the platform API base URL from environment or use default."""
|
|
token = os.getenv("CREWAI_PLATFORM_INTEGRATION_TOKEN") or ""
|
|
if not token:
|
|
raise ValueError("No platform integration token found, please set the CREWAI_PLATFORM_INTEGRATION_TOKEN environment variable")
|
|
return token # TODO: Use context manager to get token
|