Skip to content

Commit

Permalink
feat: chatGPT official API
Browse files Browse the repository at this point in the history
  • Loading branch information
Zero6992 authored Feb 1, 2023
1 parent a3bd948 commit 865b465
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def get_config() -> dict:

async def handle_response(message) -> str:
response = await sync_to_async(chatbot.ask)(message)

responseMessage = response["choices"][0]["text"]

return responseMessage
return responseMessage

0 comments on commit 865b465

Please sign in to comment.