Class ModalModel


public class ModalModel extends OpenAiCompatibleModel
Specialized model implementation for Modal's GLM-5 endpoint. Configures the specific context limits and reasoning field defaults.
Author:
anahata
  • Constructor Details

    • ModalModel

      public ModalModel(OpenAiChatCompletionsProvider provider, String modelId, String displayName)
      Constructs a new Modal model instance from discrete ID and display name.
      Parameters:
      provider - The owning Modal provider.
      modelId - The stable model ID.
      displayName - The user-facing name.
    • ModalModel

      public ModalModel(OpenAiChatCompletionsProvider provider, com.fasterxml.jackson.databind.JsonNode node)
      Constructs a new Modal model instance from an OpenAI-compatible JSON discovery node.
      Parameters:
      provider - The owning Modal provider.
      node - The JSON metadata for the model.
  • Method Details

    • configure

      private void configure()
      Internal configuration pipeline that applies Modal-specific overrides for context window limits and reasoning field detection.