Class OpenAICompatibleProvider
java.lang.Object
hudson.model.AbstractDescribableImpl<BaseAIProvider>
io.jenkins.plugins.explain_error.provider.BaseAIProvider
io.jenkins.plugins.explain_error.provider.OpenAICompatibleProvider
- All Implemented Interfaces:
ExtensionPoint,Describable<BaseAIProvider>
Generic provider for any OpenAI-compatible endpoint: LiteLLM, OpenWebUI,
self-hosted AI proxies and enterprise API gateways.
Unlike OpenAIProvider, the API key is optional so that
unauthenticated local gateways and proxies can be used without one.
The model name is free text because gateway model names are defined by the
gateway (e.g. gpt-4o, azure/gpt-4o, claude-3-5-sonnet).
-
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 TypeMethodDescriptioncreateAssistant(Double temperature) Create an assistant with a specific temperature setting.booleanisNotValid(TaskListener listener) Methods inherited from class io.jenkins.plugins.explain_error.provider.BaseAIProvider
buildSystemPrompt, buildUserPrompt, createAssistant, createAssistant, createFixAssistant, explainError, explainError, explainError, explainError, explainError, getDescriptor, getModel, getProviderName, getProxyAuthorizationHeader, getUrl, isNotValid, newJenkinsHttpClientBuilder, newLangChainHttpClientBuilder
-
Constructor Details
-
OpenAICompatibleProvider
-
-
Method Details
-
getApiKey
-
createAssistant
- Specified by:
createAssistantin classBaseAIProvider
-
createAssistant
Description copied from class:BaseAIProviderCreate an assistant with a specific temperature setting.- Overrides:
createAssistantin classBaseAIProvider- Parameters:
temperature- the temperature value, or null to let provider defaults apply- Returns:
- the assistant
-
createFixAssistant
- Specified by:
createFixAssistantin classBaseAIProvider
-
isNotValid
- Specified by:
isNotValidin classBaseAIProvider
-