This version is still in development and is not considered stable yet. For the latest snapshot version, please use Spring AI 1.0.0-SNAPSHOT!spring-doc.cn

Refer to the Dependency Management section to add the Spring AI BOM to your build file.

Propertyspring-doc.cn

Descriptionspring-doc.cn

Defaultspring-doc.cn

spring.ai.openai.base-urlspring-doc.cn

The URL to connect tospring-doc.cn

api.openai.comspring-doc.cn

spring.ai.openai.api-keyspring-doc.cn

The API Keyspring-doc.cn

-spring-doc.cn

spring.ai.openai.organization-idspring-doc.cn

Optionally you can specify which organization is used for an API request.spring-doc.cn

-spring-doc.cn

spring.ai.openai.project-idspring-doc.cn

Optionally, you can specify which project is used for an API request.spring-doc.cn

-spring-doc.cn

For users that belong to multiple organizations (or are accessing their projects through their legacy user API key), optionally, you can specify which organization and project is used for an API request. Usage from these API requests will count as usage for the specified organization and project.

Propertyspring-doc.cn

Descriptionspring-doc.cn

Defaultspring-doc.cn

spring.ai.openai.moderation.base-urlspring-doc.cn

The URL to connect tospring-doc.cn

api.openai.comspring-doc.cn

spring.ai.openai.moderation.api-keyspring-doc.cn

The API Keyspring-doc.cn

-spring-doc.cn

spring.ai.openai.moderation.organization-idspring-doc.cn

Optionally you can specify which organization is used for an API request.spring-doc.cn

-spring-doc.cn

spring.ai.openai.moderation.project-idspring-doc.cn

Optionally, you can specify which project is used for an API request.spring-doc.cn

-spring-doc.cn

spring.ai.openai.moderation.options.modelspring-doc.cn

ID of the model to use for moderation.spring-doc.cn

text-moderation-latestspring-doc.cn

You can override the common spring.ai.openai.base-url, spring.ai.openai.api-key, spring.ai.openai.organization-id and spring.ai.openai.project-id properties. The spring.ai.openai.moderation.base-url, spring.ai.openai.moderation.api-key, spring.ai.openai.moderation.organization-id and spring.ai.openai.moderation.project-id properties, if set, take precedence over the common properties. This is useful if you want to use different OpenAI accounts for different models and different model endpoints.
All properties prefixed with spring.ai.openai.moderation.options can be overridden at runtime.
Refer to the Dependency Management section to add the Spring AI BOM to your build file.