Closed Rainismer closed 1 month ago
'NoneType' object has no attribute 'questions'
following this, I have the same problem. I am running it on a heroku like cloud platform.
@Rainismer issue 465
@anechii I got it. My model and aip key are incorrect.
from vanna.remote import VannaDefault from google.colab import userdata vn = VannaDefault(model='gpt-4o', api_key=userdata.get('OPENAI_API_KEY')) vn.connect_to_sqlite('https://vanna.ai/Chinook.sqlite') vn.ask("What are the top 10 albums by sales?")
'NoneType' object has no attribute 'questions'