You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debugged and working version is below, with logging. Suggest including sample logging in any templates to make it easier to debug and also helps users not so familiar with python upskill faster.
File: src\main.py
👟 Reproduction steps
https://github.com/appwrite/templates/tree/main/python/prompt_chatgpt
Fails to run from the included static HTML test interface.
Always returns "Failed to query model."
👍 Expected behavior
It should work?
👎 Actual Behavior
Always returns "Failed to query model."
No errors as there was no logging.
So I debugged it according to the latest OpenAI library https://github.com/openai/openai-python/tree/main
It appears the OpenAI calls have changed.
Debugged and working version is below, with logging. Suggest including sample logging in any templates to make it easier to debug and also helps users not so familiar with python upskill faster.
File: src\main.py
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Windows
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: