Record Class ProviderConfig
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ProviderConfig
@Generated("copilot-sdk-codegen")
public record ProviderConfig(ProviderConfigType type, ProviderConfigWireApi wireApi, String baseUrl, String apiKey, String bearerToken, ProviderConfigAzure azure, String modelId, String wireModel, Double maxPromptTokens, Double maxContextWindowTokens, Double maxOutputTokens, Map<String,String> headers)
extends Record
Custom model-provider configuration (BYOK).
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionProviderConfig(ProviderConfigType type, ProviderConfigWireApi wireApi, String baseUrl, String apiKey, String bearerToken, ProviderConfigAzure azure, String modelId, String wireModel, Double maxPromptTokens, Double maxContextWindowTokens, Double maxOutputTokens, Map<String, String> headers) Creates an instance of aProviderConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapiKey()Returns the value of theapiKeyrecord component.azure()Returns the value of theazurerecord component.baseUrl()Returns the value of thebaseUrlrecord component.Returns the value of thebearerTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.Returns the value of themaxContextWindowTokensrecord component.Returns the value of themaxOutputTokensrecord component.Returns the value of themaxPromptTokensrecord component.modelId()Returns the value of themodelIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.wireApi()Returns the value of thewireApirecord component.Returns the value of thewireModelrecord component.
-
Constructor Details
-
ProviderConfig
public ProviderConfig(ProviderConfigType type, ProviderConfigWireApi wireApi, String baseUrl, String apiKey, String bearerToken, ProviderConfigAzure azure, String modelId, String wireModel, Double maxPromptTokens, Double maxContextWindowTokens, Double maxOutputTokens, Map<String, String> headers) Creates an instance of aProviderConfigrecord class.- Parameters:
type- the value for thetyperecord componentwireApi- the value for thewireApirecord componentbaseUrl- the value for thebaseUrlrecord componentapiKey- the value for theapiKeyrecord componentbearerToken- the value for thebearerTokenrecord componentazure- the value for theazurerecord componentmodelId- the value for themodelIdrecord componentwireModel- the value for thewireModelrecord componentmaxPromptTokens- the value for themaxPromptTokensrecord componentmaxContextWindowTokens- the value for themaxContextWindowTokensrecord componentmaxOutputTokens- the value for themaxOutputTokensrecord componentheaders- the value for theheadersrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
wireApi
Returns the value of thewireApirecord component.- Returns:
- the value of the
wireApirecord component
-
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
apiKey
Returns the value of theapiKeyrecord component.- Returns:
- the value of the
apiKeyrecord component
-
bearerToken
Returns the value of thebearerTokenrecord component.- Returns:
- the value of the
bearerTokenrecord component
-
azure
Returns the value of theazurerecord component.- Returns:
- the value of the
azurerecord component
-
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
wireModel
Returns the value of thewireModelrecord component.- Returns:
- the value of the
wireModelrecord component
-
maxPromptTokens
Returns the value of themaxPromptTokensrecord component.- Returns:
- the value of the
maxPromptTokensrecord component
-
maxContextWindowTokens
Returns the value of themaxContextWindowTokensrecord component.- Returns:
- the value of the
maxContextWindowTokensrecord component
-
maxOutputTokens
Returns the value of themaxOutputTokensrecord component.- Returns:
- the value of the
maxOutputTokensrecord component
-
headers
-