We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something like a wrapper for this:
import boto3 session = boto3.Session( aws_access_key_id='<insert id>', aws_secret_access_key='<insert key>', region_name='<insert region>' # 'use-east-1' ) client = session.client('bedrock-runtime', '<insert region>') # 'use-east-1' def sut(prompt): conversation = [ { "role": "user", "content": [{"text": prompt}], } ] response = client.converse( modelId="anthropic.claude-3-sonnet-20240229-v1:0",#"meta.llama2-13b-chat-v1", messages=conversation, inferenceConfig={"maxTokens":10,"temperature":0.5,"topP":0.9}, additionalModelRequestFields={} ) # Extract and print the response text. response_text = response["output"]["message"]["content"][0]["text"] return response_text
but with the chat and complete methods.
chat
complete
The text was updated successfully, but these errors were encountered:
teraSurfer40141
Successfully merging a pull request may close this issue.
Something like a wrapper for this:
but with the
chat
andcomplete
methods.The text was updated successfully, but these errors were encountered: