Class BBjAdminAIConfig.GitHubCopilot

java.lang.Object
com.basis.api.admin.BBjAdminAIConfig.GitHubCopilot
All Implemented Interfaces:
Serializable
Enclosing class:
BBjAdminAIConfig

public static class BBjAdminAIConfig.GitHubCopilot extends Object implements Serializable
Configuration for the GitHub Copilot / GitHub Models provider.

Requires a GitHub personal access token (PAT) with the models:read permission.

See Also:
  • Constructor Details

    • GitHubCopilot

      public GitHubCopilot()
  • Method Details

    • getToken

      public String getToken()
      GitHub personal access token with models:read permission. Encrypted when saved to disk.
    • setToken

      public void setToken(String token)
    • getModels

      public List<String> getModels()
      Model identifiers as listed in GitHub Models (e.g. gpt-4o). At least one entry is always present.
    • setModels

      public void setModels(List<String> models)
    • addModel

      public void addModel(String model)
      Adds model to the configured list if not already present.
    • removeModel

      public void removeModel(String model)
      Removes model from 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

      public String getDefaultModel()
      Which entry in getModels() is used when a call does not request a specific model.
    • setDefaultModel

      public void setDefaultModel(String defaultModel)
      Sets the default model, adding it to getModels() first if necessary.
    • getModelName

      @Deprecated public String getModelName()
      Deprecated.
    • setModelName

      @Deprecated public void setModelName(String modelName)
      Deprecated.
    • getEndpoint

      public String getEndpoint()
      GitHub Models inference endpoint. Defaults to the public endpoint; override for private deployments.
    • setEndpoint

      public void setEndpoint(String endpoint)
    • 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)