import anthropic

client = anthropic.Anthropic(
# Apna API Key yahan dalein
api_key="YOUR_ANTHROPIC_API_KEY",
)

message = client.messages.create(
model="claude-3-opus-20240229",
max_tokens=1000,
temperature=0,
system="Aap ek helpful assistant hain.",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Hello Claude, kaise ho?"
}
]
}
]
)

print(message.content[0].text)

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment