I tried your shared Google Colab notebook

I'm not sure if it's intended to be like that or if it's meant to be done differently, but I couldn't get that part to work without altering it.
# Here you pass your own GROQ API key
Sending POST request, with full functions implementation
from dotenv import load_dotenv
from duckduckgo_search import DDGS
import requests, os
import json
load_dotenv()
api_key = os.getenv("<your_groq_api_key>")
header = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json"
}
proxy_url = "https://groqcall.ai/proxy/groq/v1/chat/completions"
But then received a ConnectTimeout error while making an API request, resulting in an APITimeoutError due to a timed-out request.
Schema-less Function Call 🤩
from dotenv import load_dotenv
from duckduckgo_search import DDGS
import requests, os
import json
load_dotenv()
api_key = os.getenv("<your_groq_api_key>")
Using with PhiData (Or similar libraries)
from phi.llm.openai.like import OpenAILike
from phi.assistant import Assistant
from phi.tools.duckduckgo import DuckDuckGo
import os, json
import dotenv
load_dotenv()
api_key = os.getenv("<your_groq_api_key>")
![Uploading Screen Shot 2024-04-30 at 8.52.03 AM.png…]()
I tried your shared Google Colab notebook

I'm not sure if it's intended to be like that or if it's meant to be done differently, but I couldn't get that part to work without altering it.
# Here you pass your own GROQ API keySending POST request, with full functions implementation
But then received a
ConnectTimeouterror while making an API request, resulting in anAPITimeoutErrordue to a timed-out request.Schema-less Function Call 🤩
Using with PhiData (Or similar libraries)