-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add better error message when the tableinfo method return too much info #662
add better error message when the tableinfo method return too much info #662
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
return; | ||
} | ||
const promptTemplate = this.prompt.template; | ||
const stringWeSend = `${inputText}${promptTemplate}${tableinfo}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's an easy to understand approximation of the final string
I did this PR because the current error message (a 400 from the API) is not really helping to debug and I was asked for help to debug this kind of error on discord. The python error message is a bit better but we could also back port this in the python version. ping @hwchase17 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks pretty good to me! thanks for the improvement
…fo to be passed to openai and it reaches the token limit
939544e
to
7cb9b88
Compare
Thanks! |
No description provided.