This commit is contained in:
Иван 2025-05-23 23:15:02 -03:00 committed by GitHub
commit 5f6dced05a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,6 +170,7 @@ And answer according to the language of the user's question.""",
response = r.json()
content = response["choices"][0]["message"]["content"]
content = content[content.find('{'):content.rfind('}') + 1]
# Parse the function response
if content != "":