Package dev.langchain4j.model.zhipu
Class ZhipuAiImageModel
java.lang.Object
dev.langchain4j.model.zhipu.ZhipuAiImageModel
- All Implemented Interfaces:
ImageModel
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionZhipuAiImageModel
(String model, String userId, String apiKey, String baseUrl, Integer maxRetries, Boolean logRequests, Boolean logResponses, Duration callTimeout, Duration connectTimeout, Duration readTimeout, Duration writeTimeout) Instantiates ZhipuAi cogview-3 image processing model. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.langchain4j.model.image.ImageModel
edit, edit, generate
-
Constructor Details
-
ZhipuAiImageModel
public ZhipuAiImageModel(String model, String userId, String apiKey, String baseUrl, Integer maxRetries, Boolean logRequests, Boolean logResponses, Duration callTimeout, Duration connectTimeout, Duration readTimeout, Duration writeTimeout) Instantiates ZhipuAi cogview-3 image processing model. Find the parameters description here.- Parameters:
model
- cogview-3 is defaultuserId
- A unique identifier representing your end-user, which can help ZhipuAI to monitor and detect abuse. User ID length requirement: minimum of 6 characters, maximum of 128 characters
-
-
Method Details
-
builder
-
generate
Description copied from interface:ImageModel
Given a prompt, generate an image.- Specified by:
generate
in interfaceImageModel
- Parameters:
prompt
- The prompt to generate an image from.- Returns:
- The generated image Response.
-