最近是ChatGPT大火的一段时间,我当然也趁着空闲时间,体验了一把AI带来的自然语言处理的震撼。在网上冲浪时简单使用了一下ChatGPT和New Bing,第一眼,技术革命!
问几个问题
首先我分别对ChatGPT和New Bing提问:你怎么看待AI对人类社会的影响?


两个模型回答的基本差不多,New Bing会提供它引用的资料
你认为未来会出现什么样的新型AI应用?


你对自己的定义是什么?


测测创造力
这里我将New Bing的设置为:更具有创造力
我让它以自己为原型,讲了一个童话故事。



ChatGPT也说了一个故事,但感觉没New Bing说的好😂

ChatGPT一般不会被中断会话,而New Bing这边,微软稍稍干涉了下,一般和New Bing交流都在6句话以内,如果还涉及到某些关键字或者不良引导,就会被强制中断。
比较遗憾没能第一时间体验到未阉割版的New Bing,主要还是申请后,在候补列表里面待的太久了。
ChatGPT Demo
最近OpenAPI已经放开了GPT3.5的模型的接口,所以我也是立马写了个Demo,试试效果
接口调用需要翻墙
效果


其他方式
个人使用cloudflare搭建了反向代理
以下地址无需翻墙
接口地址:https://openai.tenma.work/
curl https://api.openai.com/v1/chat/completions \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello!"}]
}'
切换后:
curl https://openai.tenma.work/v1/chat/completions \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello!"}]
}'
返回结果:
{"id":"chatcmpl-6txxF8VX6KwzTv7mhcZe9JnlTqsw4","object":"chat.completion","created":1678796525,"model":"gpt-3.5-turbo-0301","usage":{"prompt_tokens":9,"completion_tokens":12,"total_tokens":21},"choices":[{"message":{"role":"assistant","content":"\n\nHello there! How can I assist you today?"},"finish_reason":"stop","index":0}]}