ProviderConfigContext

org.llm4s.llmconnect.spi.ProviderConfigContext
See theProviderConfigContext companion object
@Stable
final case class ProviderConfigContext

What ProviderDescriptor.buildConfig is given besides the section itself.

One value rather than a list of parameters, so that something a later provider needs is a new field here and not a new signature for every descriptor.

Value parameters

contextWindows

resolves a model's context window and output reserve; a config's fromValues takes it as a using parameter, so a descriptor usually starts with given ContextWindowResolver = context.contextWindows

providerName

the user's name for the section (llm4s.providers.<name>), for error messages and for the ProviderDescriptor.require* helpers

Attributes

Companion
object
Source
ProviderContext.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Sets the resolver of context windows.

Sets the resolver of context windows.

Attributes

Source
ProviderContext.scala

Sets the section name used in error messages.

Sets the section name used in error messages.

Attributes

Source
ProviderContext.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product