{"id":254,"date":"2025-05-01T19:46:54","date_gmt":"2025-05-01T11:46:54","guid":{"rendered":"https:\/\/zhuchenyu.cn\/?p=254"},"modified":"2025-05-01T19:57:08","modified_gmt":"2025-05-01T11:57:08","slug":"%e8%a7%a3%e5%86%b3%e5%90%8c%e6%97%b6%e8%bf%90%e8%a1%8c%e5%a4%9a%e4%b8%aa-azure-openai-pipe-%e5%ae%9e%e4%be%8b%e7%9a%84%e5%86%b2%e7%aa%81%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.zhuchenyu.cn\/?p=254","title":{"rendered":"\u89e3\u51b3\u540c\u65f6\u8fd0\u884c\u591a\u4e2a Azure OpenAI Pipe \u5b9e\u4f8b\u7684\u51b2\u7a81\u95ee\u9898"},"content":{"rendered":"<p><!-- Blog Post: \u89e3\u51b3\u540c\u65f6\u4f7f\u7528\u4e24\u4e2a Azure OpenAI Pipe \u5b9e\u4f8b\u65f6\u62a5\u9519\u7684\u95ee\u9898 --><\/p>\n<article>\u6211\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u9700\u8981\u540c\u65f6\u8fd0\u884c\u4e24\u4e2a <code>Azure OpenAI Pipe<\/code> \u5b9e\u4f8b\uff0c\u4ee5\u8fde\u63a5\u5230\u4e0d\u540c\u7684 Azure OpenAI \u670d\u52a1\uff08\u4e0d\u540c\u6a21\u578b\u6216\u914d\u7f6e\uff09\u3002<br \/>\n\u4f46\u662f\u5728\u8fd0\u884c\u65f6\u5374\u51fa\u73b0\u4e86\u62a5\u9519\uff0cAPI \u8bf7\u6c42\u5931\u8d25\u3002\u8fd9\u8ba9\u6211\u610f\u8bc6\u5230\uff0c\u8fd9\u4e24\u4e2a\u5b9e\u4f8b\u53ef\u80fd\u5728\u914d\u7f6e\u4e0a\u53d1\u751f\u4e86\u51b2\u7a81\u3002<\/p>\n<h2>\u95ee\u9898\u5206\u6790<\/h2>\n<p>\u539f\u59cb <code>Pipe<\/code> \u7c7b\u4f7f\u7528\u7684\u662f\u56fa\u5b9a\u7684\u73af\u5883\u53d8\u91cf\u540d\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><code>AZURE_OPENAI_API_KEY_GPT\nAZURE_OPENAI_ENDPOINT_GPT\nAZURE_OPENAI_DEPLOYMENT_NAME_GPT\nAZURE_OPENAI_API_VERSION_GPT<\/code><\/pre>\n<p>\u5f53\u6211\u4eec\u5728\u540c\u4e00\u4e2a\u8fdb\u7a0b\u4e2d\u8fd0\u884c\u4e24\u4e2a\u5b9e\u4f8b\u65f6\uff0c\u5b83\u4eec\u5171\u7528\u4e86\u540c\u4e00\u5957\u73af\u5883\u53d8\u91cf\uff0c\u56e0\u6b64\u65e0\u6cd5\u6b63\u786e\u533a\u5206\u5404\u81ea\u7684\u914d\u7f6e\u4fe1\u606f\uff0c\u4ece\u800c\u5bfc\u81f4 API \u8bf7\u6c42\u51fa\u9519\u3002<\/p>\n<h2>\u89e3\u51b3\u65b9\u6848<\/h2>\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4f7f\u7528\u4e86\u300c\u65b9\u6cd5\u4e00\u300d\uff1a<strong>\u4e3a\u6bcf\u4e2a\u5b9e\u4f8b\u521b\u5efa\u72ec\u7acb\u7684\u7c7b\u548c\u73af\u5883\u53d8\u91cf\u524d\u7f00<\/strong>\u3002<\/p>\n<p>\u6211\u5c06\u539f\u6709\u7684 Pipe \u7c7b\u590d\u5236\u4e3a <code>Pipe1<\/code> \u548c <code>Pipe2<\/code>\uff0c\u5e76\u5206\u522b\u5f15\u7528\u4ee5\u4e0b\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<h3>Pipe1 \u73af\u5883\u53d8\u91cf\uff1a<\/h3>\n<ul>\n<li><code>AZURE_OPENAI_API_KEY_1<\/code><\/li>\n<li><code>AZURE_OPENAI_ENDPOINT_1<\/code><\/li>\n<li><code>AZURE_OPENAI_DEPLOYMENT_NAME_1<\/code><\/li>\n<li><code>AZURE_OPENAI_API_VERSION_1<\/code><\/li>\n<\/ul>\n<h3>Pipe2 \u73af\u5883\u53d8\u91cf\uff1a<\/h3>\n<ul>\n<li><code>AZURE_OPENAI_API_KEY_2<\/code><\/li>\n<li><code>AZURE_OPENAI_ENDPOINT_2<\/code><\/li>\n<li><code>AZURE_OPENAI_DEPLOYMENT_NAME_2<\/code><\/li>\n<li><code>AZURE_OPENAI_API_VERSION_2<\/code><\/li>\n<\/ul>\n<p>\u5e76\u5728\u5404\u81ea\u7c7b\u4e2d\u4fee\u6539\u73af\u5883\u53d8\u91cf\u7684\u8c03\u7528\u65b9\u5f0f\uff0c\u4ece\u800c\u5b9e\u73b0\u4e92\u4e0d\u5e72\u6270\u5730\u8fd0\u884c\u4e24\u4e2a\u5b9e\u4f8b\u3002<\/p>\n<h2>\u7ed3\u8bed<\/h2>\n<p>\u8fd9\u4e2a\u95ee\u9898\u7684\u5173\u952e\u5728\u4e8e\u914d\u7f6e\u9694\u79bb\u3002\u5bf9\u4e8e\u9700\u8981\u5e76\u884c\u4f7f\u7528\u591a\u4e2a OpenAI \u63a5\u53e3\u5b9e\u4f8b\u7684\u60c5\u51b5\uff0c\u52a1\u5fc5\u907f\u514d\u5171\u7528\u5168\u5c40\u914d\u7f6e\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u53ef\u4ee5\u5e2e\u52a9\u9047\u5230\u540c\u6837\u95ee\u9898\u7684\u5f00\u53d1\u8005\u5feb\u901f\u5b9a\u4f4d\u5e76\u89e3\u51b3\u3002<\/p>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u9700\u8981\u540c\u65f6\u8fd0\u884c\u4e24\u4e2a Azure OpenAI Pipe \u5b9e\u4f8b\uff0c\u4ee5\u8fde\u63a5\u5230\u4e0d\u540c\u7684 Azure Open [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,1],"tags":[],"class_list":["post-254","post","type-post","status-publish","format-standard","hentry","category-7","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.zhuchenyu.cn\/index.php?rest_route=\/wp\/v2\/posts\/254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhuchenyu.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhuchenyu.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhuchenyu.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhuchenyu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=254"}],"version-history":[{"count":1,"href":"https:\/\/www.zhuchenyu.cn\/index.php?rest_route=\/wp\/v2\/posts\/254\/revisions"}],"predecessor-version":[{"id":255,"href":"https:\/\/www.zhuchenyu.cn\/index.php?rest_route=\/wp\/v2\/posts\/254\/revisions\/255"}],"wp:attachment":[{"href":"https:\/\/www.zhuchenyu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhuchenyu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhuchenyu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}