Skip to content

LinGPT, a ChatGPT (GPT-3.5 / GPT-4) webpage with just a single HTML file. 只有一个html文件的ChatGPT聊天网页,零门槛,10秒搞定。GPT4 多Key轮询 Auto Key Rotation 支持第三方Key 兼容代理平台 Supports proxy / third-party keys

License

lin2025/gpt3.5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT

LinGPT

A ChatGPT (GPT-3.5 / GPT-4) Webpage with Just a Single HTML File

只有一个html文件的 ChatGPT 聊天网页

Github Gitee

DemoDownload网盘下载

Give a Star 🌟 if you like it.

👉 English

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发送,并支持多种换行方式。适配中文输入习惯,中文输入状态下,一次回车确认但不发送,二次回车才会发送
  • ...

English

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

About

LinGPT, a ChatGPT (GPT-3.5 / GPT-4) webpage with just a single HTML file. 只有一个html文件的ChatGPT聊天网页,零门槛,10秒搞定。GPT4 多Key轮询 Auto Key Rotation 支持第三方Key 兼容代理平台 Supports proxy / third-party keys

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages