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

Prompts exceed LLM token limit #393

Open
lauraschauer opened this issue Jul 5, 2024 · 0 comments
Open

Prompts exceed LLM token limit #393

lauraschauer opened this issue Jul 5, 2024 · 0 comments

Comments

@lauraschauer
Copy link
Contributor

If the references of an advisory are too long, prospector crashes because the LLM token limit gets exceeded.

In some cases, a prompt sent to the LLM might exceed its token limit. For example, in the following cases:

  1. When inferring the repository URL: an advisory has a very long description, or (too) many references attached to it.
  2. When using the commit classification rule: a diff is too long.

In SAP models, the _call method returns an HTTPError, which must be caught in the function in llm_service.py that invokes the _call method. Currently, this isn't implemented for getting the repository URL.

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