Skip to content

[bug] Ask can throw "prompt is too long: x tokens > y maximum" #911

@brendan-kellam

Description

@brendan-kellam

Describe the bug

Ask can sometimes throw a "prompt is too long" error when making a API call with too many tokens, likely exceeding the context window of the provider LLM.

To reproduce

todo

Sourcebot deployment information

Sourcebot version (e.g. v3.0.1): latest

Additional information

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions