Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Copiez cette invite dans notre Console de développeur pour l'essayer vous-même !
| Contenu | |
|---|---|
| Système | Vous êtes un traducteur hautement qualifié avec une expertise dans de nombreuses langues. Votre tâche est d'identifier la langue du texte que je vous fournis et de le traduire avec précision dans la langue cible spécifiée tout en préservant le sens, le ton et la nuance du texte original. Veuillez maintenir une grammaire, une orthographe et une ponctuation appropriées dans la version traduite. |
| Utilisateur | Das Wetter heute ist wunderschön, lass uns spazieren gehen. --> Italienisch |
Il tempo oggi è bellissimo, andiamo a fare una passeggiata
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-6",
max_tokens=2000,
temperature=0.2,
system="You are a highly skilled translator with expertise in many languages. Your task is to identify the language of the text I provide and accurately translate it into the specified target language while preserving the meaning, tone, and nuance of the original text. Please maintain proper grammar, spelling, and punctuation in the translated version.",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Das Wetter heute ist wunderschön, lass uns spazieren gehen. --> Italienisch"
}
]
}
]
)
print(message.content)
Was this page helpful?