Package com.basis.api.admin
Class BBjAdminAIConfig.GitHubCopilot
java.lang.Object
com.basis.api.admin.BBjAdminAIConfig.GitHubCopilot
- All Implemented Interfaces:
Serializable
- Enclosing class:
BBjAdminAIConfig
Configuration for the GitHub Copilot / GitHub Models provider.
Requires a GitHub personal access token (PAT) with the
models:read permission.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAddsmodelto the configured list if not already present.Which entry ingetModels()is used when a call does not request a specific model.GitHub Models inference endpoint.intMaximum tokens to generate (0 = model default).Deprecated.Model identifiers as listed in GitHub Models (e.g.doubleSampling temperature 0.0–1.0 (default 0.1).intHTTP request timeout in seconds (default 60).getToken()GitHub personal access token withmodels:readpermission.voidremoveModel(String model) Removesmodelfrom the configured list.voidsetDefaultModel(String defaultModel) Sets the default model, adding it togetModels()first if necessary.voidsetEndpoint(String endpoint) voidsetMaxTokens(int maxTokens) voidsetModelName(String modelName) Deprecated.voidvoidsetTemperature(double temperature) voidsetTimeoutSeconds(int timeoutSeconds) void
-
Constructor Details
-
GitHubCopilot
public GitHubCopilot()
-
-
Method Details
-
getToken
GitHub personal access token withmodels:readpermission. Encrypted when saved to disk. -
setToken
-
getModels
Model identifiers as listed in GitHub Models (e.g.gpt-4o). At least one entry is always present. -
setModels
-
addModel
Addsmodelto the configured list if not already present. -
removeModel
Removesmodelfrom the configured list. A provider must always have at least one model, so the last remaining entry cannot be removed. If the removed model was the default, the first remaining model becomes the new default. -
getDefaultModel
Which entry ingetModels()is used when a call does not request a specific model. -
setDefaultModel
Sets the default model, adding it togetModels()first if necessary. -
getModelName
Deprecated.usegetDefaultModel(). -
setModelName
Deprecated. -
getEndpoint
GitHub Models inference endpoint. Defaults to the public endpoint; override for private deployments. -
setEndpoint
-
getTimeoutSeconds
public int getTimeoutSeconds()HTTP request timeout in seconds (default 60). -
setTimeoutSeconds
public void setTimeoutSeconds(int timeoutSeconds) -
getMaxTokens
public int getMaxTokens()Maximum tokens to generate (0 = model default). -
setMaxTokens
public void setMaxTokens(int maxTokens) -
getTemperature
public double getTemperature()Sampling temperature 0.0–1.0 (default 0.1). -
setTemperature
public void setTemperature(double temperature)
-
getDefaultModel().