Package com.github.copilot.sdk.json
Class ModelCapabilitiesOverride.Limits
java.lang.Object
com.github.copilot.sdk.json.ModelCapabilitiesOverride.Limits
- Enclosing class:
- ModelCapabilitiesOverride
Token limit overrides for model capabilities.
Set a field to override that limit; leave it null to use the runtime
default.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the maximum context window tokens override.Gets the maximum output tokens override.Gets the maximum prompt tokens override.setMaxContextWindowTokens(Integer maxContextWindowTokens) Sets the maximum total context window size in tokens.setMaxOutputTokens(Integer maxOutputTokens) Sets the maximum number of output tokens.setMaxPromptTokens(Integer maxPromptTokens) Sets the maximum number of tokens in a prompt.
-
Constructor Details
-
Limits
public Limits()
-
-
Method Details
-
getMaxPromptTokens
Gets the maximum prompt tokens override.- Returns:
- the override value, or
nullto use the runtime default
-
setMaxPromptTokens
Sets the maximum number of tokens in a prompt.- Parameters:
maxPromptTokens- the override value, ornullto use the runtime default- Returns:
- this instance for method chaining
-
getMaxOutputTokens
Gets the maximum output tokens override.- Returns:
- the override value, or
nullto use the runtime default
-
setMaxOutputTokens
Sets the maximum number of output tokens.- Parameters:
maxOutputTokens- the override value, ornullto use the runtime default- Returns:
- this instance for method chaining
-
getMaxContextWindowTokens
Gets the maximum context window tokens override.- Returns:
- the override value, or
nullto use the runtime default
-
setMaxContextWindowTokens
Sets the maximum total context window size in tokens.- Parameters:
maxContextWindowTokens- the override value, ornullto use the runtime default- Returns:
- this instance for method chaining
-