Replies: 3 comments
-
Hey @LEARNEREA thanks a lot for reporting. Try to print |
Beta Was this translation helpful? Give feedback.
-
I get the same, the error is:
I already got premium OpenAI so need to check why this is coming |
Beta Was this translation helpful? Give feedback.
-
@aiwalter if you mean ChatGPT premium, it doesn't grant unlimited access to the APIs, which are pay-per-use. Check out how to generate a token here: And double check that you have a valid credit card linked to your account. Hope this helps to fix! |
Beta Was this translation helpful? Give feedback.
-
I tried below -
import pandas as pd
import pandasai as PandasAI
import seaborn as sns
from pandasai.llm.openai import OpenAI
df = sns.load_dataset('tips')
from pandasai.llm.openai import OpenAI
from pandasai import PandasAI
llm = OpenAI(api_token='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')
pandas_ai = PandasAI(llm)
pandas_ai.run(df, prompt="What sex have the more smokers?",show_code=True)
the output comes -
'Unfortunately, I was not able to answer your question. Please try again. If the problem persists, try rephrasing your question.'
Beta Was this translation helpful? Give feedback.
All reactions