Home Technology peripherals AI ChatGPT retro gameplay: 39 years old computer + DOS system can also be played

ChatGPT retro gameplay: 39 years old computer + DOS system can also be played

Apr 04, 2023 pm 01:10 PM
chatgpt

MS-DOS is a very challenging platform for the ChatGPT client.

When ChatGPT encounters MS-DOS system, you may have a feeling of traveling back in time.

Recently, Singaporean retro computer enthusiast Yeo Kheng Meng released a MS-DOS ChatGPT client that can run on a 4.77MHz IBM PC, providing a unique communication method for ChatGPT.

ChatGPT retro gameplay: 39 years old computer + DOS system can also be played

MS-DOS is a very challenging platform for the ChatGPT client because it lacks native networking capabilities. Furthermore, Yeo targeted a computer with very limited processing power: the IBM 5155 from 1984. Internally it contains an Intel 8088 4.77 MHz CPU, 640KB of conventional memory, CGA ISA graphics card and MS-DOS 6.22 system.

The IBM 5155 is a portable computer with a suitcase-like shell design and a foldable handle for easy portability.

To create the client, Yeo used Open Watcom C/C, a modern compiler that runs on Windows 11 and can target 16-bit DOS platforms. For testing, he used a VirtualBox virtual machine running DOS 6.22 to simplify the development process, and then he transferred the compiled binaries to a target IBM DOS PC for testing.

In order to deal with network problems on IBM PC, Yeo has made various efforts. First, he took advantage of the "Packet Driver API" standard invented in 1983. He integrated Michael B. Brutman's open source MTCP library into the application to communicate with the Packet Driver to provide network functionality to the client.

For the ChatGPT API, Yeo used OpenAI’s Chat Completion API, manually building the POST request in C (and parsing the JSON-formatted response).

However, Yeo encountered a huge obstacle: ChatGPT’s API requires an encrypted HTTPS connection. Since MS-DOS does not have a native HTTPS library, Yeo created an HTTP-to-HTTPS proxy that can run on modern computers and translate requests and responses between MS-DOS clients and ChatGPT's secure API during the communication process act as a transparent middleman.

ChatGPT retro gameplay: 39 years old computer + DOS system can also be played

#Yeo said reading and writing input to the console was another challenge due to the single-threaded nature of DOS applications. He devised a way to check and receive keystrokes without pausing the program, using the MTCP page and online samples as a reference.

In the end, the client turned out better than Yeo expected. He describes his development process in a more detailed blog post.

ChatGPT retro gameplay: 39 years old computer + DOS system can also be played

Blog address: https://yeokhengmeng.com/2023/03/building-a-dos-chatgpt-client-in-2023/

Related code participates in GitHub project:

ChatGPT retro gameplay: 39 years old computer + DOS system can also be played

Project address: https://github.com/yeokm1/doschgpt

The above is the detailed content of ChatGPT retro gameplay: 39 years old computer + DOS system can also be played. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1667
14
PHP Tutorial
1273
29
C# Tutorial
1255
24
ChatGPT now allows free users to generate images by using DALL-E 3 with a daily limit ChatGPT now allows free users to generate images by using DALL-E 3 with a daily limit Aug 09, 2024 pm 09:37 PM

DALL-E 3 was officially introduced in September of 2023 as a vastly improved model than its predecessor. It is considered one of the best AI image generators to date, capable of creating images with intricate detail. However, at launch, it was exclus

How to install chatgpt on mobile phone How to install chatgpt on mobile phone Mar 05, 2024 pm 02:31 PM

Installation steps: 1. Download the ChatGTP software from the ChatGTP official website or mobile store; 2. After opening it, in the settings interface, select the language as Chinese; 3. In the game interface, select human-machine game and set the Chinese spectrum; 4 . After starting, enter commands in the chat window to interact with the software.

The perfect combination of ChatGPT and Python: creating an intelligent customer service chatbot The perfect combination of ChatGPT and Python: creating an intelligent customer service chatbot Oct 27, 2023 pm 06:00 PM

The perfect combination of ChatGPT and Python: Creating an Intelligent Customer Service Chatbot Introduction: In today’s information age, intelligent customer service systems have become an important communication tool between enterprises and customers. In order to provide a better customer service experience, many companies have begun to turn to chatbots to complete tasks such as customer consultation and question answering. In this article, we will introduce how to use OpenAI’s powerful model ChatGPT and Python language to create an intelligent customer service chatbot to improve

How to develop an intelligent chatbot using ChatGPT and Java How to develop an intelligent chatbot using ChatGPT and Java Oct 28, 2023 am 08:54 AM

In this article, we will introduce how to develop intelligent chatbots using ChatGPT and Java, and provide some specific code examples. ChatGPT is the latest version of the Generative Pre-training Transformer developed by OpenAI, a neural network-based artificial intelligence technology that can understand natural language and generate human-like text. Using ChatGPT we can easily create adaptive chats

How to build an intelligent customer service robot using ChatGPT PHP How to build an intelligent customer service robot using ChatGPT PHP Oct 28, 2023 am 09:34 AM

How to use ChatGPTPHP to build an intelligent customer service robot Introduction: With the development of artificial intelligence technology, robots are increasingly used in the field of customer service. Using ChatGPTPHP to build an intelligent customer service robot can help companies provide more efficient and personalized customer services. This article will introduce how to use ChatGPTPHP to build an intelligent customer service robot and provide specific code examples. 1. Install ChatGPTPHP and use ChatGPTPHP to build an intelligent customer service robot.

The perfect combination of ChatGPT and Python: building a real-time chatbot The perfect combination of ChatGPT and Python: building a real-time chatbot Oct 28, 2023 am 08:37 AM

The perfect combination of ChatGPT and Python: Building a real-time chatbot Introduction: With the rapid development of artificial intelligence technology, chatbots play an increasingly important role in various fields. Chatbots can help users provide immediate and personalized assistance while also providing businesses with efficient customer service. This article will introduce how to use OpenAI's ChatGPT model and Python language to create a real-time chat robot, and provide specific code examples. 1. ChatGPT

Can chatgpt be used in China? Can chatgpt be used in China? Mar 05, 2024 pm 03:05 PM

chatgpt can be used in China, but cannot be registered, nor in Hong Kong and Macao. If users want to register, they can use a foreign mobile phone number to register. Note that during the registration process, the network environment must be switched to a foreign IP.

ChatGPT Python API Usage Guide: Implementing a Voice Chatbot ChatGPT Python API Usage Guide: Implementing a Voice Chatbot Oct 28, 2023 am 08:16 AM

ChatGPTPython API Usage Guide: Implementing Voice Chat Robot Introduction: With the continuous development and popularization of artificial intelligence technology, the demand for voice chat robots in various application scenarios is increasing. OpenAI's open source ChatGPT provides a powerful natural language processing model. By using the ChatGPTPython API, we can easily implement a chatbot with voice interaction capabilities. This article will be divided into three parts to introduce the characteristics and uses of ChatGPT.

See all articles