Package io.jenkins.plugins.explain_error
Class OpenAIService
java.lang.Object
io.jenkins.plugins.explain_error.BaseAIService
io.jenkins.plugins.explain_error.OpenAIService
OpenAI-specific implementation of the AI service.
-
Field Summary
Fields inherited from class io.jenkins.plugins.explain_error.BaseAIService
config, LOGGER, MAPPER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpRequest
buildHttpRequest
(HttpRequest.Builder requestBuilder, String requestBody) Build the HTTP request for the specific AI provider.protected String
buildRequestBody
(String prompt) Build the request body for the specific AI provider.protected String
parseResponse
(String responseBody) Parse the response from the specific AI provider.Methods inherited from class io.jenkins.plugins.explain_error.BaseAIService
buildPrompt, explainError, getApiUrl
-
Constructor Details
-
OpenAIService
-
-
Method Details
-
buildHttpRequest
Description copied from class:BaseAIService
Build the HTTP request for the specific AI provider.- Specified by:
buildHttpRequest
in classBaseAIService
-
buildRequestBody
Description copied from class:BaseAIService
Build the request body for the specific AI provider.- Specified by:
buildRequestBody
in classBaseAIService
- Throws:
IOException
-
parseResponse
Description copied from class:BaseAIService
Parse the response from the specific AI provider.- Specified by:
parseResponse
in classBaseAIService
- Throws:
IOException
-