Spaces:
Running
Running
import os | |
from groq import Groq | |
client = Groq( | |
api_key="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" | |
) | |
chat_completion = client.chat.completions.create( | |
messages=[ | |
{ | |
"role": "user", | |
"content": "Explain the importance of fast language models", | |
} | |
], | |
model="llama3-8b-8192", | |
) | |
print(chat_completion.choices[0].message.content) |