Error importing groq

Whenever I am importing groq with line, I get an error

from phi.model.groq import Groq
  File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/phi/model/groq/__init__.py", line 1, in <module>
    from phi.model.groq.groq import Groq
  File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/phi/model/groq/groq.py", line 15, in <module>
    from groq import Groq as GroqClient, AsyncGroq as AsyncGroqClient
ModuleNotFoundError: No module named 'groq'

Hi
You need to pip install groq to have the groq client library installed.

1 Like

Thank you, that solved it!

1 Like