Lim0011's picture
Upload 251 files
85e3d20 verified
raw
history blame contribute delete
333 Bytes
import os
import anthropic
client = anthropic.Client(open("claude_api_key.txt").read().strip())
response = client.completion(
prompt=f"{anthropic.HUMAN_PROMPT} How many toes do dogs have?{anthropic.AI_PROMPT}",
stop_sequences = [anthropic.HUMAN_PROMPT],
model="claude-v1",
max_tokens_to_sample=100,
)
print(response)