mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
🐛 fix(makeprompt.py): add missing 'depth' parameter to recursive function call to prevent infinite recursion
This commit is contained in:
@@ -161,7 +161,7 @@ async def chatgpt_process(self, msgs, message: discord.Message, api_key, prompt,
|
||||
"Oh uh, it seems like i am calling functions recursively. I will stop now."
|
||||
)
|
||||
raise FuntionCallError("Too many recursive function calls")
|
||||
await chatgpt_process(self, msgs, message, api_key, prompt, model)
|
||||
await chatgpt_process(self, msgs, message, api_key, prompt, model, depth)
|
||||
else:
|
||||
content = response.get("content", "")
|
||||
while len(content) != 0:
|
||||
|
||||
Reference in New Issue
Block a user