Skip to content

Enum: ModelType

LiteLLM model contract selector understood by dspy.LM.

URI: dspy:ModelType

Permissible Values

Value Meaning Description
chat None Chat-completion API contract
text None Legacy text-completion API contract
responses None OpenAI Responses API contract

Slots

Name Description
model_type Which LiteLLM API contract to use (chat / text / responses)

Identifier and Mapping Information

Schema Source

LinkML Source

name: ModelType
description: LiteLLM model contract selector understood by ``dspy.LM``.
from_schema: https://w3id.org/lmodel/dspy
related_mappings:
- nexus:LargeLanguageModelFamily
- iso22989:MachineLearningParadigm
rank: 1000
permissible_values:
  chat:
    text: chat
    description: Chat-completion API contract.
  text:
    text: text
    description: Legacy text-completion API contract.
  responses:
    text: responses
    description: OpenAI Responses API contract.