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

Inference Provider exceptions terminate the chain of thought #56

Closed
cyberkaida opened this issue May 17, 2024 · 0 comments
Closed

Inference Provider exceptions terminate the chain of thought #56

cyberkaida opened this issue May 17, 2024 · 0 comments
Labels
bug Something isn't working reva-server 🦾 - Related to the API server component

Comments

@cyberkaida
Copy link
Owner

When the model requests a large amount of data, it can be bigger than the model's context window. We should return this exception to the model and tell it to reduce the page size or continue without that tool response.

Right now it throws an exception and aborts the chain.

We need to catch the right exception, add response to the history and then continue the chain of thoughts.

When an API error happens we reach the Exception handler here:

@cyberkaida cyberkaida added bug Something isn't working reva-server 🦾 - Related to the API server component labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reva-server 🦾 - Related to the API server component
Projects
None yet
Development

No branches or pull requests

1 participant