Attributes
Members list
Type members
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Builds a config without validating it; fromValues validates and resolves the context window from the model. Every field after model has a default.
Builds a config without validating it; fromValues validates and resolves the context window from the model. Every field after model has a default.
Attributes
The API key and model, every other field at its default: the entry point for Java and Kotlin, which do not see Scala default arguments. Set the rest with the with* setters.
The API key and model, every other field at its default: the entry point for Java and Kotlin, which do not see Scala default arguments. Set the rest with the with* setters.
Attributes
Constructs an XaiConfig, resolving contextWindow and reserveCompletion from the model name automatically.
Constructs an XaiConfig, resolving contextWindow and reserveCompletion from the model name automatically.
Value parameters
- apiKey
-
xAI API key; must be non-empty.
- baseUrl
-
API base URL; must be non-empty. Defaults to XaiConfig.DEFAULT_BASE_URL when loaded via org.llm4s.config.Llm4sConfig.
- modelName
-
Model identifier, e.g.
"grok-4.7".
Attributes
Concrete fields
xAI's API base. Requests go to <baseUrl>/chat/completions.
xAI's API base. Requests go to <baseUrl>/chat/completions.
Attributes
The context window apply uses when none is given; fromValues resolves the model's own.
The completion reserve apply uses when none is given; fromValues resolves the model's own.
The completion reserve apply uses when none is given; fromValues resolves the model's own.