mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
添加实验性悉尼,添加必应图片模式样式自适应 (#216)
* 修复引用转发,默认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: 更新版本号 --------- Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
This commit is contained in:
parent
e580928b9b
commit
49bbb5ceb8
6 changed files with 579 additions and 32 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<!doctype html>
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="zxx">
|
||||
|
||||
<head>
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body class="body-{{style}}">
|
||||
<header class="site-header">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
<div class="container">
|
||||
<div class="row justify-content-end">
|
||||
<div class="col-xl-5 col-lg-5 text-right">
|
||||
<div class="section-heading">
|
||||
<div class="section-heading section-heading-{{style}}">
|
||||
<h2>New Bing</h2>
|
||||
{{if cache.file != ''}}
|
||||
<p> {{cache.file}} </p>
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xl-12">
|
||||
<div class="hero-content">
|
||||
<div class="hero-content hero-content-{{style}}">
|
||||
<h4>{{senderName}}</h4>
|
||||
</div>
|
||||
<div class="about-content">
|
||||
|
|
@ -50,8 +50,12 @@
|
|||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xl-12">
|
||||
<div class="hero-content">
|
||||
<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>
|
||||
|
|
@ -62,7 +66,7 @@
|
|||
{{if quote}}
|
||||
<div class="row">
|
||||
<div class="col-xl-12">
|
||||
<div class="hero-content">
|
||||
<div class="hero-content hero-content-{{style}}">
|
||||
<h4>引用</h4>
|
||||
</div>
|
||||
<div class="about-content">
|
||||
|
|
@ -80,13 +84,13 @@
|
|||
</div>
|
||||
</section>
|
||||
<!-- footer start -->
|
||||
<footer class="site-footer mt-175">
|
||||
<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">
|
||||
<div class="copyright-text copyright-text-{{style}}">
|
||||
<p>Response to {{senderName}} Created By Yunzai-Bot and ChatGPT-Plugin {{version}}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -3545,4 +3545,64 @@ input.form-control-sm {
|
|||
color: #17a2b8;
|
||||
}
|
||||
|
||||
/* Sydney */
|
||||
.body-Sydney {
|
||||
background: #b4afed29;
|
||||
}
|
||||
.section-heading-Sydney h2 {
|
||||
color: rgba(26, 0, 170, 0.25);
|
||||
}
|
||||
.section-heading-Sydney h2::after {
|
||||
background: #a5aae96a;
|
||||
}
|
||||
.hero-content-Sydney h4::after {
|
||||
background: #6e6bff;
|
||||
}
|
||||
.site-footer-Sydney {
|
||||
border-top: 1px solid #4842c1;
|
||||
}
|
||||
.copyright-text-Sydney p {
|
||||
color: #6217b8;
|
||||
}
|
||||
|
||||
/* precise */
|
||||
.body-precise {
|
||||
background: #20c9970f;
|
||||
}
|
||||
.section-heading-precise h2 {
|
||||
color: rgba(0, 167, 170, 0.25);
|
||||
}
|
||||
.section-heading-precise h2::after {
|
||||
background: #a5e9ca6a;
|
||||
}
|
||||
.hero-content-precise h4::after {
|
||||
background: #33ccb0;
|
||||
}
|
||||
.site-footer-precise {
|
||||
border-top: 1px solid #42c19d;
|
||||
}
|
||||
.copyright-text-precise p {
|
||||
color: #17b8a0;
|
||||
}
|
||||
|
||||
/* creative */
|
||||
.body-creative {
|
||||
background: #c5afed29;
|
||||
}
|
||||
.section-heading-creative h2 {
|
||||
color: rgb(97 0 170 / 25%);
|
||||
}
|
||||
.section-heading-creative h2::after {
|
||||
background: #caa5e96a;
|
||||
}
|
||||
.hero-content-creative h4::after {
|
||||
background: #ad6bff;
|
||||
}
|
||||
.site-footer-creative {
|
||||
border-top: 1px solid #6f42c1;
|
||||
}
|
||||
.copyright-text-creative p {
|
||||
color: #9c17b8;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=style.css.map */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue