Untitled
unknown
plain_text
21 days ago
1.2 kB
4
Indexable
import anthropic if __name__=="__main__": client = anthropic.Anthropic( api_key="<MY_API_KEY>", ) message_batch = client.beta.messages.batches.create( requests=[ { "custom_id": "first-prompt-in-my-batch", "params": { "model": "claude-3-7-sonnet-20250219", "max_tokens": 100, "messages": [ { "role": "user", "content": "Hey Claude, tell me a short fun fact about video games!", } ], }, }, { "custom_id": "second-prompt-in-my-batch", "params": { "model": "claude-3-7-sonnet-20250219", "max_tokens": 100, "messages": [ { "role": "user", "content": "Hey Claude, tell me a short fun fact about bees!", } ], }, }, ] )
Editor is loading...
Leave a Comment