gnosticdev/bothistoria
0
1from huggingface_hub import InferenceClient2 3client = InferenceClient(api_key="hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")4 5messages = [6 {7 "role": "user",8 "content": "What is the capital of France?"9 }10]11 12completion = client.chat.completions.create(13 model="meta-llama/Llama-3.2-1B-Instruct", 14 messages=messages, 15 max_tokens=50016)17 18print(completion.choices[0].message)