Web-side chatgpt model 3.5 can be built and used in China
chatgpt web version update
The latest web version of chatgpt supports custom APIs
Domestic servers and virtual hosts support the construction of
Open source is just for everyone to study code and use it better.
Picture display:
2023-03-17 Update version log:
Support multi-line input and automatic adjustment of text box height
AI can interrupt at any time while answering
Added hints that API_KEY is blocked and API_KEY is not provided error
Added some presupposition words
Adapted and optimized the mobile browser
Fixed a bug where AI reply content contained some code, the effect was abnormal
Added code copy button
Add the default background one-click update api key and one-click update agent interface
The background has been updated to enter key to check the balance. Everyone is welcome to use it!
The front desk added the conversation record to view
The PHP version of the demo that calls OpenAI's API interface for Q & A has been updated to call the latest gpt-3.5-turbo model.
Use Stream streaming mode for communication, generate and output, and the response speed exceeds the official website. The front-end uses JS's EventSource, and also typifies the Markdown formatted text and colors the code. The server records conversation logs for all visitors.
Many people want the ability to enter API-KEY themselves in the demo website, so they have already added the code and just uncomment the index.php. You can comment out the "Continuous Conversation" section above for beauty reasons, otherwise mobile phone access will not be very friendly.
Custom api key and proxy: domain name/adminkey.php (the login password on this page can also be changed here)
Account and password have been added to the page. You need to login before you can update the api and agent interface with one click. You can change the default by yourself.
Account number: Xiao
Password: nbd
Simply explain why you need to represent them? Because the chatgpt interface domain name is now blocked and domestic (including Hong Kong) users cannot access it, they have to access it through the proxy interface.
If you select the official interface server, the options in the custom proxy must be foreign!!
The core code only has a few files and does not use any framework. It is very convenient to modify and debug. You only need to modify the API_KEY in stream.php to use it.
The code in front of index.php can also distinguish the IP of internal and external networks, directly accessible to the internal network, and accessible to the external network after passing BASIC authentication. Comments can be deleted and modified as needed.
Once deployed, you can put it on the company's intranet so that colleagues can experience the powerful functions of chatGPT together. You can also post it to your circle of friends to share it, and the image of an Internet technology giant can be directly filled.
Deployment tutorial:
Just put the source code in the root directory of your website!
The recommended php version is 7.2 or above
Author: Is Xiao
延伸阅读:
暂无内容!
评论列表 (0条):
加载更多评论 Loading...