Settings

org.llm4s.llmconnect.provider.OpenAICompatibleClient.Settings
final case class Settings(providerName: String, displayName: String, model: String, baseUrl: String, apiKey: Option[String], contextWindow: Int, reserveCompletion: Int)

Where an OpenAICompatibleClient sends requests, and how it describes itself.

Value parameters

apiKey

sent as Authorization: Bearer <key>; None sends no Authorization header.

baseUrl

API base URL; requests go to <baseUrl>/chat/completions.

contextWindow

the model's total token capacity.

displayName

human-readable name used in log lines and the "already closed" error, e.g. "DeepSeek".

model

model identifier sent in every request.

providerName

metrics and exchange-log label, and the provider named in mapped HTTP errors, e.g. "deepseek".

reserveCompletion

tokens held back from the prompt for the reply.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product