Skip to content

Commit

Permalink
feat: successful boto3 upgrade testing prompt generation
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonNotJson committed Oct 23, 2023
1 parent 359a155 commit 0022ff7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/lambda/inject-threads/index.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
from datetime import datetime, timedelta
from utils import JsonPayloadBuilder, resp_handler, generate_prompt

import boto3
import botocore


def handler(event, context):
print('botocore vertion: {0}'.format(botocore.__version__))
print('boto3 vertion: {0}'.format(boto3.__version__))
generate_prompt()
2 changes: 1 addition & 1 deletion src/lambda/inject-threads/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

file_key = 'syllabus/SILS.json'

# bedrock_client = boto3.client('bedrock-runtime', region_name='ap-northeast-1')
bedrock_client = boto3.client('bedrock-runtime', region_name='ap-northeast-1')


class DecimalEncoder(json.JSONEncoder):
Expand Down

0 comments on commit 0022ff7

Please sign in to comment.