指尖上的记忆指尖上的记忆
首页
  • 基础
  • Laravel框架
  • Symfony框架
  • 基础
  • Gin框架
  • 基础
  • Spring框架
  • 命令
  • Nginx
  • Ai
  • Deploy
  • Docker
  • K8s
  • Micro
  • RabbitMQ
  • Mysql
  • PostgreSsql
  • Redis
  • MongoDb
  • Html
  • Js
  • 前端
  • 后端
  • Git
  • 知识扫盲
  • Golang
🌟 gitHub
首页
  • 基础
  • Laravel框架
  • Symfony框架
  • 基础
  • Gin框架
  • 基础
  • Spring框架
  • 命令
  • Nginx
  • Ai
  • Deploy
  • Docker
  • K8s
  • Micro
  • RabbitMQ
  • Mysql
  • PostgreSsql
  • Redis
  • MongoDb
  • Html
  • Js
  • 前端
  • 后端
  • Git
  • 知识扫盲
  • Golang
🌟 gitHub

最近chat-gpt很火,于是花了点时间也注册了账号,下面是我的操作步骤:

1.访问openapi官网:https://platform.openai.com/  

2.google账号登录  

3.第一次注册需要手机号验证,必须为国外手机号,所以通过 sms-active 生成手机号:60+(113)9314146 发送验证码 
注意 使用 sms-active 服务的时候,最好选择主流国家,不要选择不入流的国家,因为可能收不到验证码,或者收到验证码,但是前面的地区号 不一致 导致没法使用
这个是报的错误:We've detected suspicious behavior from phone numbers similar to yours. Please try again later or contact us through our help center at help.openai.com

4.注册成功以后,就可有 登陆了,会在个人中心生成一个API Key,用来调用接口,保存好这个Key,只会生成一次

5.直接访问 https://platform.openai.com/playground 可以看到一个对话框,直接体验


6.也可以访问下面这个链接,但是一般会报错:
  访问:https://chat.openai.com/
  
  Access denied
  You do not have access to chat.openai.com.
  
  The site owner may have set restrictions that prevent you from accessing the
  
7.还可以通过PostMan 调用接口
接口调用一定要配合 Key 使用:
header头需要这个认证参数:Authorization:Bearer sk-dfasfasdfdgdfdsfgdgfdhgfhgfjhgjhgj
比如我调用了获取模型的接口:

url: get  https://api.openai.com/v1/models

返回:
{
    "object": "list",
    "data": [
        {
            "id": "babbage",
            "object": "model",
            "created": 1649358449,
            "owned_by": "openai",
            "permission": [
                {
                    "id": "modelperm-49FUp5v084tBB49tC4z8LPH5",
                    "object": "model_permission",
                    "created": 1669085501,
                    "allow_create_engine": false,
                    "allow_sampling": true,
                    "allow_logprobs": true,
                    "allow_search_indices": false,
                    "allow_view": true,
                    "allow_fine_tuning": false,
                    "organization": "*",
                    "group": null,
                    "is_blocking": false
                }
            ],
            "root": "babbage",
            "parent": null
        },
        {
            "id": "davinci",
            "object": "model",
            "created": 1649359874,
            "owned_by": "openai",
            "permission": [
                {
                    "id": "modelperm-U6ZwlyAd0LyMk4rcMdz33Yc3",
                    "object": "model_permission",
                    "created": 1669066355,
                    "allow_create_engine": false,
                    "allow_sampling": true,
                    "allow_logprobs": true,
                    "allow_search_indices": false,
                    "allow_view": true,
                    "allow_fine_tuning": false,
                    "organization": "*",
                    "group": null,
                    "is_blocking": false
                }
            ],
            "root": "davinci",
            "parent": null
        },
        {
            "id": "gpt-3.5-turbo-0301",
            "object": "model",
            "created": 1677649963,
            "owned_by": "openai",
            "permission": [
                {
                    "id": "modelperm-ms2DpLH5OCOZpUikJ4sRQNkh",
                    "object": "model_permission",
                    "created": 1677691853,
                    "allow_create_engine": false,
                    "allow_sampling": true,
                    "allow_logprobs": true,
                    "allow_search_indices": false,
                    "allow_view": true,
                    "allow_fine_tuning": false,
                    "organization": "*",
                    "group": null,
                    "is_blocking": false
                }
            ],
            "root": "gpt-3.5-turbo-0301",
            "parent": null
        },
        {
            "id": "text-davinci-003",
            "object": "model",
            "created": 1669599635,
            "owned_by": "openai-internal",
            "permission": [
                {
                    "id": "modelperm-6CAfTW5IbFpnlziQKoDilahq",
                    "object": "model_permission",
                    "created": 1677793558,
                    "allow_create_engine": false,
                    "allow_sampling": true,
                    "allow_logprobs": true,
                    "allow_search_indices": false,
                    "allow_view": true,
                    "allow_fine_tuning": false,
                    "organization": "*",
                    "group": null,
                    "is_blocking": false
                }
            ],
            "root": "text-davinci-003",
            "parent": null
        }
    ]
}