vanna-ai / vanna

🤖 Chat with your SQL database 📊. Accurate Text-to-SQL Generation via LLMs using RAG 🔄.
https://vanna.ai/docs/
MIT License
9.4k stars 691 forks source link

NoneType object has no attribute questions #462

Closed Rainismer closed 1 month ago

Rainismer commented 1 month ago

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'

anechii commented 1 month ago

following this, I have the same problem. I am running it on a heroku like cloud platform.

anechii commented 1 month ago

@Rainismer issue 465

Rainismer commented 1 month ago

@anechii I got it. My model and aip key are incorrect.