feat: Add integration with Composio tools (#1820)

Co-authored-by: Matt Zhou <mattzhou@Matts-MacBook-Pro.local>
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
This commit is contained in:
Matthew Zhou
2024-10-02 20:58:03 -07:00
committed by GitHub
parent 35d7b6cbe0
commit 58aa7e09df
8 changed files with 726 additions and 24 deletions

View File

@@ -419,6 +419,8 @@ def openai_chat_completions_request(
try:
response = requests.post(url, headers=headers, json=data)
printd(f"response = {response}, response.text = {response.text}")
# print(json.dumps(data, indent=4))
# raise requests.exceptions.HTTPError
response.raise_for_status() # Raises HTTPError for 4XX/5XX status
response = response.json() # convert to dict from string