Interface LanguageModelInterface

All Known Implementing Classes:
CohereAIWrapper, OpenAIWrapper

public interface LanguageModelInterface
ImageModelInterface represent the standard methods for any model that generate text.
Author:
github.com/Barqawiz
  • Method Summary

    Modifier and Type
    Method
    Description
    Generate text from remote large language model based on the received prompt.
  • Method Details

    • generateText

      BaseRemoteModel generateText(Map<String,Object> params) throws IOException
      Generate text from remote large language model based on the received prompt.
      Parameters:
      params - key and value for the API parameters.
      Returns:
      BaseRemoteModel or any sub class.
      Throws:
      IOException - if there is an error when connecting to the server.