ayushsinghal1510's picture
Init Commit
97b42fd
raw
history blame contribute delete
302 Bytes
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)