Class ModelCapabilitiesOverride.Limits

java.lang.Object
com.github.copilot.sdk.json.ModelCapabilitiesOverride.Limits
Enclosing class:
ModelCapabilitiesOverride

public static class ModelCapabilitiesOverride.Limits extends Object
Token limit overrides for model capabilities.

Set a field to override that limit; leave it null to use the runtime default.

  • Constructor Details

    • Limits

      public Limits()
  • Method Details

    • getMaxPromptTokens

      public Integer getMaxPromptTokens()
      Gets the maximum prompt tokens override.
      Returns:
      the override value, or null to use the runtime default
    • setMaxPromptTokens

      public ModelCapabilitiesOverride.Limits setMaxPromptTokens(Integer maxPromptTokens)
      Sets the maximum number of tokens in a prompt.
      Parameters:
      maxPromptTokens - the override value, or null to use the runtime default
      Returns:
      this instance for method chaining
    • getMaxOutputTokens

      public Integer getMaxOutputTokens()
      Gets the maximum output tokens override.
      Returns:
      the override value, or null to use the runtime default
    • setMaxOutputTokens

      public ModelCapabilitiesOverride.Limits setMaxOutputTokens(Integer maxOutputTokens)
      Sets the maximum number of output tokens.
      Parameters:
      maxOutputTokens - the override value, or null to use the runtime default
      Returns:
      this instance for method chaining
    • getMaxContextWindowTokens

      public Integer getMaxContextWindowTokens()
      Gets the maximum context window tokens override.
      Returns:
      the override value, or null to use the runtime default
    • setMaxContextWindowTokens

      public ModelCapabilitiesOverride.Limits setMaxContextWindowTokens(Integer maxContextWindowTokens)
      Sets the maximum total context window size in tokens.
      Parameters:
      maxContextWindowTokens - the override value, or null to use the runtime default
      Returns:
      this instance for method chaining