Package io.codemodder.plugins.llm
Class OpenAIService
java.lang.Object
io.codemodder.plugins.llm.OpenAIService
A custom service class to call the
OpenAiApi
, since the out-of-the box OpenAiService
does not support
automatic retries.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.theokanning.openai.completion.chat.ChatCompletionResult
createChatCompletion
(com.theokanning.openai.completion.chat.ChatCompletionRequest request)
-
Constructor Details
-
OpenAIService
-
-
Method Details
-
createChatCompletion
public com.theokanning.openai.completion.chat.ChatCompletionResult createChatCompletion(com.theokanning.openai.completion.chat.ChatCompletionRequest request)
-