Class CompatOAIPlugin.ModelDefinition
java.lang.Object
com.google.genkit.plugins.compatoai.CompatOAIPlugin.ModelDefinition
- Enclosing class:
CompatOAIPlugin
Model definition for a compat-oai model.
-
Constructor Summary
ConstructorsConstructorDescriptionModelDefinition(String prefix, String modelId) Creates a model definition with auto-generated label.ModelDefinition(String prefix, String modelId, String label) Creates a model definition. -
Method Summary
Modifier and TypeMethodDescriptionGets the full model name (prefix/modelId).getLabel()Gets the display label.
-
Constructor Details
-
ModelDefinition
Creates a model definition.- Parameters:
prefix- the plugin prefix (e.g., "my-provider")modelId- the model ID (e.g., "my-model-v1")label- the display label (e.g., "My Provider my-model-v1")
-
ModelDefinition
Creates a model definition with auto-generated label.- Parameters:
prefix- the plugin prefixmodelId- the model ID
-
-
Method Details
-
getFullName
Gets the full model name (prefix/modelId).- Returns:
- the full name
-
getLabel
Gets the display label.- Returns:
- the label
-