接口 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
Generate a response to the given prompt.- 参数:
prompt- the prompt.- 返回:
- the response.
-
generate
Generate a response to the given prompt.- 参数:
prompt- the prompt.- 返回:
- the response.
-