Package dev.langchain4j.model.bedrock
Class BedrockStabilityAIChatModel
java.lang.Object
dev.langchain4j.model.bedrock.internal.AbstractBedrockChatModel<BedrockStabilityAIChatModelResponse>
dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel
- All Implemented Interfaces:
dev.langchain4j.model.chat.ChatLanguageModel
public class BedrockStabilityAIChatModel
extends AbstractBedrockChatModel<BedrockStabilityAIChatModelResponse>
Bedrock stability AI model
This is for image generation.
Might not make sense to make it a chat model.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumBedrock Amazon Stability AI model ids -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet model idgetRequestParameters(String prompt) Get request parametersprotected Class<BedrockStabilityAIChatModelResponse> Get response class typeMethods inherited from class dev.langchain4j.model.bedrock.internal.AbstractBedrockChatModel
chatMessageToString, generate, invoke, ofMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.langchain4j.model.chat.ChatLanguageModel
generate, generate, generate, generate
-
Constructor Details
-
BedrockStabilityAIChatModel
public BedrockStabilityAIChatModel()
-
-
Method Details
-
getRequestParameters
Description copied from class:AbstractBedrockChatModelGet request parameters- Specified by:
getRequestParametersin classAbstractBedrockChatModel<BedrockStabilityAIChatModelResponse>- Parameters:
prompt- prompt- Returns:
- request body
-
getModelId
Description copied from class:AbstractBedrockChatModelGet model id- Specified by:
getModelIdin classAbstractBedrockChatModel<BedrockStabilityAIChatModelResponse>- Returns:
- model id
-
getResponseClassType
Description copied from class:AbstractBedrockChatModelGet response class type- Specified by:
getResponseClassTypein classAbstractBedrockChatModel<BedrockStabilityAIChatModelResponse>- Returns:
- response class type
-