mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Update
This commit is contained in:
@@ -113,6 +113,8 @@ async def get_completion(message: str) -> str:
|
||||
|
||||
data = response.json()
|
||||
|
||||
logger.info(f"Got completion: {data}")
|
||||
|
||||
return data["choices"][0]["message"]["content"]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user