欢迎光临
我们一直在努力

Azure API Management 添加 Azure OpenAI Response API 支持完整指南

概述

本文详细介绍如何在 Azure API Management (APIM) 中添加对 Azure OpenAI Response API (2025-04-01-preview) 的支持,同时保持现有 Chat Completions API 的正常运行。

背景

Azure OpenAI 在 2025-04-01-preview 版本中引入了新的 Response API,它整合了 Chat Completions 和 Assistants API 的功能,提供了更强大的能力:

  • 统一接口:整合对话和助手功能
  • 多模态支持:支持文本、图像、音频等多种输入输出
  • 推理能力:支持 o1/o3/o4 等推理模型
  • 结构化输出:原生支持 JSON Schema
  • 有状态对话:通过 previous_response_id 链接上下文

架构设计

API 路径设计

Response API 使用不同的路径格式:

传统 Chat Completions: /openai/deployments/{deployment-id}/chat/complet

赞(0)
未经允许不得转载:171主机测评 » Azure API Management 添加 Azure OpenAI Response API 支持完整指南
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址