ContextLengthError

org.llm4s.error.ContextLengthError
See theContextLengthError companion class

Attributes

Companion
class
Source
ContextLengthError.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply(provider: String, details: String): ContextLengthError

provider refused the request as too long for the model, explaining it with details.

provider refused the request as too long for the model, explaining it with details.

Attributes

Source
ContextLengthError.scala

Extracts the message, provider, limit and requested tokens; the arity is fixed.

Extracts the message, provider, limit and requested tokens; the arity is fixed.

Attributes

Source
ContextLengthError.scala

Concrete fields

val Code: String

The LLMError.code of every context-length error, whichever provider reported it.

The LLMError.code of every context-length error, whichever provider reported it.

Attributes

Source
ContextLengthError.scala