Package nl.dannyj.mistral.models.model
Class Model
java.lang.Object
nl.dannyj.mistral.models.model.Model
Represents a model available in the Mistral AI API.
-
Constructor Summary
ConstructorsConstructorDescriptionModel()
Model
(String id, String object, long created, String ownedBy, ModelCapabilities capabilities, String name, String description, Integer maxContextLength, List<String> aliases, OffsetDateTime deprecation, Double defaultModelTemperature, String type, String job, String root, Boolean archived) Creates a newModel
instance. -
Method Summary
Modifier and TypeMethodDescriptionA list of aliases for the model.Indicates if the fine-tuned model is archived.The capabilities of the model.long
Creation time of the model in seconds since the Unix epoch.The default sampling temperature for the model.The deprecation date and time for the model.The description of the model.getId()
The ID of the model.getJob()
The ID of the fine-tuning job that created this model.The maximum context length supported by the model.getName()
The name of the model.The object type, which is always "model".Owner of the model.getRoot()
The root model ID from which this fine-tuned model was derived.getType()
The type of the model, e.g., "base" or "fine-tuned".toString()
-
Constructor Details
-
Model
public Model() -
Model
public Model(String id, String object, long created, String ownedBy, ModelCapabilities capabilities, String name, String description, Integer maxContextLength, List<String> aliases, OffsetDateTime deprecation, Double defaultModelTemperature, String type, String job, String root, Boolean archived) Creates a newModel
instance.- Parameters:
id
- The ID of the model. Should be used to refer to the model in other API calls.object
- The object type, which is always "model".created
- Creation time of the model in seconds since the Unix epoch.ownedBy
- Owner of the model. Defaults to "mistralai".capabilities
- The capabilities of the model.name
- The name of the model. Can be null.description
- The description of the model. Can be null.maxContextLength
- The maximum context length supported by the model. Defaults to 32768.aliases
- A list of aliases for the model. Defaults to an empty list.deprecation
- The deprecation date and time for the model. Can be null.defaultModelTemperature
- The default sampling temperature for the model. Can be null.type
- The type of the model, e.g., "base" or "fine-tuned".job
- The ID of the fine-tuning job that created this model. Only present for fine-tuned models.root
- The root model ID from which this fine-tuned model was derived. Only present for fine-tuned models.archived
- Indicates if the fine-tuned model is archived. Defaults to false. Only present for fine-tuned models.
-
-
Method Details
-
getId
The ID of the model. Should be used to refer to the model in other API calls.- Returns:
- The ID of the model.
-
getObject
The object type, which is always "model".- Returns:
- The object type.
-
getCreated
public long getCreated()Creation time of the model in seconds since the Unix epoch.- Returns:
- The creation time of the model in seconds since the Unix epoch.
-
getOwnedBy
Owner of the model. Defaults to "mistralai".- Returns:
- The owner of the model.
-
getCapabilities
The capabilities of the model.- Returns:
- The model capabilities.
-
getName
The name of the model. Can be null.- Returns:
- The name of the model.
-
getDescription
The description of the model. Can be null.- Returns:
- The description of the model.
-
getMaxContextLength
The maximum context length supported by the model. Defaults to 32768.- Returns:
- The maximum context length.
-
getAliases
A list of aliases for the model. Defaults to an empty list.- Returns:
- The list of aliases.
-
getDeprecation
The deprecation date and time for the model. Can be null.- Returns:
- The deprecation date and time.
-
getDefaultModelTemperature
The default sampling temperature for the model. Can be null.- Returns:
- The default model temperature.
-
getType
The type of the model, e.g., "base" or "fine-tuned".- Returns:
- The type of the model.
-
getJob
The ID of the fine-tuning job that created this model. Only present for fine-tuned models.- Returns:
- The job ID.
-
getRoot
The root model ID from which this fine-tuned model was derived. Only present for fine-tuned models.- Returns:
- The root model ID.
-
getArchived
Indicates if the fine-tuned model is archived. Defaults to false. Only present for fine-tuned models.- Returns:
- True if the model is archived, false otherwise.
-
toString
-