Class AsyncPromptStage

java.lang.Object
bg.codexio.ai.openai.api.sdk.vision.VisionConfigurationStage
bg.codexio.ai.openai.api.sdk.vision.AsyncPromptStage
All Implemented Interfaces:
RuntimeExecutor

public class AsyncPromptStage extends VisionConfigurationStage implements RuntimeExecutor
Sends calls to OpenAI API with the already defined callbacks, and possibly with prompt.
  • Method Details

    • describe

      public AsyncPromise describe(String prompt)
      Sends request to the OpenAI API. Response will be received in the supplied callbacks from previous stage.
      Parameters:
      prompt - user supplied prompt
      Returns:
      AsyncPromise
    • describe

      public AsyncPromise describe()
      Sends request to the OpenAI API. Uses DEFAULT_PROMPT Response will be received in the supplied callbacks from previous stage.
      Returns:
      AsyncPromise