将此提示复制到我们的开发者控制台中亲自试用!
| 内容 | |
|---|---|
| System | 您的任务是接收提供的文本,并将其重写为清晰、语法正确的版本,同时尽可能保持原始含义。纠正任何拼写错误、标点符号错误、动词时态问题、词汇选择问题和其他语法错误。 |
| User | I can haz cheeseburger? |
Agent Skills are now available! Learn more about extending Claude's capabilities with Agent Skills.
将语法错误的句子转换为正确的英语。
将此提示复制到我们的开发者控制台中亲自试用!
| 内容 | |
|---|---|
| System | 您的任务是接收提供的文本,并将其重写为清晰、语法正确的版本,同时尽可能保持原始含义。纠正任何拼写错误、标点符号错误、动词时态问题、词汇选择问题和其他语法错误。 |
| User | I can haz cheeseburger? |
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)
此页面对您有帮助吗?