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 OptionalInt getMaxPromptTokens()
      Gets the maximum prompt tokens override.
      Returns:
      the override value, or null to use the runtime default
    • setMaxPromptTokens

      public ModelCapabilitiesOverride.Limits setMaxPromptTokens(int 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
    • clearMaxPromptTokens

      public ModelCapabilitiesOverride.Limits clearMaxPromptTokens()
      Clears the maxPromptTokens setting, reverting to the default behavior.
      Returns:
      this instance for method chaining
    • getMaxOutputTokens

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

      public ModelCapabilitiesOverride.Limits setMaxOutputTokens(int 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
    • clearMaxOutputTokens

      public ModelCapabilitiesOverride.Limits clearMaxOutputTokens()
      Clears the maxOutputTokens setting, reverting to the default behavior.
      Returns:
      this instance for method chaining
    • getMaxContextWindowTokens

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

      public ModelCapabilitiesOverride.Limits setMaxContextWindowTokens(int 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
    • clearMaxContextWindowTokens

      public ModelCapabilitiesOverride.Limits clearMaxContextWindowTokens()
      Clears the maxContextWindowTokens setting, reverting to the default behavior.
      Returns:
      this instance for method chaining