huggingtube / test.py
vericudebuget's picture
Upload 11 files
4c11f5a verified
raw
history blame contribute delete
414 Bytes
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)