


ChatGPT retro gameplay: 39 years old computer + DOS system can also be played
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.
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.
#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.
Blog address: https://yeokhengmeng.com/2023/03/building-a-dos-chatgpt-client-in-2023/
Related code participates in GitHub project:
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











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

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 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

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 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 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

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.

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.
