Class CompatOAIPlugin.ModelDefinition

java.lang.Object
com.google.genkit.plugins.compatoai.CompatOAIPlugin.ModelDefinition
Enclosing class:
CompatOAIPlugin

public static class CompatOAIPlugin.ModelDefinition extends Object
Model definition for a compat-oai model.
  • Constructor Details

    • ModelDefinition

      public ModelDefinition(String prefix, String modelId, String label)
      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

      public ModelDefinition(String prefix, String modelId)
      Creates a model definition with auto-generated label.
      Parameters:
      prefix - the plugin prefix
      modelId - the model ID
  • Method Details

    • getFullName

      public String getFullName()
      Gets the full model name (prefix/modelId).
      Returns:
      the full name
    • getLabel

      public String getLabel()
      Gets the display label.
      Returns:
      the label