feat(generation): enforce prompt budget with whole article eviction (#47)
This commit is contained in:
@ -7,6 +7,8 @@ const UTF8UpperBound = "utf8_bytes_upper_bound_v1"
|
||||
|
||||
var ErrUnknown = errors.New("summary_capacity_unknown")
|
||||
var ErrExceeded = errors.New("summary_prompt_budget_exceeded")
|
||||
var ErrFixedContextExceeded = errors.New("summary_fixed_context_budget_exceeded")
|
||||
var ErrNoArticlesFit = errors.New("no_articles_fit_prompt_budget")
|
||||
|
||||
type Profile struct {
|
||||
ContextWindowTokens int `json:"context_window_tokens"`
|
||||
|
||||
Reference in New Issue
Block a user