Skip to content

Commit

Permalink
refactor: Added session_id to generator script
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienHdz committed Oct 16, 2023
1 parent 4b88251 commit 08a9b6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/avatar_assistant_api/api/generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
from api.app_settings import AppSettings


async def get_openai_response(input_message: str) -> str:
async def get_openai_response(session_id: str, input_message: str) -> str:
response = OpenAIChat(AppSettings=AppSettings()).get_response_script(
input_message=input_message
session_id=session_id,
input_message=input_message,
)
return response

Expand Down

0 comments on commit 08a9b6d

Please sign in to comment.