#AttributeError
5 messages · Page 1 of 1 (latest)
Remove the brackets from the prompt
Not enough information to guess. You'd want to look at the call stack or get pycharm and set a break point so you can inspect the variable in memory that lacks the read attribute.
Your prompt object or your api_key object is of the wrong type here, can you print out what prompt and api_key are and verify that both are strings?
I was able to get it to work after setting up virtualenv. I think it’s something to do with my pc, Im getting the same error even when I’m not calling the api