【黑科技】本地使用ChatGPT,无需API、免魔法,摆脱各种限制,不受掉线和封号的困扰!| AI学长 第57期

AI学长小林
11 May 202309:36

Summary

TLDRIn this video, the host introduces a method to access ChatGPT locally, bypassing the need for a VPN and overcoming common issues like connection drops and access restrictions. By using Docker to run a local instance of ChatGPT, users can enjoy a seamless and fast experience. The host also explains how to obtain an Access Token for hassle-free login and provides resources for those without a ChatGPT account or facing login issues.

Takeaways

  • 🌐 Encountering issues with ChatGPT, such as access denials, CAPTCHAs, interruptions, and connectivity problems, can degrade the user experience.
  • 💡 A solution has been found to bypass these issues by accessing ChatGPT locally, eliminating the need for a VPN and overcoming restrictions.
  • 🖥️ The local access setup involves using Docker, a platform that allows for the local running of applications in a containerized environment.
  • 🔗 Docker can be downloaded from their official website, with different versions available for Windows and Mac users.
  • 📋 After installing Docker, users need to execute two commands to fetch and run the necessary project files for ChatGPT.
  • 🔗 Accessing ChatGPT locally is done through a localhost URL with a specified port number.
  • 🆔 Two login methods are available: using an OpenAI account or an Access Token, which can be used for up to a month without needing to log in again.
  • 🔍 The Access Token can be obtained from the official OpenAI website by logging into a ChatGPT account and navigating to the token parameter page.
  • 🔄 If the Access Token expires or is not available, users can obtain a new one by visiting a specific URL and following the steps provided.
  • 📱 The local setup can also be used on mobile devices by accessing the localhost URL and entering the Access Token if available.
  • 🎁 For those without a ChatGPT account, a website is mentioned where free Access Tokens are shared, allowing anyone to interact with ChatGPT without an account.

Q & A

  • What are some common issues users face while using ChatGPT online?

    -Users often encounter problems such as OpenAI rejecting their requests, frequent human verification checks, output interruptions, disconnections, and restricted access during high traffic, which can significantly degrade the user experience.

  • How does the method shared in the video help users access ChatGPT?

    -The method allows users to access ChatGPT locally, bypassing the need for a VPN, reducing the risk of disconnections, and eliminating various restrictions, thus providing a smoother and unrestricted experience.

  • What is Docker and how is it used in this context?

    -Docker is a platform that enables developers to develop, deploy, and run applications inside containers. In this context, it is used to create a local environment to run ChatGPT, allowing users to interact with it without relying on an internet connection to an external server.

  • What are the steps to install and use the local ChatGPT setup?

    -The steps include downloading Docker, installing it on your computer, opening the application, executing two specific commands to fetch and run the project, and then accessing ChatGPT through a local URL with a port number.

  • How can users log in to the local ChatGPT interface?

    -Users can log in using their ChatGPT account and password, or by using an Access Token, which can be obtained from the official OpenAI website and used for up to a month without needing to log in again.

  • What is an Access Token and how is it used with local ChatGPT?

    -An Access Token is a security credential that provides access to specific functions of a service. In this case, it is used to authenticate users with the local ChatGPT setup, allowing them to use the service without entering their account details each time.

  • What happens if the Docker application is not running?

    -If the Docker application is not running, users will not be able to access the local ChatGPT interface. The project must be in a running state within Docker for the local ChatGPT to be accessible.

  • How can users without a ChatGPT account or with VPN issues access the service?

    -Users without a ChatGPT account or facing VPN issues can visit a specific website mentioned in the video that provides access to shared ChatGPT tokens, allowing them to use the service without needing their own account or VPN.

  • What is the advantage of using an Access Token over account credentials?

    -Using an Access Token provides a more convenient and secure way to access ChatGPT as it eliminates the need for frequent logins and can maintain access for an extended period without any additional verification steps.

  • How can users ensure they always have access to ChatGPT without interruptions?

    -By obtaining an Access Token and using it to log in to the local ChatGPT setup, users can ensure uninterrupted access for a significant period. If the token expires or the user is logged out, they can simply retrieve a new token and continue using the service.

  • What is the significance of the localhost address in the local ChatGPT setup?

    -The localhost address signifies that the ChatGPT service is being accessed locally on the user's computer, not through an external server. This address ensures that the connection is direct and does not rely on internet connectivity to external services.

Outlines

00:00

🤖 Introduction to AI Channel and ChatGPT Challenges

The video begins with a welcome to the AI channel hosted by Xiao Lin, who discusses common issues faced while using ChatGPT, such as service interruptions, human verifications, and connectivity problems. These issues can degrade the user experience significantly. However, Xiao Lin introduces a solution that allows for local access to ChatGPT, bypassing the need for a VPN and overcoming restrictions, thus providing a seamless and unrestricted experience. The video promises to share this method with the audience, showcasing the actual interface and benefits of the solution.

05:01

🛠️ Installation and Usage of Local ChatGPT Access

Xiao Lin provides a step-by-step guide on how to install and use the local ChatGPT access method. This involves downloading Docker, installing it, and executing specific commands to run the project. The video demonstrates the successful setup by showing the local interface and how to interact with ChatGPT without any VPN or connectivity issues. It also explains two login methods: using an OpenAI account or an Access Token, which can be obtained from the official OpenAI website and used for a month without needing to log in again. The video concludes with additional tips for users without a ChatGPT account or facing VPN issues, directing them to a website where they can use shared tokens for free access.

Mindmap

Keywords

💡ChatGPT

ChatGPT is an AI chatbot developed by OpenAI, based on the GPT-3.5 architecture. It's designed to understand and generate human-like text based on the input it receives. In the video, ChatGPT is central to the discussion, as the creator shares methods for improving the user experience with ChatGPT, including accessing it locally to avoid common issues such as magic word denial, CAPTCHA verifications, interruptions, and restrictions during high traffic periods. The script emphasizes ChatGPT's value despite these challenges, highlighting its 'irresistibility' and the workaround to use it more effectively.

💡Docker

Docker is a platform used to develop, ship, and run applications by using containerization technology. The video script mentions Docker as a crucial tool for running ChatGPT locally on one's computer. It requires downloading a Docker desktop application, which acts as a local environment to facilitate the running of ChatGPT without needing to access OpenAI's servers directly, thus circumventing many common access issues associated with the online version.

💡Local Access

Local access refers to the method of accessing software or a service from the user's own computer, rather than over the internet. The video describes a process by which viewers can set up ChatGPT to run locally on their machines using Docker. This method provides benefits such as avoiding downtime, bypassing user verification or 'magic word' restrictions, and potentially improving response speeds by not relying on external servers.

💡Commands

Commands are specific instructions inputted by the user to perform operations in a computer system. In the context of the video, commands are used to fetch and run the project files needed to install ChatGPT locally. The presenter provides two key commands that users need to execute in their terminal or command prompt window, illustrating the technical steps involved in setting up the local ChatGPT environment.

💡Access Token

An Access Token is a string of characters that verifies the identity of a user for a login session. The video highlights using an Access Token as one of two methods for logging into the locally run ChatGPT, offering a way to bypass traditional login methods. This token can be obtained from OpenAI's official website and allows for authentication without repeatedly entering user credentials, facilitating ease of access and use over a period of half a month to a month.

💡localhost

localhost is a hostname that refers to the local computer being used to access or run a service. In the script, localhost is mentioned in the context of accessing ChatGPT through a web browser on the user's own computer, indicating that the service is running locally via Docker. This setup contrasts with accessing ChatGPT through OpenAI's website, emphasizing the self-contained and potentially more reliable nature of local access.

💡Installation

Installation in the video refers to the process of setting up the necessary software and configurations to run ChatGPT locally. It involves downloading Docker, executing commands to fetch and run the ChatGPT project, and ensuring the Docker application is running correctly. The script details each step of this process, aimed at enabling users to overcome common issues faced when using the cloud-based version of ChatGPT.

💡Terminal

The terminal, also known as command line or console, is a text-based interface used to input commands in macOS, Linux, and Windows (via CMD or PowerShell). The video explains how to open the terminal or command prompt and enter specific commands as part of the process to run ChatGPT locally. This step is critical for both Windows and macOS users to successfully download and install the necessary files for local ChatGPT access.

💡Magic Word

Magic word refers to a method of access control used by OpenAI for its services, including ChatGPT. Users might be required to enter a specific 'magic word' to access ChatGPT during high demand periods or due to other restrictions. The video script mentions the frustration of being denied access because of magic word issues and presents the local installation of ChatGPT as a solution to bypass this obstacle, enhancing the user experience.

💡Response Speed

Response speed refers to the rate at which ChatGPT can process and reply to user queries. In the script, the creator highlights the improved response speed as a significant benefit of running ChatGPT locally, compared to the potential delays experienced when using the service through OpenAI's servers. Faster response times enhance the overall user experience, making the interaction with ChatGPT more efficient and enjoyable.

Highlights

Introduction to a method for local access to ChatGPT without the need for a VPN or dealing with connectivity issues.

ChatGPT's popularity despite common issues such as human verification, disconnections, and restricted access during high traffic.

Demonstration of a local setup where ChatGPT is accessed via localhost without the need for a VPN.

Showcase of the interface and functionality of the local ChatGPT setup, including the ability to view historical chat records.

Explanation of the fast response time of the local ChatGPT setup, potentially faster than the official website.

A step-by-step guide on installing the local ChatGPT setup using Docker.

Instructions for Windows and Mac users on how to download and install Docker Desktop.

Execution of two commands to fetch and run the necessary project files for local ChatGPT access.

Accessing the local running instance of ChatGPT through Docker and the appearance of a running project in the Docker application.

Two methods of logging into the local ChatGPT setup: using OpenAI account credentials or an Access Token.

Detailed guide on how to obtain an Access Token from the official OpenAI website for login purposes.

Advantages of using an Access Token, including the ability to remain logged in for up to a month without needing a VPN.

Note on the necessity of keeping the Docker application running for continuous access to the local ChatGPT.

Alternative solution for users without a ChatGPT account or facing VPN issues to obtain an Access Token.

Introduction to a website offering free access to ChatGPT using shared tokens for those without an account.

Instructions on using the shared tokens on mobile devices to access ChatGPT.

Conclusion of the video, emphasizing the practicality of the local ChatGPT setup and its benefits.

Transcripts

00:00

你好欢迎来到AI学长的频道

00:02

我是小林

00:03

我们在用ChatGPT过程当中

00:05

经常会遇到一些麻烦

00:07

比如说我们的魔法被open AI拒绝

00:09

有时候会时不时来一个人机验证

00:12

有时候会输出中断或者经常掉线

00:15

而且呢当访问人数多的时候

00:17

普通账户可能不给用

00:19

会出现很多烦人的问题

00:21

那么这些问题会导致

00:23

我们使用ChatGPT的过程当中

00:25

这个体验非常非常的不好

00:27

但是呢ChatGPT他又是那么的香

00:30

我们也只能默默忍受这些痛苦

00:36

不过有句话说的好只要思想不滑坡

00:39

办法总比问题多

00:41

在我的不懈努力之下

00:43

终于挖掘出了一个好方法

00:45

这个办法可以让我们在本地访问

00:47

ChatGPT成功摆脱魔法摆脱掉线

00:51

摆脱各种限制

00:52

可以自由自在的使用纯正的ChatGPT

00:55

简直就像开了外挂一样

00:57

本期视频绝对干货

00:59

喜欢的小伙伴请点赞收藏

01:02

好话不多说

01:03

接下来就把这个方法分享给大家

01:06

那我先给大家看一下

01:08

这个方案安装成功以后

01:10

它的一个实际效果是什么样的

01:12

现在我是在我的本地访问ChatGPT

01:17

大家可以看下这个界面

01:18

包括左侧的菜单

01:20

这个是我跟ChatGPT的一些

01:22

历史对话记录

01:23

那右边的话是对话窗口

01:25

大家重点看一下这个网址

01:27

他是localhost

01:28

然后后面是端口号

01:30

也就是我是在本地

01:32

去访问ChatGPT的

01:34

那在这种情况下

01:35

我是不需要使用魔法的

01:36

我可以自由的跟ChatGPT对话

01:39

那比如说我们现在来问他你是谁

01:41

OK大家可以看一下他回答是

01:44

我是由Openai

01:45

基于ChatGPT3.5架构而成的

01:47

名为ChatGPT

01:49

那这个确保它是纯正的ChatGPT

01:52

包括这个对话的界面窗口

01:53

跟ChatGPT也是一模一样的

01:56

我们再来问他一个问题体验一下

01:58

他这个回复速度怎么样

02:00

比如说我现在问他北京有什么好吃的

02:03

OK大家可以自己感受一下

02:05

他这个回复的速度是非常非常的快的

02:07

几乎是没有什么延时的

02:09

甚至可能比在ChatGPT的网页上

02:12

去使用这个速度还要快

02:14

好接下来我就教大家怎么样去安装它

02:17

使用它达到这样的一个效果

02:19

第一步

02:20

我们要打开这个docker的网址

02:23

我们需要下载一个支持的组件

02:26

也就是本地运行的一个环境

02:28

我会把视频里面用到的网址

02:31

工具都会贴到这个视频的简介里面

02:34

大家可以自己去看

02:36

然后我们进入这个网址之后

02:38

你可以根据你的电脑

02:39

去下载不同的版本

02:41

下载这个docker的桌面应用

02:43

下载完成以后

02:44

你把这个应用安装到你的电脑上

02:47

安装完成以后我们打开这个应用

02:49

就会来到这样一个界面

02:51

那接下来我们要去执行两个指令

02:53

如果是windows的用户你就输入Ctrl+r

02:57

然后在输入框里面输入CMD

02:59

打开这个指令操作

03:01

那如果是Mac的用户

03:03

我们就打开这个终端

03:05

然后我们要输入第一条指令

03:07

windows的用户跟Mac的指令都是一样的

03:11

好那我们输入这个指令之后点回车

03:14

他会自动去获取我们需要的

03:16

这个项目原文件的包

03:18

那抓取下来以后我们执行第二条指令

03:21

这个指令的意思是去安装

03:23

和运行这个项目

03:25

好我们执行一下

03:27

这样的话

03:27

就代表这个项目已经执行成功了

03:29

然后我们回到docker的桌面应用

03:32

就可以看到

03:33

在这个容器里面

03:34

会出现这样一个运行中的项目

03:37

出现这条记录

03:38

就代表项目已经安装并且执行成功了

03:41

我们就可以在本地去使用这个

03:43

ChatGPT

03:44

我们接下来看一下

03:46

我们只要点击这个ports

03:48

点击这个链接就可以了

03:49

它会自动来到这样一个登录界面

03:51

那这大家可以看一下

03:53

首先

03:53

我这边已经是在本地运行这个项目了

03:56

127.0.0.1

03:58

也有可能是localhost

03:59

这两个都是代表在本地运行了

04:02

那登录的话有两种方法

04:03

第一种的话

04:04

是直接用你的账号和密码去登录

04:07

ChatGPT

04:08

那如果你是要用账号和密码登录

04:10

ChatGPT

04:10

第一次使用你是要把魔法打开的

04:13

账号密码登录我这里就不演示了

04:15

和我们正常在

04:16

ChatGPT里面登录都是一样的

04:18

那登录完成以后

04:20

它会自动创建一个cookie

04:21

第二次进来就不需要重复去登录了

04:24

这里我重点演示一下第二种办法

04:26

也就是用 Access Token登录

04:29

我们用这个token

04:30

可以在半个月到一个月时间之内

04:33

都是免登录的

04:34

只要获取到这个token就可以

04:36

就可以直接进入到 ChatGPT

04:37

的对话窗口

04:38

那接下来我来讲一下

04:39

怎么样去获取这个Token

04:41

我们先打开ChatGPT

04:42

然后在这里面登录你的账号和密码

04:45

登录成功以后

04:46

我们来访问一下这个网址

04:48

这个是open ai官方获取token的网址

04:51

所以大家

04:52

不用担心这个安全性的问题

04:53

我们来访问一下

04:55

好他就会来到这样一个参数界面

04:57

然后在这里面找到token

04:59

我们点Ctrl加f

05:01

然后搜索token

05:03

OK我们可以看到这边有一个Access Token

05:05

那这个双引号里面的值

05:07

就是我们要获取的这个token的值

05:09

我们把它全选然后复制保存一下

05:12

然后我们回到这个登录界面

05:15

点击这个按钮用Access Token登录

05:19

OK

05:19

我们把刚刚获取到的值给它粘贴进去

05:22

点击确定

05:23

我们就在本地登录成功了

05:25

然后可以自由的跟ChatGPT对话了

05:28

而且这里是不需要任何魔法的

05:30

并且呢

05:30

我们可以对比一下这个菜单跟界面

05:33

你看这个记录都是一模一样的

05:36

然后我们来看一下这个网址

05:37

这个是chat.openai.com

05:39

然后这个是我本地的一个界面

05:42

我们让它来介绍一下自己

05:44

基本上就是秒回

05:46

它是由open ai开发的

05:48

gpt3.5是ChatGPT

05:50

然后可以理解多种语言啊

05:52

到这一步我们的安装和使用

05:54

就都完成了

05:55

你就可以在你本地

05:56

自由的去使用ChatGPT

05:58

在本地安装完成以后

06:00

刚才我在视频开头所说的那些问题啊

06:03

也就都解决了

06:04

他在这里面不会经常掉线

06:07

也不需要你用魔法

06:08

而且在人多的时候

06:10

也是可以正常去使用的

06:12

而且还有一个小重点

06:13

用这种办法

06:14

你可以在半个月到一个月的时间内啊

06:18

都不需要重新去登录ChatGPT

06:19

你只要直接去访问这个网址

06:21

可以直接进入到这个对话窗口

06:23

那假如你进入到这个对话窗口啊

06:26

发现他已经登出了

06:28

我们就需要按照刚才的方法

06:30

去重新获取一下Access token

06:32

再次把它填入

06:34

填入完成以后

06:35

又可以半个月到一个月时间内免登录

06:38

这个就非常的方便

06:39

然后这里

06:40

我们再额外强调一个重点

06:42

也就是

06:43

我们每次要在本地运行ChatGPT

06:46

我们是一定要把这个Docker的桌面

06:47

应用给它打开的

06:49

然后并且在这里面

06:51

这个状态是属于这个运行中的状态

06:53

才是可以的啊

06:55

我们这边来演示一下

06:56

假如说我把这个项目给他停止

06:58

这个界面就没有办法访问

07:01

所以我们去启用本地的ChatGPT

07:03

一定要把这个项目

07:05

给它切换到运行状态

07:07

我们点击start

07:09

然后我们再来刷新一下就可以看到

07:11

已经进入到这个对话窗口了

07:14

那在视频的最后

07:15

再给大家来放一个大的福利

07:18

那有很多小伙伴

07:19

他可能是没有ChatGPT账号

07:21

或者说你的魔法异常

07:23

导致你无法登录ChatGPT

07:25

没有办法去获取Access Token

07:27

那么我们可以回到这个登录界面

07:29

点击这个go get it

07:32

就会来到这样一个获取

07:33

Access Token的界面

07:34

然后你点击这个获取登录链接

07:37

按步骤完成

07:38

同样也是可以获取到你的token

07:40

那这个办法是适用于那些

07:42

魔法有问题的小伙伴

07:44

你有账号但是没有办法登录ChatGPT

07:47

去获取一个token的小伙伴

07:49

可以用这个方法

07:50

点击这个获取登录链接

07:51

然后按流程执行完成

07:53

你也是可以拿到token的

07:55

好那接下来我再来讲一下

07:56

如果你连ChatGPT的账号都没有

07:59

我们有没有办法去使用我这个方法

08:01

也是有的

08:02

我们来访问这个网址

08:04

在这个网址里面我

08:05

们可以免费使用

08:07

别人的Token

08:09

在这个网址里面跟ChatGPT进行对话

08:11

这个要感谢

08:12

这个网站的作者格局了一下

08:14

给别人提供了很多免费的ChatGPT账号

08:17

我们可以在这个网站

08:18

上面直接进行调用

08:20

我们点击这个按钮gosharechat

08:22

好就会来到这样一个界面

08:24

这边的话大概会有

08:27

一两百个这种免费的

08:29

ChatGPT账号

08:30

都是可以供应我们免费使用的

08:32

那比如说我现在随机点一个

08:37

OK看到了没有

08:38

他直接进入到这个对话窗口界面了

08:41

那这里面的逻辑是有一些小伙伴

08:43

他共享了他的ChatGPT账号

08:45

包括这个网站的作者

08:47

他也自己注册了一些账号

08:49

然后把Token放到这个平台上

08:51

供大家去免费使用

08:53

那同理

08:54

我们用这个办法

08:55

也可以在手机里面去使用

08:57

你只要在手机里面去访问这个网址

09:00

然后如果你是自己有token的

09:02

你就把你的token填进去就可以

09:05

那如果你是没有token的

09:07

你也可以在这个网站里面

09:09

去获取这些

09:10

共享出来的token

09:11

那都是可以免费使用的

09:13

刚才这个网址访问的办法

09:15

也适用于

09:16

如果你在本地安装不成功

09:18

或者说你没有ChatGPT账号

09:21

这两类用户

09:21

你就可以用这个办法

09:23

来使用ChatGPT

09:25

好那以上就是本期视频的全部内容

09:27

如果你喜欢今天这期节目

09:29

如果今天这期节目对你有一点点帮助

09:32

请点赞及订阅我的频道

09:34

你的支持对我很重要