Spaces:
Sleeping
Sleeping
File size: 302 Bytes
97b42fd |
1 2 3 4 5 6 7 8 9 10 |
from groq import Groq
async def run_groq(messages : list , groq_client : Groq, model = 'llama-3.3-70b-versatile') -> str :
chat_completion = groq_client.chat.completions.create(
messages = messages ,
model = model
)
return str(chat_completion.choices[0].message.content) |