Make me

#11
by Ah13original - opened

Make my video

from huggingface_hub import InferenceClient

client = InferenceClient(api_key="hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")

messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]

completion = client.chat.completions.create(
model="meta-llama/Llama-3.3-70B-Instruct",
messages=messages,
max_tokens=500
)

print(completion.choices[0].message)

Ah13original changed discussion status to closed

Sign up or log in to comment