You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importAnthropicBedrockfrom'@anthropic-ai/bedrock-sdk';constclient=newAnthropicBedrock();asyncfunctionmain(prompt){constmessage=awaitclient.messages.create({max_tokens: 1,stream: false,messages: [{role: 'user',content: prompt}],model: 'anthropic.claude-3-sonnet-20240229-v1:0',});console.log('Response content: ',message.content);}awaitmain('Explain quantum mechanics to a five year old');// [] <-- ERRORawaitmain('Translate Hello into French and Spanish');// [ { type: 'text', text: 'Here' } ]
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: