Class OllamaProvider.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<BaseAIProvider>
io.jenkins.plugins.explain_error.provider.BaseAIProvider.BaseProviderDescriptor
io.jenkins.plugins.explain_error.provider.OllamaProvider.DescriptorImpl
- Enclosing class:
OllamaProvider
@Extension
@Symbol("ollama")
public static class OllamaProvider.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 TypeMethodDescriptiondoCheckUrl(String value) doTestConfiguration(String url, String model) Method to test the AI API configuration.Methods 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
-
doCheckUrl
- Overrides:
doCheckUrlin classBaseAIProvider.BaseProviderDescriptor
-
doTestConfiguration
@POST public FormValidation doTestConfiguration(@QueryParameter("url") String url, @QueryParameter("model") String model) throws ExplanationException Method to test the AI API configuration. This is called when the "Test Configuration" button is clicked.- Throws:
ExplanationException
-