OpenAICompatibleConfig

org.llm4s.llmconnect.config.OpenAICompatibleConfig
See theOpenAICompatibleConfig companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromValues(model: String, baseUrl: String, apiKey: Option[String], contextWindow: Option[Int], reserveCompletion: Option[Int], headers: Map[String, String]): Result[OpenAICompatibleConfig]

Builds and validates a config.

Builds and validates a config.

Attributes

Returns

Left(ConfigurationError) for a blank model or baseUrl, a non-positive context window, or a reserve that is negative or does not leave room for a prompt. A blank apiKey is treated as none.

Concrete fields

Context window used when config sets none: 8192 tokens, small enough that any current chat model accepts it.

Context window used when config sets none: 8192 tokens, small enough that any current chat model accepts it.

Attributes

Completion reserve used when config sets none.

Completion reserve used when config sets none.

Attributes

val ProviderIdName: String

The provider id, as written in provider = "openai-compatible".

The provider id, as written in provider = "openai-compatible".

Attributes