Skip to content

Commit

Permalink
Merge pull request #20 from nalbam/main
Browse files Browse the repository at this point in the history
chore: Update Python version to 3.11
  • Loading branch information
nalbam authored Aug 22, 2024
2 parents f5c3ebc + 262ce1b commit 234ee29
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 15 deletions.
3 changes: 0 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,3 @@ MODEL_ID_IMAGE="stability.stable-diffusion-xl-v1"
ALLOWED_CHANNEL_IDS="C000000,C000001"

SYSTEM_MESSAGE="너는 AWSKRUG(AWS Korea User Group)에서 친절하게 도움을 주는 구름이(Gurumi)야."

MAX_LEN_SLACK="3000"
MAX_LEN_BEDROCK="4000"
2 changes: 1 addition & 1 deletion .github/workflows/5-sync-notion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
${{ env.AWS_DEST_PATH }}/${{ env.NOTION_PAGE_NAME }}/
- name: Sync to AWS Bedrock Knowledge Base
if: env.ENABLE_NOTION_SYNC == 'Yes'
if: env.ENABLE_NOTION_SYNC == 'Yes' && env.KNOWLEDGE_BASE_ID != 'None' && env.DATA_SOURCE_ID != 'None'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/6-start-ingestion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
python-version: 3.9

- name: Sync to AWS Bedrock Knowledge Base
if: env.ENABLE_NOTION_SYNC == 'Yes'
if: env.ENABLE_NOTION_SYNC == 'Yes' && env.KNOWLEDGE_BASE_ID != 'None' && env.DATA_SOURCE_ID != 'None'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
with:
fetch-depth: 0

- name: Setup Python 3.9 🐍
- name: Setup Python 3.11 🐍
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.11'

- name: Install dependencies
run: npm install
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ dist/
*.log
*.tmp

# serverless
.env
.serverless

# python
venv
*.pyc
staticfiles
.env
db.sqlite3
__pycache__

Expand Down
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"devDependencies": {
"serverless-dotenv-plugin": "^6.0.0",
"serverless-python-requirements": "^6.1.0"
"serverless-python-requirements": "^6.1.1"
}
}
4 changes: 3 additions & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# org: nalbam
app: lambda-gureumi-ai-bot
service: lambda-gurumi-ai-bot
provider:
name: aws
region: us-east-1
runtime: python3.9
runtime: python3.11
# stage: prod
# memorySize: 5120
timeout: 600
Expand Down

0 comments on commit 234ee29

Please sign in to comment.