Class ImmediateContextStage

    • Method Detail

      • askRaw

        public bg.codexio.ai.openai.api.payload.chat.response.ChatMessageResponse askRaw​(String... questions)
        Sends request to the OpenAI API.
        Parameters:
        questions - user supplied prompt
        Returns:
        raw ChatMessageResponse
      • ask

        public String ask​(String... questions)
        Sends request to the OpenAI API.
        Parameters:
        questions - user supplied prompt
        Returns:
        string with the answer