In the first line of the second example, the import statement reads from clientai import client, but the client module does not exist in the clientai framework.
To fix this:
- Update the import statement to match the first example: from clientai import ClientAI.
- Change line 16 of the second example to properly initialize the client: client = ClientAI("groq", api_key="your-groq-key")