Skip to content

Commit

Permalink
Merge branch 'main' into changeset-release/main
Browse files Browse the repository at this point in the history
  • Loading branch information
marcobottaro authored Jan 15, 2025
2 parents 2875c51 + f25042c commit b87138d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy_chatbot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ jobs:
provenance: false

- name: AWS set lambda function image
env:
CHATBOT_LAMBDA_NAME: ${{ vars.CHATBOT_LAMBDA_NAME }}
run: |
aws lambda update-function-code --function-name ${{ env.CHATBOT_LAMBDA_NAME }} --image-uri ${{ steps.login-ecr.outputs.registry }}/chatbot:${{ github.sha }}
Expand Down
6 changes: 3 additions & 3 deletions apps/chatbot/src/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from botocore.exceptions import BotoCoreError, ClientError
from fastapi import FastAPI, HTTPException, Header
from starlette.middleware.cors import CORSMiddleware
from pydantic import BaseModel
from pydantic import BaseModel, Field

from src.modules.chatbot import Chatbot

Expand All @@ -28,11 +28,11 @@

class QueryFromThePast(BaseModel):
id: str | None = None
question: str
question: str = Field(max_length=800)
answer: str | None = None

class Query(BaseModel):
question: str
question: str = Field(max_length=800)
queriedAt: str | None = None
history: List[QueryFromThePast] | None = None

Expand Down

0 comments on commit b87138d

Please sign in to comment.