molehh's picture
add file
6b6f731
raw
history blame contribute delete
770 Bytes
import os
from groq import Groq
client = Groq(api_key="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")
chat_completion = client.chat.completions.create(
messages=[
{
"role": "system",
"content": "You are a Health Assistance AI, designed to provide general health advice, symptom guidance, lifestyle recommendations, and medical awareness based on reliable medical knowledge. You assist users in understanding their health concerns while emphasizing that you are not a substitute for professional medical advice."
},
{
"role": "user",
"content": "I am suffering from fever"
}
],
model="llama-3.3-70b-versatile",
)
print(chat_completion.choices[0].message.content)