Steve Still says this is a good idea
This commit is contained in:
parent
75cda96395
commit
db78015613
@ -103,7 +103,7 @@ class ReginaldCog(commands.Cog):
|
|||||||
async with session.post(url, headers=headers, json=data) as resp:
|
async with session.post(url, headers=headers, json=data) as resp:
|
||||||
response = await resp.json()
|
response = await resp.json()
|
||||||
|
|
||||||
return response['choices'][0]['message'][0]['content'].strip()
|
return response['choices'][0]['message']['content'].strip()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def split_response(response_text, max_chars):
|
def split_response(response_text, max_chars):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user