1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
@Dipika Thanks for reaching out.
As the error message says, there has been a validation error for the input prompt. Not all FMs have the same input prompt format. For instance: The input prompt format for Claude is as below.
# Claude requires you to enclose the prompt as follows:
enclosed_prompt = "Human: " + prompt + "\n\nAssistant:"
body = {
"prompt": enclosed_prompt,
"max_tokens_to_sample": 200,
"temperature": 0.5,
"stop_sequences": ["\n\nHuman:"],
}
Please find the detailed examples here for different programming languages:
https://docs.aws.amazon.com/code-library/latest/ug/bedrock-runtime_code_examples_actions.html
Thanks, Arjun
répondu il y a 5 mois
Contenus pertinents
- demandé il y a 3 mois
- demandé il y a 7 mois
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an