Add python 3.10 support back to CLI +fixes

This commit is contained in:
Thiago Moretto
2024-08-29 14:37:34 -03:00
parent 345f1eacde
commit 9a10cc15f4
3 changed files with 15 additions and 5 deletions

View File

@@ -2,6 +2,8 @@ from os import getenv
import requests
from crewai.cli.deploy.utils import get_crewai_version
class CrewAPI:
"""
@@ -13,6 +15,7 @@ class CrewAPI:
self.headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json",
"User-Agent": f"CrewAI-CLI/{get_crewai_version()}",
}
self.base_url = getenv(
"CREWAI_BASE_URL", "https://dev.crewai.com/crewai_plus/api/v1/crews"