org.llm4s.llmconnect.config.ContextLimits
See theContextLimits companion object
@Stable
A model's token limits, as a provider config carries them.
Value parameters
- contextWindow
-
the tokens a prompt and its completion may take together
- reserveCompletion
-
the tokens held back from the prompt for the completion Build one with ContextLimits.apply and change it with the
with*setters; the constructor andcopyare private, so a further limit never breaks callers.
Attributes
- Companion
- object
- Source
- ContextWindowResolver.scala
- Graph
-
- Supertypes
Members list
In this article
