-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Milestone
Description
Please do a quick search on GitHub issues first, the feature you are about to request might have already been requested.
Expected Behavior
support imagesPath configuration for OpenAIImageModel , like spring.ai.openai.embedding.embeddings-path.
Current Behavior
Does not support customization, the code is fixed as:v1/images/generations
@see org.springframework.ai.openai.api.OpenAiImageApi#createImage
public ResponseEntity<OpenAiImageResponse> createImage(OpenAiImageRequest openAiImageRequest) {
Assert.notNull(openAiImageRequest, "Image request cannot be null.");
Assert.hasLength(openAiImageRequest.prompt(), "Prompt cannot be empty.");
return this.restClient.post()
.uri("v1/images/generations")
.body(openAiImageRequest)
.retrieve()
.toEntity(OpenAiImageResponse.class);
}Context
Metadata
Metadata
Assignees
Labels
No labels