Class ModalModel
java.lang.Object
uno.anahata.asi.agi.provider.AbstractModel
uno.anahata.asi.openai.compatible.OpenAiCompatibleModel
uno.anahata.asi.modal.ModalModel
Specialized model implementation for Modal's GLM-5 endpoint.
Configures the specific context limits and reasoning field defaults.
- Author:
- anahata
-
Field Summary
Fields inherited from class AbstractModel
defaultTemperature, defaultTopK, defaultTopP, description, enabled, MARKUP_TABLE_HEADER, rawDescription, supportedActions, supportedResponseModalities, tokenizerType -
Constructor Summary
ConstructorsConstructorDescriptionModalModel(OpenAiChatCompletionsProvider provider, com.fasterxml.jackson.databind.JsonNode node) Constructs a new Modal model instance from an OpenAI-compatible JSON discovery node.ModalModel(OpenAiChatCompletionsProvider provider, String modelId, String displayName) Constructs a new Modal model instance from discrete ID and display name. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidInternal configuration pipeline that applies Modal-specific overrides for context window limits and reasoning field detection.Methods inherited from class OpenAiCompatibleModel
buildParametersNode, countTokens, countTokens, countTokens, countTokens, createModelMessage, createResponseWithEstimatedUsage, enrichPayload, generateContent, generateContentStream, getAvailableServerTools, getDefaultServerTools, getEndpoint, getToolDeclarationJson, isSupportsBatchEmbeddings, isSupportsCachedContent, isSupportsContentGeneration, isSupportsEmbeddings, isSupportsFunctionCalling, preparePayloadMethods inherited from class AbstractModel
getModelId, getProviderId, getTokenizerType, hasDiscrepancy, isRegistered, matches, persist, remove, resetFromApi, toMarkupRow, toSafeModelFileName, toString
-
Constructor Details
-
ModalModel
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.
-

