类 DisabledModerationModel
java.lang.Object
dev.langchain4j.model.moderation.DisabledModerationModel
- 所有已实现的接口:
ModerationModel
A
ModerationModel which throws a ModelDisabledException for all of its methods
This could be used in tests, or in libraries that extend this one to conditionally enable or disable functionality.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明moderate(ChatMessage message) Moderates the given chat message.moderate(TextSegment textSegment) Moderates the given text segment.Moderates the given prompt.Moderates the given text.moderate(List<ChatMessage> messages) Moderates the given list of chat messages.
-
构造器详细资料
-
DisabledModerationModel
public DisabledModerationModel()
-
-
方法详细资料
-
moderate
从接口复制的说明:ModerationModelModerates the given text.- 指定者:
moderate在接口中ModerationModel- 参数:
text- the text to moderate.- 返回:
- the moderation
Response.
-
moderate
从接口复制的说明:ModerationModelModerates the given prompt.- 指定者:
moderate在接口中ModerationModel- 参数:
prompt- the prompt to moderate.- 返回:
- the moderation
Response.
-
moderate
从接口复制的说明:ModerationModelModerates the given chat message.- 指定者:
moderate在接口中ModerationModel- 参数:
message- the chat message to moderate.- 返回:
- the moderation
Response.
-
moderate
从接口复制的说明:ModerationModelModerates the given list of chat messages.- 指定者:
moderate在接口中ModerationModel- 参数:
messages- the list of chat messages to moderate.- 返回:
- the moderation
Response.
-
moderate
从接口复制的说明:ModerationModelModerates the given text segment.- 指定者:
moderate在接口中ModerationModel- 参数:
textSegment- the text segment to moderate.- 返回:
- the moderation
Response.
-