Package dev.langchain4j.model.bedrock
Class BedrockStabilityAIChatModel
java.lang.Object
dev.langchain4j.model.bedrock.internal.AbstractSharedBedrockChatModel
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 -
Field Summary
Fields inherited from class dev.langchain4j.model.bedrock.internal.AbstractSharedBedrockChatModel
anthropicVersion, ASSISTANT_PROMPT, assistantPrompt, credentialsProvider, DEFAULT_ANTHROPIC_VERSION, HUMAN_PROMPT, humanPrompt, maxRetries, maxTokens, region, stopSequences, temperature, topK, topP -
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
generate, invoke, ofMethods inherited from class dev.langchain4j.model.bedrock.internal.AbstractSharedBedrockChatModel
chatMessageToString, convertMessagesToAwsBodyMethods 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
chat, generate, generate, generate, generate, supportedCapabilities
-
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:AbstractSharedBedrockChatModelGet model id- Specified by:
getModelIdin classAbstractSharedBedrockChatModel- Returns:
- model id
-
getResponseClassType
Description copied from class:AbstractBedrockChatModelGet response class type- Specified by:
getResponseClassTypein classAbstractBedrockChatModel<BedrockStabilityAIChatModelResponse>- Returns:
- response class type
-