Class OllamaProvider
java.lang.Object
hudson.model.AbstractDescribableImpl<BaseAIProvider>
io.jenkins.plugins.explain_error.provider.BaseAIProvider
io.jenkins.plugins.explain_error.provider.ChatModelAIProvider
io.jenkins.plugins.explain_error.provider.OllamaProvider
- All Implemented Interfaces:
ExtensionPoint,Describable<BaseAIProvider>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.jenkins.plugins.explain_error.provider.BaseAIProvider
BaseAIProvider.Assistant, BaseAIProvider.BaseProviderDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class io.jenkins.plugins.explain_error.provider.BaseAIProvider
model, SYSTEM_PROMPT, url, USER_PROMPT_TEMPLATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected dev.langchain4j.model.chat.ChatModelcreateChatModel(Item item, org.springframework.security.core.Authentication authentication, Double temperature) Creates the chat model for one request.booleanisNotValid(TaskListener listener) Methods inherited from class io.jenkins.plugins.explain_error.provider.ChatModelAIProvider
createAssistant, createFixAssistantMethods inherited from class io.jenkins.plugins.explain_error.provider.BaseAIProvider
analyzeError, buildSystemPrompt, buildUserPrompt, createAssistant, createAssistant, createAssistant, createFixAssistant, explainError, explainError, explainError, explainError, explainError, getDescriptor, getEffectiveEndpointForDiagnostics, getModel, getProviderName, getProxyAuthorizationHeader, getUrl, isNotValid, newJenkinsHttpClientBuilder, newLangChainHttpClientBuilder
-
Constructor Details
-
OllamaProvider
-
-
Method Details
-
getApiKey
-
createChatModel
protected dev.langchain4j.model.chat.ChatModel createChatModel(@CheckForNull Item item, @CheckForNull org.springframework.security.core.Authentication authentication, @CheckForNull Double temperature) Description copied from class:ChatModelAIProviderCreates the chat model for one request.- Specified by:
createChatModelin classChatModelAIProvider- Parameters:
item- the item defining the credentials scope, ornullauthentication- the authentication for credentials lookup, ornulltemperature- the temperature to use, ornullfor the provider default- Returns:
- the configured chat model
-
isNotValid
- Specified by:
isNotValidin classBaseAIProvider
-