<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ChatGPT &#8211; ZhiYunHaiBo 智云海博</title>
	<atom:link href="https://www.zyh8.com/archives/category/chatgpt/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.zyh8.com</link>
	<description>智云海</description>
	<lastBuildDate>Wed, 30 Aug 2023 03:55:54 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.3.7</generator>

<image>
	<url>https://www.zyh8.com/wp-content/uploads/2023/06/cropped-w4sdfmit-32x32.jpg</url>
	<title>ChatGPT &#8211; ZhiYunHaiBo 智云海博</title>
	<link>https://www.zyh8.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>AI聊天机器人盘点</title>
		<link>https://www.zyh8.com/archives/600/ai%e8%81%8a%e5%a4%a9%e6%9c%ba%e5%99%a8%e4%ba%ba%e7%9b%98%e7%82%b9/</link>
					<comments>https://www.zyh8.com/archives/600/ai%e8%81%8a%e5%a4%a9%e6%9c%ba%e5%99%a8%e4%ba%ba%e7%9b%98%e7%82%b9/#respond</comments>
		
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Wed, 19 Jul 2023 15:34:44 +0000</pubDate>
				<category><![CDATA[ChatGPT]]></category>
		<guid isPermaLink="false">https://www.zyh8.com/?p=600</guid>

					<description><![CDATA[1.ChatGPT官网（需要科学上网） 免费无限使用gpt3.5模型，注册账号有点门槛，可以参考我的这篇教程： [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">1.<a href="https://chat.openai.com/" target="_blank" rel="noreferrer noopener">ChatGPT官网</a>（需要科学上网）</h2>



<p>免费无限使用gpt3.5模型，注册账号有点门槛，可以参考我的这篇教程：<a href="https://www.zyh8.com/archives/340/%e6%95%99%e5%a4%a7%e5%ae%b6%e5%a6%82%e4%bd%95%e5%9c%a8%e5%9b%bd%e5%86%85%e8%bd%bb%e6%9d%be%e5%9c%b0%e4%bd%bf%e7%94%a8%e6%ad%a3%e7%89%88chatgpt4%ef%bc%8c%e6%97%a0%e9%9c%80%e4%bb%bb%e4%bd%95%e8%b4%b9/" target="_blank" rel="noreferrer noopener">教大家如何在国内轻松地使用正版ChatGPT4，无需任何费用 – ZhiYunHaiBo 智云海博 (zyh8.com)</a>，有账号的，但是不方便科学上网的，可见直接使用我搭建的镜像站：<a href="https://chat.zyh8.com/">chat.zyh8.com</a>，直接账号密码登录即可使用，没有人机验证，无需科学上网，稳定快速。</p>



<h2 class="wp-block-heading">2.<a href="https://poe.com/" target="_blank" rel="noreferrer noopener">POE.com</a>(要科学上网）</h2>



<p><a href="https://poe.com/" target="_blank" rel="noreferrer noopener">Poe</a>整合了一些主流的聊天模型，如下图：</p>



<div class="wp-block-columns is-layout-flex wp-container-3 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-full is-resized"><a href="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_224537.png"><img decoding="async" fetchpriority="high" src="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_224537.png" alt="" class="wp-image-601" width="270" height="633" srcset="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_224537-128x300.png 128w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_224537-436x1024.png 436w" sizes="(max-width: 270px) 100vw, 270px" /></a></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<p>免费模型下方没有文字：<strong>Limited acess</strong></p>



<p>其他的在没有订阅的情况下每天都有发送条数限制，如图：</p>



<figure class="wp-block-image size-full is-resized"><a href="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_225239.png"><img decoding="async" src="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_225239.png" alt="" class="wp-image-602" width="471" height="242" srcset="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_225239.png 1287w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_225239-300x155.png 300w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_225239-1024x528.png 1024w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_225239-768x396.png 768w" sizes="(max-width: 471px) 100vw, 471px" /></a></figure>
</div>
</div>



<h2 class="wp-block-heading">3.<a href="https://claude.ai/" target="_blank" rel="noreferrer noopener">claude.ai</a>（无需科学上网）</h2>



<p>完全免费，没有GPT那么多的限制，而且能力和gpt有得一拼，大家自行注册体验</p>



<figure class="wp-block-image size-full"><a href="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_230006.png"><img decoding="async" width="1288" height="1309" src="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_230006.png" alt="" class="wp-image-603" srcset="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_230006.png 1288w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_230006-295x300.png 295w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_230006-1008x1024.png 1008w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_230006-768x781.png 768w" sizes="(max-width: 1288px) 100vw, 1288px" /></a></figure>



<h2 class="wp-block-heading">4.<a href="https://bard.google.com/" target="_blank" rel="noreferrer noopener">Google Bard</a>（需要科学上网）</h2>



<p>Bard最近迎来了史诗级重大更新，支持了简体中文。将英文设置为谷歌账号的第一语言可以发送图片和文档给它进行识别，功能非常强大，但想要使用此功能只能用英语跟他交流。最方便的是只要点击那个小喇叭按钮就可以直接朗读输出的内容。</p>



<figure class="wp-block-image size-full"><a href="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_230743.png"><img decoding="async" width="2014" height="1241" src="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_230743.png" alt="" class="wp-image-604" srcset="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_230743.png 2014w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_230743-300x185.png 300w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_230743-1024x631.png 1024w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_230743-768x473.png 768w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_230743-1536x946.png 1536w" sizes="(max-width: 2014px) 100vw, 2014px" /></a></figure>



<h2 class="wp-block-heading">5.<a rel="noreferrer noopener" href="https://beta.character.ai/" target="_blank">character.ai</a>（被墙）</h2>



<p>有很多的对话角色模板可以选择，但是模型有点憨憨</p>



<figure class="wp-block-image size-full"><a href="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_231557.jpg"><img decoding="async" width="2560" height="1335" src="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_231557.jpg" alt="" class="wp-image-605" srcset="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_231557.jpg 2560w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_231557-300x156.jpg 300w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_231557-1024x534.jpg 1024w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_231557-768x401.jpg 768w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_231557-1536x801.jpg 1536w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_231557-2048x1068.jpg 2048w" sizes="(max-width: 2560px) 100vw, 2560px" /></a></figure>



<h2 class="wp-block-heading">6.<a href="https://chat.forefront.ai/" target="_blank" rel="noreferrer noopener">Forefront Chat</a>（无需科学上网）</h2>



<p>他有一个非常厉害的地方就是可以基于ChatGPT联网搜索，而且可以免费使用GPT4（次数多），免费计划的限制如下：</p>



<ul>
<li>每 1 小时 4 条 GPT-3 消息</li>



<li>每 1 小时 3 条claude+消息</li>



<li>每 3 小时无限制的 GPT-3.5 消息 </li>



<li>每3小时无限Claude即时消息</li>



<li>每5小时3次互联网搜索</li>



<li>每 3 小时上传 3 个文件</li>
</ul>



<p> 除了回复的速度慢，其他的还好</p>



<figure class="wp-block-image size-full"><a href="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_233136.png"><img decoding="async" width="2560" height="1330" src="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_233136.png" alt="" class="wp-image-606" srcset="https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_233136.png 2560w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_233136-300x156.png 300w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_233136-1024x532.png 1024w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_233136-768x399.png 768w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_233136-1536x798.png 1536w, https://www.zyh8.com/wp-content/uploads/2023/07/2023-07-19_233136-2048x1064.png 2048w" sizes="(max-width: 2560px) 100vw, 2560px" /></a></figure>



<h2 class="wp-block-heading">彩蛋：</h2>



<p class="has-medium-font-size">大家可以<a rel="noreferrer noopener" href="https://1.1.1.1/" target="_blank">点击这里</a>下载这个工具，保护隐私，上网更安全喔！由全球知名的cloudflare提供，值得信赖！</p>



<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6382166096908019"
     crossorigin="anonymous"></script>
<ins class="adsbygoogle"
     style="display:block; text-align:center;"
     data-ad-layout="in-article"
     data-ad-format="fluid"
     data-ad-client="ca-pub-6382166096908019"
     data-ad-slot="9314819750"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
]]></content:encoded>
					
					<wfw:commentRss>https://www.zyh8.com/archives/600/ai%e8%81%8a%e5%a4%a9%e6%9c%ba%e5%99%a8%e4%ba%ba%e7%9b%98%e7%82%b9/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>教大家如何在国内轻松地使用正版ChatGPT4，无需任何费用</title>
		<link>https://www.zyh8.com/archives/340/%e6%95%99%e5%a4%a7%e5%ae%b6%e5%a6%82%e4%bd%95%e5%9c%a8%e5%9b%bd%e5%86%85%e8%bd%bb%e6%9d%be%e5%9c%b0%e4%bd%bf%e7%94%a8%e6%ad%a3%e7%89%88chatgpt4%ef%bc%8c%e6%97%a0%e9%9c%80%e4%bb%bb%e4%bd%95%e8%b4%b9/</link>
					<comments>https://www.zyh8.com/archives/340/%e6%95%99%e5%a4%a7%e5%ae%b6%e5%a6%82%e4%bd%95%e5%9c%a8%e5%9b%bd%e5%86%85%e8%bd%bb%e6%9d%be%e5%9c%b0%e4%bd%bf%e7%94%a8%e6%ad%a3%e7%89%88chatgpt4%ef%bc%8c%e6%97%a0%e9%9c%80%e4%bb%bb%e4%bd%95%e8%b4%b9/#comments</comments>
		
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Thu, 08 Jun 2023 09:14:06 +0000</pubDate>
				<category><![CDATA[ChatGPT]]></category>
		<guid isPermaLink="false">https://www.zyh8.com/?p=340</guid>

					<description><![CDATA[本教程提供三种解决方案，请根据个人需要进行选择 方案一：注册openai账户（要有科学上网）没有的直接看方案三 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="has-medium-font-size">本教程提供三种解决方案，请根据个人需要进行选择</p>



<h2 class="wp-block-heading">方案一：<a rel="noreferrer noopener" href="https://chat.openai.com/" target="_blank">注册openai账户</a>（要有科学上网）没有的直接看方案三</h2>



<p class="has-vivid-red-color has-text-color">本方案只能使用gpt 3.5模型，如果你想使用gpt4请看方案二</p>



<p>当你有了科学上网后注册便能成了最简单的事</p>



<h3 class="wp-block-heading">1.找一个电话号码来接收验证码（大陆港澳的不行）</h3>



<p>到<a rel="noreferrer noopener" href="https://sms-activate.org/" target="_blank">sms-activate</a>注册一个账号，用支付宝充值两美金，在左侧栏搜索chatgpt找一个最便宜的电话号码接码即可，建议选一个价格稍贵一些的，不要选太便宜的，不然可能过不了验证，甚至收不到验证码</p>



<p>如果你反悔了可以随时取消，不会扣费，但前提是这个号码没有收到验证码</p>



<p>选用其他的电话接码服务也是可以的，但这家感觉靠谱点，而且便宜</p>



<h3 class="wp-block-heading">2.准备一个邮箱，QQ邮箱163邮箱都是可以的</h3>



<h3 class="wp-block-heading">3.去<a href="https://chat.openai.com/">官网</a>注册就行，非常的简单。</h3>



<p>当你开心的使用的时候你就会遇到一堆的问题，推荐一个开源项目可以解决这一堆的问题</p>



<p><a href="https://github.com/pengzhile/pandora">GitHub &#8211; pengzhile/pandora: 潘多拉，一个让你呼吸顺畅的ChatGPT。Pandora, a ChatGPT that helps you breathe smoothly.</a></p>



<h2 class="wp-block-heading">方案二：<a href="https://poe.com/">poe.com</a>（要科学上网）可以白嫖GPT4</h2>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="709" src="https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_163719-1024x709.png" alt="" class="wp-image-347" srcset="https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_163719-1024x709.png 1024w, https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_163719-300x208.png 300w, https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_163719-768x532.png 768w, https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_163719-1536x1064.png 1536w, https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_163719.png 1923w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>想要使用POE你得有一张外币信用卡，没有的可以去淘宝上购买虚拟信用卡，二三十块钱一张轻松就可以通过验证，而且还支持预付visa信用卡，我绑定的卡里面没有钱，但是用了很长时间都没有出现任何问题。如果你有科学上网，强烈推荐此方案。确实可以使用很长一段时间，但是，就在今晚他要我付钱了，呜呜呜</p>



<h2 class="wp-block-heading">方案三：使用&nbsp;Microsoft Azure OpenAI</h2>



<p>本方案无需任何科学上网，使用起来又安全又方便，但是需要申请，而且必须使用企业邮箱，还要拥有自己的网站</p>



<p>如果你没有企业邮箱和自己的网站可以按照以下操作获取</p>



<p>去注册一个域名，这里推荐一个域名注册商<a href="https://www.namesilo.com/domain/search-domains?rid=24a7e88pf">namesilo</a> （因为它支持支付宝付款而且无需实名）.top后缀域名是最便宜的</p>



<p><a rel="noreferrer noopener" href="https://www.namesilo.com/domain/search-domains?rid=24a7e88pf" target="_blank">namesilo域名注册优惠码</a>：ZYH8</p>



<p><a href="https://www.namesilo.com/domain/search-domains?rid=24a7e88pf">填写后可以优惠一美元</a></p>



<p>你也可以使用eu.org免费域名，但不知道能不能成功，看脸</p>



<p>注册好域名后将其托管到cloud flare，这些步骤都很简单，我就不详细说明了</p>



<p>进入你的cloudflare控制台</p>



<figure class="wp-block-image size-large"><img decoding="async" width="589" height="1024" src="https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_171117-589x1024.png" alt="" class="wp-image-349" srcset="https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_171117-589x1024.png 589w, https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_171117-172x300.png 172w, https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_171117.png 684w" sizes="(max-width: 589px) 100vw, 589px" /></figure>



<p>按照提示操作你就可以获得一个企业邮箱了</p>



<p>搭建自己的网站可以使用cloudflare的workers路由功能做一个就可以， JS代码自己去网上找，配置好workers之后为workers绑定一个自己的域名即可</p>



<p class="has-vivid-purple-color has-cyan-bluish-gray-background-color has-text-color has-background">注意：以下部分内容摘自<a href="https://atlassc.net/2023/04/25/azure-openai-service">Azure OpenAI Service 注册申请与配置心得 (atlassc.net)</a></p>



<h3 class="wp-block-heading">注册国际版 Azure 账号</h3>



<p>Azure OpenAI Service 是 Azure Cognitive Services 的一部分，所以需要先注册 Azure 账号。目前只在 Azure 国际版上提供，所以请到<a href="https://azure.microsoft.com/" rel="noreferrer noopener" target="_blank">Azure 国际版</a>上注册账号。</p>



<h3 class="wp-block-heading">地区与手机号验证</h3>



<p>注册时可以选择<code>中国</code>地区，这样你可以直接输入<code>+86</code>的手机号进行验证。注册中国地区的账号也可以申请 Azure OpenAI Service。</p>



<p>如果你选择了其他的<code>国家/地区</code>，但你仍然想使用<code>+86</code>的手机号进行验证，你可以先输入一个你选择的地区的手机号，然后在<code>电话</code>下面勾选<code>请使用其他电话号码来码证你的身份</code>，此时会展开一个新的电话号码输入框并让你手动选择手机号的<code>国家/地区代码</code>，选择<code>中国</code>，然后输入<code>+86</code>的手机号即可进行验证。</p>



<p>一旦注册，当前账号的<code>国家/地区</code>将无法更改。</p>



<h3 class="wp-block-heading" id="-1">信用卡验证</h3>



<p>账单地址应该与你选<code>国家/地区</code>保持一致，否则会提示注册失败。</p>



<h2 class="wp-block-heading" id="azureopenaiservice">申请 Azure OpenAI Service 试用</h2>



<p><a href="https://azure.microsoft.com/en-us/products/cognitive-services/openai-service" rel="noreferrer noopener" target="_blank">Azure OpenAI Service</a>目前需要以企业的身份来申请试用。如果你的 Azure 账号已经注册好了，可以点击<a href="https://go.microsoft.com/fwlink/?linkid=2222006&amp;clcid=0x409&amp;culture=en-us&amp;country=us" rel="noreferrer noopener" target="_blank">这里</a>来申请。</p>



<p>Azure OpenAI Service 接受来自中国的企业申请，请依照表单<code>如实填写</code>信息，其中最重要的是：</p>



<ul>
<li>Your Company Email Address：请填写你在你公司的企业邮箱地址。</li>



<li>Your Company Name：请填写你所在公司的名称。</li>



<li>Azure Subscription ID：请根据表单内的提示来获取你的 Azure&nbsp;<code>Subscription ID</code>，千万不要填错成<code>Tenant ID</code>了，否则无法通过或者看不到订价层。</li>



<li>Company Website：请填写你所在公司的网站的网址。网址里最好能展示一个与你企业邮箱地址同一个域名的邮箱地址。</li>



<li>你的企业邮箱的域名、公司网站的域名需要保持一致，域名的主体需要与公司的名称保持一致，否则会在审核时被拒绝。</li>



<li>如果你填写的资料存在明显的问题，Azure 甚至不会给你任何回复。</li>



<li>如果你填写的资料还需要进一步的证明材料，Azure 会给你发送邮件要求提供。</li>
</ul>



<p>运气好的话，一般两天能通过审核，如果超过两周没有收到审核结果，请尝试重新提交申请。</p>



<h2 class="wp-block-heading" id="azureopenaiservice-1">部署 Azure OpenAI Service</h2>



<p>恭喜你已经申请到了 Azure OpenAI Service 的试用资格，接下来就是部署 Azure OpenAI Service 了。</p>



<p>登录到 Azure 以后，你会在首页的<code>Azure services</code>里面看到<code>Azure OpenAI</code>的图标，点击进入来创建部署 OpenAI Service 资源。</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="483" src="https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_165708-1024x483.png" alt="" class="wp-image-348" srcset="https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_165708-1024x483.png 1024w, https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_165708-300x142.png 300w, https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_165708-768x362.png 768w, https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_165708-1536x725.png 1536w, https://www.zyh8.com/wp-content/uploads/2023/06/2023-06-08_165708-2048x966.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<ul>
<li>在<code>创建 Azure OpenAI</code>的页面，<code>订阅</code>&#8211;<code>资源组</code>一栏如果没有，新建一个即可。</li>



<li>在<code>名称</code>一栏根据要求输入一个简短好记的资源名，未来需要通过它来访问你的私有 OpenAI API。</li>



<li><code>定价层</code>选择默认选项。</li>



<li><code>标记</code>一页，如果你不需要通过 tags 来管理自己的资源，可暂时不填。</li>



<li>在<code>审阅+提交</code>之后，即可进入部署阶段，部署资源需要几分钟时间，请耐心等待，待部署成功之后便可开始使用。</li>
</ul>



<h2 class="wp-block-heading" id="-2">部署模型</h2>



<figure class="wp-block-image size-full"><img decoding="async" width="760" height="798" src="https://www.zyh8.com/wp-content/uploads/2023/06/image.png" alt="" class="wp-image-355" srcset="https://www.zyh8.com/wp-content/uploads/2023/06/image.png 760w, https://www.zyh8.com/wp-content/uploads/2023/06/image-286x300.png 286w" sizes="(max-width: 760px) 100vw, 760px" /></figure>



<p>部署<code>Azure OpenAI Service</code>资源成功后，还要为服务资源<code>部署模型</code>才可以使用。</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="602" src="https://www.zyh8.com/wp-content/uploads/2023/06/image-1-1024x602.png" alt="" class="wp-image-356" srcset="https://www.zyh8.com/wp-content/uploads/2023/06/image-1-1024x602.png 1024w, https://www.zyh8.com/wp-content/uploads/2023/06/image-1-300x176.png 300w, https://www.zyh8.com/wp-content/uploads/2023/06/image-1-768x451.png 768w, https://www.zyh8.com/wp-content/uploads/2023/06/image-1.png 1048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>请进到资源详情页面左边栏的<code>模型部署</code>中，点击<code>创建</code>按钮来部署模型。</p>



<ul>
<li>输入<code>模型部署名称</code>，此名称在后面使用<code>Cloudflare Worker</code>转换映射API时要用到。</li>



<li>选择模型，建议使用<code>gpt-35-turbo (version 0301)</code>，该模型与<code>ChatGPT 3.5</code>一致。</li>



<li>点击<code>保存</code>以后即可完成部署。</li>
</ul>



<p>在模型部署完以后，就可以<code>转到 Azure OpenAI Studio</code>中进行试用。</p>



<h2 class="wp-block-heading" id="azureopenaistudio">Azure OpenAI Studio</h2>



<p>这里和<code>OpenAI</code>的功能比较类似：</p>



<ul>
<li>Completions playground：可调用模型根据已输入的文本生成补全文本，与<code>GitHub Copilot</code>和<code>Bing Chat</code>的输入框自动补完功能类似。</li>



<li>Chat playground(Preview)：一个类似 ChatGPT 的聊天式AI助手应用。</li>



<li>在两个 playground 中，你都可以点击<code>View code</code>来查看当前操作的示例代码，供你学习怎样开发自己的 GPT 应用。</li>
</ul>



<h2 class="wp-block-heading" id="-3">配置客户端</h2>



<p>我们部署<code>Azure OpenAI Service</code>资源的主要目的是为了能在客户端中使用<code>GPT</code>或其他<code>OpenAI</code>模型的能力，所以接下来我们要将<code>Azure OpenAI Service API</code>配置到流行的 OpenAI 客户端中。</p>



<h3 class="wp-block-heading" id="apikeyapiurl">获取 API KEY 和 API URL</h3>



<p>在配置客户端之前，请先去<code>Azure OpenAI Service</code>的<code>资源详情页面</code>中获取<code>密钥</code>与<code>终结点</code>中。</p>



<ul>
<li>密钥：作为客户端中的<code>API KEY</code>使用。</li>



<li>终结点：作为<code>API URL</code>或者<code>Endpoint</code>使用。</li>
</ul>



<h3 class="wp-block-heading" id="azureopenaiserviceapi">配置 Azure OpenAI Service API</h3>



<p>像<a href="https://github.com/yetone/openai-translator" rel="noreferrer noopener" target="_blank">openai-translator</a>和<a href="https://github.com/Bin-Huang/chatbox" rel="noreferrer noopener" target="_blank">ChatBox</a>这样的客户端已经原生支持<code>Azure OpenAI Service</code>的API，这里以<code>openai-translator</code>为例介绍一下配置的要点：</p>



<pre class="wp-block-code"><code>// API URL 或者 终结点
const API_URL = `https://${resourceName}.openai.azure.com`
// API URL Path 为你的 Azure OpenAI Service API 路径，主要负责调用模型和指定API版本
const API_URL_PATH = `/openai/deployments/${deployName}/completions?api-version=${apiVersion}`
</code></pre>



<ul>
<li>resourceName: 填写你的 Azure OpenAI Service 资源名称。</li>



<li>deployName: 填写你的 Azure OpenAI Service&nbsp;<code>模型部署名称</code>，更改部署名称以切换模型。</li>



<li>api-version: 填写“2023-05-15”，或者更新的版本。</li>
</ul>



<p>如果你使用<code>ChatBox</code>，无需构造<code>API_URL_PATH</code>，只需要填写<code>模型部署名称</code>即可。</p>



<h3 class="wp-block-heading" id="cloudflareazureopenaiserviceapi">Cloudflare 转换 Azure OpenAI Service API</h3>



<p><code>Azure OpenAI Service API</code>和<code>OpenAI Service API</code>的接口不一致。如果你的第三方客户端不支持<code>Azure OpenAI Service API</code>，你可以使用<a href="https://github.com/haibbo/cf-openai-azure-proxy" rel="noreferrer noopener" target="_blank">cf-openai-azure-proxy</a>这个项目来部署一个<code>Cloudflare Worker</code>，将<code>Azure OpenAI Service API</code>映射到<code>OpenAI Service</code>。</p>



<p>部署<code>Worker</code>时，可参照下面的代码对进行配置：</p>



<blockquote class="wp-block-quote">
<p>替换参数的时候变忘记写引号</p>
</blockquote>



<pre class="wp-block-code"><code>// The name of your Azure OpenAI Resource.
const resourceName="你的 Azure OpenAI 资源名称"

// The deployment name you chose when you deployed the model.
const mapper = { // 模型名称与模型部署名称映射
    'gpt-3.5-turbo': "模型部署名称",
    // 'gpt-4': DEPLOY_NAME_GPT4 // 如果没有 GPT-4 服务可先注释掉
};

const apiVersion="2023-05-15"; //  Azure OpenAI API 版本

// ...
// ...
// ...
// 跳过中间代码找到下面这一句

const deployName = mapper&#91;modelName] || '模型部署名称' // 设置默认使用已部署的模型，而不是空。
</code></pre>



<p><code>CloudFlare Worker</code>部署完成之后，我们就可以去配置客户端了。</p>



<h3 class="wp-block-heading" id="cloudflareworkerazureopenaiserviceapi">配置 Cloudflare Worker 转换过的 Azure OpenAI Service API 到客户端中</h3>



<p>以<a href="https://github.com/yetone/openai-translator" rel="noreferrer noopener" target="_blank">openai translator</a>为例：</p>



<ul>
<li>请在设置中选择<code>OpenAI</code>作为<code>Default Service Provider</code>。</li>



<li>API KEY：请填写<code>Azure OpenAI Service</code>的<code>密钥</code>。</li>



<li>API URL：请填写<code>Cloudflare Worker</code>的 URL。</li>



<li>API Model 选择你已部署的 Model，例如<code>gpt-35-turbo (version 0301)</code>，而这个Model需要你在<code>Cloudflare Worker</code>代码最前面的 mapper 中做好映射。</li>
</ul>



<p>而<a href="https://github.com/Bin-Huang/chatbox" rel="noreferrer noopener" target="_blank">ChatBox</a>的配置就更简单了：</p>



<ul>
<li>在<code>OpenAI API Key</code>中填写<code>Azure OpenAI Service</code>的<code>密钥</code>。</li>



<li>展开<code>Proxy</code>，在<code>API Host</code>中填写<code>Cloudflare Worker</code>的 URL。</li>



<li>展开<code>Model &amp; Token</code>，在<code>Model</code>中选择你已部署的 Model，例如<code>gpt-35-turbo-0301</code>。</li>
</ul>



<h3 class="wp-block-heading" id="-4">打字效果</h3>



<p>直接使用<code>Azure OpenAI Service API</code>可能会看不到打字机的效果，而<a href="https://github.com/haibbo/cf-openai-azure-proxy" rel="noreferrer noopener" target="_blank">cf-openai-azure-proxy</a>对它进行了兼容，因此我更喜欢用它，而不是直接使用<code>Azure OpenAI Service API</code>。</p>



<h3 class="wp-block-heading" id="contentfiltering">Content-filtering</h3>



<p><code>Azure OpenAI Service API</code>的<code>Content-filtering</code>功能是默认开启的，并且不能自行关闭。如果要关闭<code>Content-filtering</code>，需要联系 Azure Cognitive 客服。</p>



<p>如果输入提示词或者输出结果中包含不适宜的内容，会被<code>Content-filtering</code>过滤掉。</p>



<h2 class="wp-block-heading" id="faq">常见问题解答</h2>



<h3 class="wp-block-heading" id="azureopenaiservicepricingtier">创建 Azure OpenAI Service 资源时无法选择定价层（Pricing Tier）？</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="1008" height="630" src="https://www.zyh8.com/wp-content/uploads/2023/06/image-3.png" alt="" class="wp-image-358" srcset="https://www.zyh8.com/wp-content/uploads/2023/06/image-3.png 1008w, https://www.zyh8.com/wp-content/uploads/2023/06/image-3-300x188.png 300w, https://www.zyh8.com/wp-content/uploads/2023/06/image-3-768x480.png 768w" sizes="(max-width: 1008px) 100vw, 1008px" /></figure>



<p>请确保你在注册好 Azure 账号以后，单独申请了 Azure OpenAI Service 的试用，否则你将无法创建 Azure OpenAI Service 资源。</p>



<p>申请通过会有邮件回复。</p>



<p>如果申请通过了，而仍然看不到定价层选项，那就得联系 Azure Cognitive 客服了。</p>



<p>刚收到网友反馈是<code>Subscription ID</code>填错了，请一定根据表单内的指引去获取<code>Subscription ID</code>而不是<code>Tenant ID</code>。</p>



<h3 class="wp-block-heading" id="azureopenaiserviceazureazureopenaiservice">申请 Azure OpenAI Service 通过以后使用 Azure 账号登录还是用申请 Azure OpenAI Service 的企业邮箱登录？</h3>



<p>使用 subscription 相关的 Azure 账号登录，企业邮箱仅用于验证企业身份。</p>



<h3 class="wp-block-heading" id="gpt4gpt4">收到了 GPT-4 模型的回信却不能部署 GPT-4 模型？</h3>



<p>再读一读邮件，是不是告诉你被加入到 GPT-4 的<code>waitlist</code>了？而不是通过了申请。</p>



<p>GPT-4 模型连 waitlist 都要申请和审核，审核通过了才进<code>waitlist</code>。微软真有你的。</p>



<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6382166096908019"
     crossorigin="anonymous"></script>
<ins class="adsbygoogle"
     style="display:block; text-align:center;"
     data-ad-layout="in-article"
     data-ad-format="fluid"
     data-ad-client="ca-pub-6382166096908019"
     data-ad-slot="9314819750"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
]]></content:encoded>
					
					<wfw:commentRss>https://www.zyh8.com/archives/340/%e6%95%99%e5%a4%a7%e5%ae%b6%e5%a6%82%e4%bd%95%e5%9c%a8%e5%9b%bd%e5%86%85%e8%bd%bb%e6%9d%be%e5%9c%b0%e4%bd%bf%e7%94%a8%e6%ad%a3%e7%89%88chatgpt4%ef%bc%8c%e6%97%a0%e9%9c%80%e4%bb%bb%e4%bd%95%e8%b4%b9/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
	</channel>
</rss>
