Skip to content

Error with passing in non default prompts. #367

Closed Answered by gventuri
TusharA912 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @TusharA912, you should rather pass the class, not the object.

Try this:

pandas_ai = PandasAI(llm=llm, non_default_prompts={"generate_python_code": GeneratePythonCodePrompt})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gventuri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants