LinGPT
A ChatGPT (GPT-3.5 / GPT-4) Webpage with Just a Single HTML File
只有一個html文件的ChatGPT 聊天網頁
Demo • Download • 網盤下載
Give a Star ? if you like it.
LinGPT
- 簡介:僅有一個
.html文件的GPT,輕量,便捷,零門檻 - 在線:靜態網頁,體積小,託管在Github / Gitee 非常流暢
- 下載:下載到電腦,打開html文件即可使用,像打開一張圖片一樣簡單
- 上傳:可上傳至託管平台/主機/服務器,支持所有免費的靜態網頁託管平台
- 接口:支持OpenAI 官方API 和第三方平台API (已適配常見代理平台),支持免魔法
- 模型:支持所有最新的GPT-3.5 和GPT-4 模型
- 密鑰:支持OpenAI 官方Key 和第三方平台專用Key,支持輪詢
- 數據:僅存儲於瀏覽器本地緩存,支持導出、導入和刪除
在線體驗
線路Github: https://lin2025.github.io/gpt3.5/
??線路Gitee: https://lin2025.gitee.io/gpt3.5/
??多種下載方式(含網盤): https://lin2025.gitee.io/#gpt3.5-code
功能
GPT生成回复採用一次性返回,非流式響應,互交體驗會降低,但也有優點- 不會中斷、內容多時響應快
新功能: 記憶模式(上下文模式)
新功能: 支持第三方平台的專用Key,適配部分第三方代理平台(api2d、next-web、openai-sb、aiproxy、openaimax、aigc2d、api2gpt、chatai、closeai、ohmygpt、aiayw、czl...)
新功能: 適配最新模型,支持GPT-3.5、GPT-4 全部模型
新功能: 支持自動重問(當發送失敗時,智能判斷是否重試)
新功能: 輪詢Key,全自動的智能的輪換API Key,支持批量添加
新功能: 頁面縮放(移動端)
新功能: 多對話管理、全自動保存、支持創建副本、多標籤頁數據同步、可導出(備份/遷移/分享)、可導入(還原對話)
新功能: 支持瀏覽器本地存儲,支持數據同步、導入、導出、刪除、統計等操作
Smart max_tokens(全自動調節max_tokens)
API Key、API餘額/有效期查詢、自定義接口網址、自定義API請求參數(model、max_tokens、temperature、top_p、presence_penalty、frequency_penalty)
支持Markdown(代碼塊、高亮代碼、顯示網絡圖片、顯示表格、文章排版)
系統提示詞、Token用量統計、一鍵複製、自動解析OpenAI 錯誤代碼、功能幫助
清空、撤銷、重問,並支持快捷鍵
語言支持簡體中文和英語、支持多種方式設置頭像(可上傳頭像)、支持樣式設置(字體大小、微信樣式的時間、消息時間、區分多輪對話)
可導出單輪聊天記錄、全部聊天記錄和操作記錄,格式為Markdown,支持導出.md和.txt
特點
使用記事本或文本編輯.app 即可改代碼修改教程已寫在代碼裡無需懂技術
v6.07 版本開始多數個性化設置可直接在界面中完成
- 無門檻人人都能DIY 小白也能利用免費的靜態託管平台輕鬆建站
- 支持隱形系統提示詞一分鐘即可輕鬆定制不同用途的AI工具
- 適合日常輕中度使用場景多個重要功能正在研究中...
更新
- 8月28日新增記憶模式(上下文模式)。
- 8月21日1) 升級支持GPT-4;2) 支持第三方API Key,適配第三方代理平台。
- 7月29日1) 升級支持最新的模型,支持16K 模型;2) 優化數據管理功能: 可顯示對話大小、支持抹去日誌、改進提示等。
- 7月23日1) 新增輪詢Key功能,智能的輪換API Key; 2) 新增自動重問功能,智能分析以確定是否重新發送請求; 3) 增強錯誤代碼識別、修復代碼中修改默認語言的問題、修復移動端部分輸入法不能換行的問題、修復Windows中字體模糊等兼容性問題、修復聊天框bug及優化樣式、修復其他樣式問題、修復其他bug;優化綜合體驗。
- 7月09日移動端兼容性的優化;修復樣式問題;增加移動端頁面縮放功能。
- 7月05日v7.05 1)新增本地存儲及數據管理功能; 2)新增多對話、自動保存、創建副本、數據同步、導出分享、導入還原對話等功能;3)修復Windows系統的兼容性問題(滾動條、下拉菜單樣式錯誤);4) 優化UI。
- 6月15日新增上傳頭像功能。 Smart max_tokens升級全新算法,並加入計算錯誤後自動重發的功能。調整css兼容性。
- 6月12日新增Smart max_tokens功能,全自動調節
max_tokens 。 修復問題:提示詞允許保存空白(之前不小心給限制了)。 - 6月9日新增OpenAI報錯代碼;修復些問題:頭像使用相對路徑引發的問題、加載時氣泡框塌縮的問題、部分瀏覽器不支持12px以下的字體的問題。
- 6月7日v6.07幾乎全新的版本,變化比較大,功能升級,體驗升級,適用的場景更多了,也很穩定,不再報錯。
6月7日之前的更新記錄
- 5月17日變化不大,小更新:添加
<!DOCTYPE html> ,調整不規範的樣式;修補Markdown插件Marked.js會過濾掉一些聊天內容的BUG;給氣泡框添加小箭頭。 - 5月14日更新內容:優化加載速度&穩定性;修復頻閃;優化佈局&體驗&增加空間;聊天框失去焦點時可縮小;修改撤銷&重問的邏輯;修正發送失敗的消息會寫入上下文的bug;撤銷&重問可實時更新Tokens;按鈕使用SVG圖標;使用隨機問候語驗證API-key;代碼優化&修正命名&增加可讀性...
- 5月09日一鍵複製clipboard更新內容:支持一鍵複製、使用SVG替換已經失效的Logo、優化代碼、修復小bug。
- 5月06日Markdown Highlight重要更新,支持Markdown + Highlight 代碼高亮。調試了很久,效果還不錯。近期會嘗試增加些實用功能,應用場景可以從輕度上升到中度。
- 4月28日Add English comments.
- 4月27日新增功能-查詢OpenAI賬號餘額檢測API-Key後,點擊[Tokens]查詢API賬號餘額,使用OpenAI官方接口,返回數據包含登記的名字、是否綁卡、總額度、餘額、有效期等。代碼基於以下兩位大佬的項目進行調整實現:@ClarenceDan的openai-billing、@herobrine19的openai-billing,已詳細註釋,安全透明,數據無洩漏風險。
- 4月26日給“檢測中“和“發送中“這兩按鈕狀態添加動態效果;頁面上不再顯示API-Key明碼;修正些小錯誤。
- 4月23日重要修復bug fixes修復近期多個國家IP無法訪問BootCDN而導致網頁報錯的情況(無法加載Vue與Axios),已添加Unpkg CDN線路,BootCDN掛掉的時候會自動切換到Unpkg。
- 4月16日修改PC端的快捷鍵,改為回車Enter發送,並支持多種換行方式。適配中文輸入習慣,中文輸入狀態下,一次回車確認但不發送,二次回車才會發送。
- ...
LinGPT
- LinGPT is a lightweight single-page chat application that can be deployed statically, with no need for a server.
- Can be uploaded to any static website hosting platform like GitHub and provides a very smooth browsing experience.
- Download and open the index.html file on your computer, input API Key to get started.
- Supports OpenAI API and Third-party APIs (reverse proxy).
- Supports the latest GPT-3.5 and GPT-4 models.
- Supports both OpenAI API Key and Third-party proxy keys. Supports fully automatic intelligent rotation of API keys.
- User data is stored only in the browser's local cache, supporting export, import, and deletion.
Demo
https://lin2025.github.io/gpt3.5/
Features
This code does not use streaming response, GPT will generate the complete response text at once.
- New Features : Contextual mode.
- New Features : Support for third-party API keys, optimized for compatibility with third-party proxy platforms.
- New Features : Support for all models of GPT-3.5 and GPT-4.
- New Features : Supports Automatic Retry (intelligently determines whether to retry when a request fails).
- New Features : Supports Auto Key Rotation, intelligently rotates API keys, supports bulk addition.
- New Features : Page Scaling (For Mobile).
- New Features : Multiple chats management, automatic saving, copy creation, data synchronization, export (for backup / sharing), import (restore chat data).
- New Features : Support for browser local storage, with operations including data synchronization, import, export, deletion, and statistics.
- Smart max_tokens (Automatically adjusts the max_tokens)
- API key, OpenAI API balance inquiry, custom API endpoint, custom API requests (model, max_tokens, temperature, top_p, presence_penalty, frequency_penalty.).
- Markdown support (code block, syntax highlighting, displaying images, displaying tables, article formatting, etc.).
- system prompt, token statistics, one-click copy, automatic parsing of OpenAI error codes, function help.
- Undo, Retry, Clear Context, and supporting keyboard shortcuts.
- Supports English and Chinese-Simplified, custom avatars (supports Upload Avatar), custom style (font size, WeChat-style time format, message time, distinguishing multi-turn contexts, etc.).
- Single-round chat history, all chat history, and operation history can be exported in Markdown format, supporting export as
.md and .txt .
Updates
- August 28th Added Contextual mode.
- August 21st 1) Upgraded to support GPT-4 model. 2) Supports third-party API keys (reverse proxy service providers).
- July 29rd 1) Upgraded to support the latest model, including 16K models. 2) Optimized data management features: ability to display chat size, support for erasing logs, improved prompts, etc.
- July 23rd 1) New Feature: Auto Key Rotation , 2) New Feature: Automatic Retry , 3) Added more error code categories; Fixed default language modification bug; Addressed font blurriness on Windows, chat box bugs, and other style issues; Optimized user experience.
- July 9th Optimized mobile compatibility; Fixed style issues; Added page scaling functionality for mobile.
- July 5th v7.05 1) Added local storage and data management. 2) Added: multiple chats, automatic saving, copy creation, data synchronization, chat export and sharing, and chat import and restoration. 3) Bug fixes for Windows compatibility (scrollbar, dropdown menu styling errors). 4) Optimized UI.
- June 15th New Feature: Upload Avatar , Upgraded the Smart max_tokens algorithm with the feature to automatically resend requests in case of errors. Adjusted CSS compatibility.
- June 12th The new Smart max_tokens feature was added, which automatically adjusts the max_tokens parameter. Bug fix: Fix the issue that the prompt allows saving blank space.
- June 9th Added explanation for OpenAI error codes; Fixed some issues related to:relative path avatar; style during loading; some browsers not supporting fonts below 12px.
- June 7th v6.07 This is an almost brand new version with significant changes, upgraded features and improved user experience. It is applicable to more scenarios and is also very stable. It has been tested for two weeks without any errors.
Updates before June 7th