기본 설명에서 비유를 생성합니다.
이 프롬프트를 개발자 Console에 복사하여 직접 시도해보세요!
import anthropic client = anthropic.Anthropic( # defaults to os.environ.get("ANTHROPIC_API_KEY") api_key="my_api_key", ) message = client.messages.create( model="claude-opus-4-20250514", max_tokens=1000, temperature=1, messages=[ { "role": "user", "content": [ { "type": "text", "text": "Help me create some similes to describe a person's laughter that is joyful and contagious?" } ] } ] ) print(message.content)
Was this page helpful?