接口 LanguageModel

所有已知实现类:
DisabledLanguageModel

public interface LanguageModel
Represents a language model that has a simple text interface (as opposed to a chat interface). It is recommended to use the ChatLanguageModel instead, as it offers more features.
  • 方法详细资料

    • generate

      Response<String> generate(String prompt)
      Generate a response to the given prompt.
      参数:
      prompt - the prompt.
      返回:
      the response.
    • generate

      default Response<String> generate(Prompt prompt)
      Generate a response to the given prompt.
      参数:
      prompt - the prompt.
      返回:
      the response.