mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
* 修复引用转发,默认bing模式并发 * 开启stream增加稳定性 * fix: remove queue element only in non-bing mode * 使用chatgpt-api自带的超时逻辑,文字过多时启动切换到图片输出防止被吞 * Update chat.js * 添加Bing专用的图片输出样式 * 添加chatgpt的新图片模式,临时处理切换api导致的对话异常 * 修改bing样式表 * 为图片添加外部页面缓存 * 为图片模式添加MathJax * feat: add switch for qrcode * 防止script攻击 * 修复网页模板错误 * 修复bing页面引用错误 * 缓存服务器异常时处理 * 添加默认配置加载 * 修复配置文件路径错误 * 删除重复的模板文件,修复二维码地址错误 * 修正图片渲染错误 * 修复引用渲染错误 * 二维码网址统一改为使用本地配置 * 添加关闭思考提示的配置项 * 修复在Windows上无法载入配置文件的问题 * 修复关闭qr的情况下渲染错误 * 改为使用base64传递返回数据 * 当异常过多时使用图片输出 * 添加锅巴面板配置支持 * 补充遗漏的默认配置 * 修复qr模式下引用未被传递的问题 * 修复未将引用数据传输给缓存服务器的问题 * 删除无用的bingTimeoutMs配置项 * 添加消息队列超时弹出 * 优化图片模式处理,解决对话队列卡住的问题 * 添加对图片ocr的支持 * 添加图片识别配置项 * 添加黑名单配置项 * 修复一些bug * 修改锅巴配置格式和描述 * 传入数据也使用markdown * 图片识别换行改为marked兼容 * 添加绘图CD配置项 * 独立render模块,添加图片回复引用 * 添加必应风格 * 修复上下文,修改bing样式 * 修复上下文 * 添加Sydney上下文支持 * 调整不同模式下的bing渲染颜色 * 修复样式 * 修复无法结束会话的问题 * fix: 更新版本号 * 修复无法结束对话的问题 * 向缓存服务器传送样式 * 为网址格式的配置添加验证 * 去除重复的Keyv删除,取消锅巴配置格式检查 * 闭合中断的代码块 * 试添加Sydney图片模式的情感显示 * 修复at不兼容 * 处理意外的markdown包裹和结构解析修复 * 修复markdown处理的顺序错误 * 兼容json换行 * 重写completeJSON和使用 * 修复换行格式异常 * 均衡BingToken使用 * 修复删除token的数组处理错误 * 修改token文字描述 * 创建本地缓存服务 * 修复首次使用无法添加bingtoken的问题 * 修复意外的删除格式问题,添加查看token功能 * 修复路由错误,暂时固定ip测试 * 恢复引用功能 * 更新渲染页面 * 更换缓存目录 * 清除调试用消息 * 调整屏幕分辨率 * 使用服务器生成的访问地址 * 改为使用api获取公网ip * 修复引用显示 * 添加依赖需求 * 更新渲染页面和渲染api * 修复渲染页面错误 * 修复建议字符串切割,添加帮助路由 * 添加内容中图片数据获取功能 * 试修复suggestbug * 修复图片导致服务器卡死的问题 * 暂时禁用图片 * 尝试恢复图片 * 添加链接图片识别 * 替换掉request * 修复可能的responseUrls空值 * 优化格式 * 更新渲染页面 * 尝试新的引用索引 * 取消渲染时旧的策略 * 更新帮助页面 * 修复帮助路由 * 修复渲染页面错误 * 修复错误的正则 * 修改系统api服务 * 添加配置项 * 将新渲染方式加入配置并还原原渲染方式,进行并存 * 暂时取消端口设置功能 * 重新开启端口设置 * 修复旧渲染引用 * 更新帮助样式 --------- Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
151 lines
No EOL
5.7 KiB
HTML
151 lines
No EOL
5.7 KiB
HTML
<!doctype html>
|
||
<html class="no-js" lang="zxx">
|
||
|
||
<head>
|
||
<!--========= Required meta tags =========-->
|
||
<meta charset="utf-8">
|
||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||
<!--====== CSS Here ======-->
|
||
<link rel="stylesheet" href="{{pluResPath}}content/static/css/bootstrap.min.css">
|
||
<link rel="stylesheet" href="{{pluResPath}}content/static/css/font-awesome.min.css">
|
||
<link rel="stylesheet" href="{{pluResPath}}content/static/css/hljs.css">
|
||
<link rel="stylesheet" href="{{pluResPath}}content/Bing/style.css">
|
||
|
||
</head>
|
||
|
||
<body class="body-{{style}}">
|
||
<header class="site-header">
|
||
<div class="container">
|
||
<div class="row">
|
||
<div class="col-lg-3 col-4 my-auto">
|
||
<a href="#" class="site-logo">
|
||
<img src="{{pluResPath}}content/static/picture/bing.png" alt="LOGO">
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
<section class="about-area pt-232">
|
||
<div class="container">
|
||
<div class="row justify-content-end">
|
||
<div class="col-xl-5 col-lg-5 text-right">
|
||
<div class="section-heading section-heading-{{style}}">
|
||
<h2>New Bing</h2>
|
||
{{if cache.file != ''}}
|
||
<p> {{cache.file}} </p>
|
||
{{/if}}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-xl-12">
|
||
<div class="hero-content hero-content-{{style}}">
|
||
<h4>{{senderName}}</h4>
|
||
</div>
|
||
<div class="about-content">
|
||
<p class="markdown_prompt"></p>
|
||
<span class="height-50"></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-xl-12">
|
||
<div class="hero-content hero-content-{{style}}">
|
||
{{if style === 'Sydney'}}
|
||
<h4>Sydney</h4>
|
||
{{else}}
|
||
<h4>必应</h4>
|
||
{{/if}}
|
||
</div>
|
||
<div class="about-content">
|
||
<p class="markdown_content"></p>
|
||
<span class="height-50"></span>
|
||
</div>
|
||
</div>
|
||
{{if mood != ''}}
|
||
<div class="col-xl-12">
|
||
<div class="contact-shape">
|
||
<img src="{{pluResPath}}content/static/picture/{{mood}}.png" alt="">
|
||
</div>
|
||
</div>
|
||
{{/if}}
|
||
</div>
|
||
{{if quote}}
|
||
<div class="row">
|
||
<div class="col-xl-12">
|
||
<div class="hero-content hero-content-{{style}}">
|
||
<h4>引用</h4>
|
||
</div>
|
||
<div class="about-content">
|
||
{{each quotes item}}
|
||
<p>{{item.text}} - {{item.url}}</p>
|
||
{{/each}}
|
||
<span class="height-50"></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{{/if}}
|
||
{{if cache.file != ''}}
|
||
<div id="qrcode" class="row justify-content-end"></div>
|
||
{{/if}}
|
||
</div>
|
||
</section>
|
||
<!-- footer start -->
|
||
<footer class="site-footer site-footer-{{style}} mt-175">
|
||
<div class="container">
|
||
<div class="row">
|
||
<div class="col-md-2">
|
||
</div>
|
||
<div class="col-md-10 my-auto text-right">
|
||
<div class="copyright-text copyright-text-{{style}}">
|
||
<p>Response to {{senderName}} Created By Yunzai-Bot and ChatGPT-Plugin {{version}}</a></p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
<!-- footer end -->
|
||
|
||
<!--========= JS Here =========-->
|
||
<script>
|
||
MathJax = {
|
||
tex: {
|
||
inlineMath: [['$', '$'], ['\\(', '\\)']]
|
||
}
|
||
};
|
||
</script>
|
||
<script src="{{pluResPath}}content/static/js/jquery-2.2.4.min.js"></script>
|
||
<script src="{{pluResPath}}content/static/js/jquery.qrcode.min.js"></script>
|
||
<script src="{{pluResPath}}content/static/js/highlight.min.js"></script>
|
||
<script src="{{pluResPath}}content/static/js/marked.min.js"></script>
|
||
<script src="{{pluResPath}}content/static/js/tex-mml-chtml.js"></script>
|
||
<script src="{{pluResPath}}content/static/js/base64.min.js"></script>
|
||
<script src="{{pluResPath}}content/static/js/main.js"></script>
|
||
<script src="{{pluResPath}}content/static/js/purify.min.js"></script>
|
||
|
||
<script>
|
||
marked.setOptions({
|
||
renderer: new marked.Renderer(),
|
||
gfm: true,
|
||
tables: true,
|
||
breaks: false,
|
||
pedantic: false,
|
||
sanitize: false,
|
||
smartLists: true,
|
||
smartypants: false,
|
||
highlight: function (code,lang) {
|
||
return hljs.highlightAuto(code,[lang]).value;
|
||
}
|
||
});
|
||
const markdown_content = '{{@ content}}';
|
||
const html_content = marked.parse(Base64.decode(markdown_content));
|
||
const markdown_prompt = '{{@ prompt}}';
|
||
const html_prompt = marked.parse(Base64.decode(markdown_prompt));
|
||
|
||
$(".markdown_content").html(DOMPurify.sanitize(html_content));
|
||
$(".markdown_prompt").html(DOMPurify.sanitize(html_prompt));
|
||
jQuery('#qrcode').qrcode({width: 128,height: 128,text: "{{cache.cacheUrl}}/{{cache.file}}"});
|
||
</script>
|
||
</body>
|
||
|
||
</html> |