MistralConfig

org.llm4s.llmconnect.config.MistralConfig
See theMistralConfig companion class
@Experimental
object MistralConfig

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 apiBaseUrl(baseUrl: String): String

The versioned API base the chat client posts /chat/completions under: the configured root plus /v1, as the model lister's /v1/models is.

The versioned API base the chat client posts /chat/completions under: the configured root plus /v1, as the model lister's /v1/models is.

A base URL that already ends in /v1 is used as it is, so the https://api.mistral.ai/v1 that Mistral's own OpenAI-SDK examples use works too. The old client appended /v1 unconditionally and so posted to /v1/v1/chat/completions for such a URL.

Attributes

def fromValues(modelName: String, apiKey: String, baseUrl: String)(using resolver: ContextWindowResolver): Result[MistralConfig]

Concrete fields

val DEFAULT_BASE_URL: String