Interface JlamaChatModelConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
JlamaChatModelConfig.BuilderBase.JlamaChatModelConfigImpl
Interface generated from definition. Please add javadoc to the definition interface.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forJlamaChatModelConfig
.static class
JlamaChatModelConfig.BuilderBase<BUILDER extends JlamaChatModelConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends JlamaChatModelConfig> Fluent API builder base forJlamaChatModelConfig
. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The root configuration key for this builder. -
Method Summary
Modifier and TypeMethodDescriptionGenerated fromJlamaChatModel.JlamaChatModelBuilder.authToken(java.lang.String)
static JlamaChatModelConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static JlamaChatModelConfig.Builder
builder
(JlamaChatModelConfig instance) Create a new fluent API builder from an existing instance.default dev.langchain4j.model.jlama.JlamaChatModel.JlamaChatModelBuilder
Skipped: build - doesn't have exactly one parameter toString - doesn't have exactly one parameterstatic JlamaChatModelConfig
create()
Create a new instance with default values.static JlamaChatModelConfig
Deprecated.static JlamaChatModelConfig
Create a new instance from configuration.boolean
enabled()
If set tofalse
(default), JlamaChatModel will not be available even if configured.Generated fromJlamaChatModel.JlamaChatModelBuilder.maxTokens(java.lang.Integer)
Generated fromJlamaChatModel.JlamaChatModelBuilder.modelCachePath(java.nio.file.Path)
Configure the model name.Generated fromJlamaChatModel.JlamaChatModelBuilder.quantizeModelAtRuntime(java.lang.Boolean)
Generated fromJlamaChatModel.JlamaChatModelBuilder.temperature(java.lang.Float)
Generated fromJlamaChatModel.JlamaChatModelBuilder.threadCount(java.lang.Integer)
Generated fromJlamaChatModel.JlamaChatModelBuilder.workingDirectory(java.nio.file.Path)
Optional
<com.github.tjake.jlama.safetensors.DType> Generated fromJlamaChatModel.JlamaChatModelBuilder.workingQuantizedType(com.github.tjake.jlama.safetensors.DType)
-
Field Details
-
CONFIG_ROOT
The root configuration key for this builder.- See Also:
-
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
enabled
boolean enabled()If set tofalse
(default), JlamaChatModel will not be available even if configured.- Returns:
- whether JlamaChatModel is enabled, defaults to
false
-
workingQuantizedType
Optional<com.github.tjake.jlama.safetensors.DType> workingQuantizedType()Generated fromJlamaChatModel.JlamaChatModelBuilder.workingQuantizedType(com.github.tjake.jlama.safetensors.DType)
- Returns:
- DType property
-
modelCachePath
Generated fromJlamaChatModel.JlamaChatModelBuilder.modelCachePath(java.nio.file.Path)
- Returns:
- Path property
-
workingDirectory
Generated fromJlamaChatModel.JlamaChatModelBuilder.workingDirectory(java.nio.file.Path)
- Returns:
- Path property
-
authToken
Generated fromJlamaChatModel.JlamaChatModelBuilder.authToken(java.lang.String)
- Returns:
- String property
-
temperature
Generated fromJlamaChatModel.JlamaChatModelBuilder.temperature(java.lang.Float)
- Returns:
- Float property
-
maxTokens
Generated fromJlamaChatModel.JlamaChatModelBuilder.maxTokens(java.lang.Integer)
- Returns:
- Integer property
-
threadCount
Generated fromJlamaChatModel.JlamaChatModelBuilder.threadCount(java.lang.Integer)
- Returns:
- Integer property
-
quantizeModelAtRuntime
Generated fromJlamaChatModel.JlamaChatModelBuilder.quantizeModelAtRuntime(java.lang.Boolean)
- Returns:
- Boolean property
-
modelName
String modelName()Configure the model name.- Returns:
- model name
-
configuredBuilder
default dev.langchain4j.model.jlama.JlamaChatModel.JlamaChatModelBuilder configuredBuilder()Skipped:- build - doesn't have exactly one parameter
- toString - doesn't have exactly one parameter
Overridden:
JlamaLc4jProvider.modelName()
JlamaLc4jProvider.modelName()
- Returns:
- Actual Lc4j model builder configured with this blueprint.
-
create(io.helidon.config.Config)