此版本仍在开发中,尚未被视为稳定版本。最新的快照版本请使用 Spring AI 1.0.0-SNAPSHOT! |
请参阅 Dependency Management 部分,将 Spring AI BOM 添加到您的构建文件中。 |
财产 |
描述 |
违约 |
spring.ai.azure.openai.image.enabled |
启用 OpenAI 图像模型。 |
真 |
spring.ai.azure.openai.image.options.n |
要生成的图像数。必须介于 1 和 10 之间。对于 dall-e-3,仅支持 n=1。 |
- |
spring.ai.azure.openai.image.options.model |
用于图像生成的模型。 |
AzureOpenAiImageOptions.DEFAULT_IMAGE_MODEL |
spring.ai.azure.openai.image.options.quality |
将生成的图像质量。HD 创建的图像具有更精细的细节和更高的图像一致性。此参数仅支持 dall-e-3。 |
- |
spring.ai.azure.openai.image.options.response_format |
返回生成图像的格式。必须是 URL 或 b64_json 之一。 |
- |
|
生成的图像的大小。对于 dall-e-2,必须是 256x256、512x512 或 1024x1024 之一。对于 dall-e-3 型号,必须是 1024x1024、1792x1024 或 1024x1792 之一。 |
- |
|
生成的图像的宽度。必须是 dall-e-2 的 256、512 或 1024 之一。 |
- |
|
生成图像的高度。必须是 dall-e-2 的 256、512 或 1024 之一。 |
- |
|
生成的图像的样式。必须是生动或自然的。Vivid 使模型倾向于生成超真实和戏剧性的图像。自然 使模型生成更自然、外观更不真实的图像。此参数仅支持 dall-e-3。 |
- |
|
代表最终用户的唯一标识符,可帮助 Azure OpenAI 监视和检测滥用情况。 |
- |
财产 |
描述 |
违约 |
spring.ai.azure.openai.endpoint |
要连接到的 URL |
|
spring.ai.azure.openai.apiKey |
API 密钥 |
- |
除了特定于模型的 AzureOpenAiImageOptions 之外,还可以使用通过 ImageOptionsBuilder#builder() 创建的可移植 ImageOptions 实例。 |