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 HttpRequestbuildHttpRequest(HttpRequest.Builder requestBuilder, String requestBody) Build the HTTP request for the specific AI provider.protected StringbuildRequestBody(String prompt) Build the request body for the specific AI provider.protected StringparseResponse(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:BaseAIServiceBuild the HTTP request for the specific AI provider.- Specified by:
buildHttpRequestin classBaseAIService
-
buildRequestBody
Description copied from class:BaseAIServiceBuild the request body for the specific AI provider.- Specified by:
buildRequestBodyin classBaseAIService- Throws:
IOException
-
parseResponse
Description copied from class:BaseAIServiceParse the response from the specific AI provider.- Specified by:
parseResponsein classBaseAIService- Throws:
IOException
-