Class AnthropicProvider.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<BaseAIProvider>
io.jenkins.plugins.explain_error.provider.BaseAIProvider.BaseProviderDescriptor
io.jenkins.plugins.explain_error.provider.AnthropicProvider.DescriptorImpl
- Enclosing class:
AnthropicProvider
@Extension
@Symbol("anthropic")
public static class AnthropicProvider.DescriptorImpl
extends BaseAIProvider.BaseProviderDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoAutoCompleteModel(String value) doTestConfiguration(Secret apiKey, String credentialsId, String url, String model, Integer maxTokens) Method to test the AI API configuration.intMethods inherited from class io.jenkins.plugins.explain_error.provider.BaseAIProvider.BaseProviderDescriptor
doCheckUrlMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<BaseAIProvider>
-
getDefaultModel
- Specified by:
getDefaultModelin classBaseAIProvider.BaseProviderDescriptor
-
getDefaultMaxTokens
public int getDefaultMaxTokens() -
doAutoCompleteModel
-
doTestConfiguration
@POST public FormValidation doTestConfiguration(@QueryParameter("apiKey") Secret apiKey, @QueryParameter("credentialsId") String credentialsId, @QueryParameter("url") String url, @QueryParameter("model") String model, @QueryParameter("maxTokens") Integer maxTokens) throws ExplanationException Method to test the AI API configuration. This is called when the "Test Configuration" button is clicked.- Throws:
ExplanationException
-