Библиотека подсказок
Адаптивный редактор
Переписывает текст согласно инструкциям пользователя, например, с другим тоном, аудиторией или стилем.
Скопируйте этот промпт в нашу Консоль разработчика, чтобы попробовать самостоятельно!
| Содержание | |
|---|---|
| Пользователь | Перепишите следующий абзац, используя следующие инструкции: в стиле пирата. Абзац: В 1758 году шведский ботаник и зоолог Карл Линней опубликовал в своей работе Systema Naturae двухсловное наименование видов (биномиальная номенклатура). Canis - это латинское слово, означающее "собака", и под этим родом он перечислил домашнюю собаку, волка и золотистого шакала. |
Пример вывода
Пример вывода
Эй, матросы! Еще в 1758 году этот проклятый ботаник и любитель животных Карл Линней выпустил свою книгу Systema Naturae, в которой были эти причудливые двухсловные названия для всех видов существ (биномиальная номенклатура, как он это называл). Canis - это пиратское слово для "собаки", и под этим заголовком он перечислил обычных собак, волков и золотистых шакалов тоже. Арр! Все эти собаки одинаковы для старого капитана Линнея. Возможно, у него была деревянная нога и попугай на плече, когда он писал эту книгу! Хаха! А теперь мойте палубу, негодяи, пока я не заставил вас пройти по доске!
API запрос
API запрос
Python
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=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)
TypeScript
import Anthropic from "@anthropic-ai/sdk";
const anthropic = new Anthropic({
apiKey: "my_api_key", // defaults to process.env["ANTHROPIC_API_KEY"]
});
const msg = await anthropic.messages.create({
model: "claude-sonnet-4-5",
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."
}
]
}
]
});
console.log(msg);
AWS Bedrock Python
from anthropic import AnthropicBedrock
# See https://docs.claude.com/claude/reference/claude-on-amazon-bedrock
# for authentication options
client = AnthropicBedrock()
message = client.messages.create(
model="anthropic.claude-sonnet-4-5-20250929-v1:0",
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)
AWS Bedrock TypeScript
import AnthropicBedrock from "@anthropic-ai/bedrock-sdk";
// See https://docs.claude.com/claude/reference/claude-on-amazon-bedrock
// for authentication options
const client = new AnthropicBedrock();
const msg = await client.messages.create({
model: "anthropic.claude-sonnet-4-5-20250929-v1:0",
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."
}
]
}
]
});
console.log(msg);
Vertex AI Python
from anthropic import AnthropicVertex
client = AnthropicVertex()
message = client.messages.create(
model="claude-sonnet-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)
Vertex AI TypeScript
import { AnthropicVertex } from '@anthropic-ai/vertex-sdk';
// Reads from the `CLOUD_ML_REGION` & `ANTHROPIC_VERTEX_PROJECT_ID` environment variables.
// Additionally goes through the standard `google-auth-library` flow.
const client = new AnthropicVertex();
const msg = await client.messages.create({
model: "claude-sonnet-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."
}
]
}
]
});
console.log(msg);