将此提示复制到我们的开发者控制台中,亲自尝试!

内容
User按照以下指示重写下面的段落:用海盗风格。段落:1758年,瑞典植物学家和动物学家卡尔·林奈在其《自然系统》中发表了物种的双词命名法(二名法)。Canis是拉丁语中表示”狗”的词,在这个属下,他列出了家犬、狼和金豺。

示例输出

啊哈,伙计们!回到1758年,那个坏血病的植物学家和动物爱好者卡尔·林奈发表了他的书《自然系统》,里面给各种生物都起了fancy的两个词的名字(他称之为二名法)。Canis是海盗语中”狗”的意思,在那个分类下他列出了普通狗、狼和金豺。啊嚯!对老船长林奈来说,所有这些狗都一样。他写那本书的时候可能还有一条木腿和肩上的鹦鹉呢!哈哈!现在擦甲板吧,你们这些无赖,否则我要让你们走跳板了!


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-opus-4-20250514",
    max_tokens=2000,
    temperature=1,
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "Rewrite the following paragraph using the following instructions: in the style of a pirate.  \n  \nParagraph:  \nIn 1758, the Swedish botanist and zoologist Carl Linnaeus published in his Systema Naturae, the two-word naming of species (binomial nomenclature). Canis is the Latin word meaning \"dog\", and under this genus, he listed the domestic dog, the wolf, and the golden jackal."
                }
            ]
        }
    ]
)
print(message.content)