此版本仍在开发中,尚未被视为稳定版本。最新的快照版本请使用 Spring AI 1.0.0-SNAPSHOT!spring-doc.cn

请参阅 Dependency Management 部分,将 Spring AI BOM 添加到您的构建文件中。
财产 描述 违约

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

“来自 Azure AI OpenAI 的密钥”部分位于Keys and EndpointResource Managementspring-doc.cn

-spring-doc.cn

spring.ai.azure.openai.endpointspring-doc.cn

Azure AI OpenAI 部分下的终结点Keys and EndpointResource Managementspring-doc.cn

-spring-doc.cn

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

(非 Azure)OpenAI API 密钥。用于使用 OpenAI 服务进行身份验证,而不是使用 Azure OpenAI 进行身份验证。 这会自动将终端节点设置为 api.openai.com/v1。使用 or 属性。 使用此配置,它作为 OpenAi 模型名称受到威胁。api-keyopenai-api-keyspring.ai.azure.openai.embedding.options.deployment-namespring-doc.cn

-spring-doc.cn

财产 描述 违约

spring.ai.azure.openai.embedding.enabledspring-doc.cn

启用 Azure OpenAI 嵌入模型。spring-doc.cn

spring-doc.cn

spring.ai.azure.openai.embedding.metadata-modespring-doc.cn

文档内容提取模式spring-doc.cn

嵌入spring-doc.cn

spring.ai.azure.openai.embedding.options.deployment-namespring-doc.cn

这是 Azure AI 门户中显示的“部署名称”的值spring-doc.cn

文本嵌入 ADA 002spring-doc.cn

spring.ai.azure.openai.embedding.options.userspring-doc.cn

操作的调用方或最终用户的标识符。这可能用于跟踪或速率限制目的。spring-doc.cn

-spring-doc.cn

通过向调用添加特定于请求的运行时选项,可以在运行时覆盖所有前缀为 的属性。spring.ai.azure.openai.embedding.optionsEmbeddingRequest
请参阅 Dependency Management 部分,将 Spring AI BOM 添加到您的构建文件中。
依赖项还提供对 .有关更多信息,请参阅 Azure OpenAI 嵌入部分spring-ai-azure-openaiAzureOpenAiEmbeddingModelAzureOpenAiChatModel
实际上是 Azure AI 门户中显示的。text-embedding-ada-002Deployment Name