【优化】调整imageSize

This commit is contained in:
cherishsince 2024-04-28 14:38:25 +08:00
parent 7d3ed1fef3
commit 307e08435d
1 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ public class OpenAiImageOptions implements ImageOptions {
// 可选字段默认为dall-e-2
// 指定用于生成图像的模型名称
private String model = "dall-e-2";
private OpenAiImageModelEnum model = OpenAiImageModelEnum.DALL_E_2;
// 可选字段默认为1
// 生成图像的数量必须在1到10之间对于dall-e-3模型目前仅支持n=1
@ -38,7 +38,7 @@ public class OpenAiImageOptions implements ImageOptions {
// 可选字段默认为1024x1024
// 生成图像的尺寸大小对于dall-e-2模型尺寸可为256x256, 512x512, 1024x1024对于dall-e-3模型尺寸可为1024x1024, 1792x1024, 1024x1792
private String imageSize = "1024x1024";
private String size = "1024x1024";
// 可选字段默认为vivid
// 图像生成的风格可为vivid生动或natural自然vivid会使模型偏向生成超现实和戏剧性的图像而natural则会让模型产出更自然不那么超现实的图像该参数仅对dall-e-3模型有效
@ -73,7 +73,7 @@ public class OpenAiImageOptions implements ImageOptions {
@Override
public String getModel() {
return this.model;
return this.model.getModel();
}
@Override