Class OpenAIService

java.lang.Object
io.codemodder.plugins.llm.OpenAIService

public class OpenAIService extends Object
A custom service class to call the OpenAiApi, since the out-of-the box OpenAiService does not support automatic retries.
  • Constructor Details

    • OpenAIService

      public OpenAIService(String token)
  • Method Details

    • createChatCompletion

      public com.theokanning.openai.completion.chat.ChatCompletionResult createChatCompletion(com.theokanning.openai.completion.chat.ChatCompletionRequest request)