Class ChatGLM

All Implemented Interfaces:
BaseLanguageModel

public class ChatGLM extends LLM
ChatGLM LLM service.
Author:
HamaWhite
  • Constructor Details

    • ChatGLM

      public ChatGLM()
  • Method Details

    • init

      public ChatGLM init()
    • llmType

      public String llmType()
      Description copied from class: BaseLLM
      Return type of llm.
      Specified by:
      llmType in class BaseLLM
    • innerCall

      public String innerCall(String prompt, List<String> stop)
      Description copied from class: LLM
      Run the LLM on the given prompt and input.
      Specified by:
      innerCall in class LLM
      Parameters:
      prompt - The prompt to pass into the model.
      stop - list of stop words to use when generating.
      Returns:
      The string generated by the model.