Skip to content
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

Return the messages as well in response for potentially fewer retries. #522

Open
HamzaFarhan opened this issue Mar 22, 2024 · 0 comments
Open

Comments

@HamzaFarhan
Copy link

Is your feature request related to a problem? Please describe.
The model and the user don't know what it took to get the correct response.

Describe the solution you'd like
For each failed attempt, the messages get updated like this:

kwargs["messages"].extend(reask_messages(response, mode, e))

It would be nice to receive the final list of messages in _raw_response that led to a successful response so that it can optionally be used as a starting point for the next request. That way the model can look at its previous mistakes and give the correct response with fewer retries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant