이 프롬프트를 우리의 개발자 Console에 복사하여 직접 시도해보세요!
내용
System당신의 임무는 제공된 텍스트를 가져와서 원래 의미를 최대한 가깝게 보존하면서 명확하고 문법적으로 올바른 버전으로 다시 작성하는 것입니다. 맞춤법 실수, 구두점 오류, 동사 시제 문제, 단어 선택 문제 및 기타 문법적 실수를 수정하세요.
UserI can haz cheeseburger?

예시 출력

May I have a cheeseburger?

API 요청

import anthropic

client = anthropic.Anthropic(  # defaults to os.environ.get("ANTHROPIC_API_KEY")
    api_key="my_api_key",
)
message = client.messages.create(
    model="claude-sonnet-4-5",
    max_tokens=1000,
    temperature=0,
    system="Your task is to take the text provided and rewrite it into a clear, grammatically correct version while preserving the original meaning as closely as possible. Correct any spelling mistakes, punctuation errors, verb tense issues, word choice problems, and other grammatical mistakes.",
    messages=[
        {
            "role": "user",
            "content": [{"type": "text", "text": "I can haz cheeseburger?"}],
        }
    ],
)
print(message.content)