Class AzureOpenAiProviderConfig
java.lang.Object
hudson.model.AbstractDescribableImpl<AiProviderConfig>
io.jenkins.plugins.changeinvestigator.ai.provider.AiProviderConfig
io.jenkins.plugins.changeinvestigator.ai.provider.AzureOpenAiProviderConfig
- All Implemented Interfaces:
Describable<AiProviderConfig>,Serializable
Azure OpenAI, using the classic dated-
api-version REST surface. See
AzureOpenAiProvider for the wire contract and why the generic OpenAI-compatible
adapter cannot express it.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.jenkins.plugins.changeinvestigator.ai.provider.AiProviderConfig
AiProviderConfig.AiProviderConfigDescriptor -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringLast GA (non-preview) dated api-version for chat completions as of this plugin release. -
Constructor Summary
ConstructorsConstructorDescriptionAzureOpenAiProviderConfig(String endpoint, String deploymentName, String credentialsId) -
Method Summary
Modifier and TypeMethodDescriptioncreateProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper, int timeoutSeconds) Builds a provider bound to this configuration's resolved settings, ready to make one (or more)AiProvider.chatCompletion(io.jenkins.plugins.changeinvestigator.ai.AiAnalysisRequest)calls.getModel()The deployment name doubles as the model identifier for display, since it determines the model on Azure's side.voidsetApiVersion(String apiVersion) Methods inherited from class io.jenkins.plugins.changeinvestigator.ai.provider.AiProviderConfig
testConnectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Field Details
-
DEFAULT_API_VERSION
Last GA (non-preview) dated api-version for chat completions as of this plugin release.- See Also:
-
-
Constructor Details
-
AzureOpenAiProviderConfig
-
-
Method Details
-
getEndpoint
-
getDeploymentName
-
getCredentialsId
-
getApiVersion
-
setApiVersion
-
getModel
The deployment name doubles as the model identifier for display, since it determines the model on Azure's side.- Specified by:
getModelin classAiProviderConfig
-
createProvider
public AiProvider createProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper, int timeoutSeconds) Description copied from class:AiProviderConfigBuilds a provider bound to this configuration's resolved settings, ready to make one (or more)AiProvider.chatCompletion(io.jenkins.plugins.changeinvestigator.ai.AiAnalysisRequest)calls. Resolving the credential happens inside this method, not before it, so the plaintext secret's lifetime is limited to the call that actually needs it.- Specified by:
createProviderin classAiProviderConfig- Parameters:
objectMapper- shared Jackson mapper for building/parsing request and response JSONtimeoutSeconds- administrator-configured connect/request timeout (a global, not per-provider, setting - seeChangeInvestigatorGlobalConfiguration)
-