Settings

org.llm4s.llmconnect.provider.OpenAICompatibleClient.Settings
See theSettings companion object
final case class Settings

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

Value parameters

baseUrl

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

contextWindow

the model's total token capacity.

credential

how requests authenticate; Credential.Anonymous sends no Authorization header.

displayName

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

model

model identifier sent in every request.

network

the proxy and TLS settings every request, and every token exchange, goes through.

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.

timeouts

how long a request and a stream may take; absent values keep this client's defaults.

Attributes

Companion
object
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
def withBaseUrl(baseUrl: String): Settings
def withContextWindow(contextWindow: Int): Settings
def withCredential(credential: Credential): Settings
def withDisplayName(displayName: String): Settings
def withModel(model: String): Settings
def withProviderName(providerName: String): Settings
def withReserveCompletion(reserveCompletion: Int): Settings

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product