Commit Graph

141 Commits

Author SHA1 Message Date
binary-husky 65d0f486f1 change cache to lru_cache for lower python version 2024-07-07 16:02:05 +00:00
binary-husky 41f25a6a9b Merge branch 'bold_frontier' into frontier 2024-07-04 14:16:08 +00:00
binary-husky f945a7bd19 preserve theme selection 2024-07-04 14:11:51 +00:00
binary-husky 379dcb2fa7 minor gui bug fix 2024-07-04 13:31:21 +00:00
binary-husky 30c905917a unify plugin calling 2024-07-02 15:32:40 +00:00
binary-husky 1d9e9fa6a1 new page btn 2024-07-01 16:27:23 +00:00
binary-husky 0ad571e6b5 prevent further stream when reset is clicked 2024-06-25 11:43:14 +00:00
binary-husky ececfb9b6e test new dropdown js code 2024-06-25 08:34:50 +00:00
binary-husky 68b36042ce re-locate plugin 2024-06-25 05:32:20 +00:00
Guoxin Sun cb96ca132a
Update common.js (#1854)
fix typo
2024-06-10 22:17:27 +08:00
binary-husky 66a50c8019 live2d shutdown bug fix 2024-06-01 16:21:04 +00:00
binary-husky 96cd1f0b25 secondary menu main input sync bug fix 2024-05-31 04:13:27 +00:00
binary-husky cb16941d01 update css 2024-05-30 12:35:47 +00:00
binary-husky a938412b6f save conversation wrap 2024-05-23 15:58:59 +00:00
binary-husky a48acf6fec Flex Btn Bug Fix 2024-05-22 08:38:40 +00:00
binary-husky 0a88d18c7a secondary menu for pdf trans 2024-05-21 08:51:29 +00:00
binary-husky 29daba5d2f success? 2024-05-18 23:03:28 +08:00
binary-husky 9477824ac1 improve css 2024-05-18 21:54:15 +08:00
binary-husky 459c5b2d24 plugin refactor: phase 1 2024-05-18 20:23:50 +08:00
binary-husky 537be57c9b fix tts bugs 2024-05-17 21:07:28 +08:00
binary-husky 5fcd02506c
version 3.75 (#1702)
* Update version to 3.74

* Add support for Yi Model API (#1635)

* 更新以支持零一万物模型

* 删除newbing

* 修改config

---------

Co-authored-by: binary-husky <qingxu.fu@outlook.com>

* Refactor function signatures in bridge files

* fix qwen api change

* rename and ref functions

* rename and move some cookie functions

* 增加haiku模型,新增endpoint配置说明 (#1626)

* haiku added

* 新增haiku,新增endpoint配置说明

* Haiku added

* 将说明同步至最新Endpoint

---------

Co-authored-by: binary-husky <qingxu.fu@outlook.com>

* private_upload目录下进行文件鉴权 (#1596)

* private_upload目录下进行文件鉴权

* minor fastapi adjustment

* Add logging functionality to enable saving
conversation records

* waiting to fix username retrieve

* support 2rd web path

* allow accessing default user dir

---------

Co-authored-by: binary-husky <qingxu.fu@outlook.com>

* remove yaml deps

* fix favicon

* fix abs path auth problem

* forget to write a return

* add `dashscope` to deps

* fix GHSA-v9q9-xj86-953p

* 用户名重叠越权访问patch (#1681)

* add cohere model api access

* cohere + can_multi_thread

* fix block user access(fail)

* fix fastapi bug

* change cohere api endpoint

* explain version

* # fix com_zhipuglm.py illegal temperature problem (#1687)

* Update com_zhipuglm.py

# fix 用户在使用 zhipuai 界面时遇到了关于温度参数的非法参数错误

* allow store lm model dropdown

* add a btn to reverse previous reset

* remove extra fns

* Add support for glm-4v model (#1700)

* 修改chatglm3量化加载方式 (#1688)

Co-authored-by: zym9804 <ren990603@gmail.com>

* save chat stage 1

* consider null cookie situation

* 在点击复制按钮时激活语音

* miss some parts

* move all to js

* done first stage

* add edge tts

* bug fix

* bug fix

* remove console log

* bug fix

* bug fix

* bug fix

* audio switch

* update tts readme

* remove tempfile when done

* disable auto audio follow

* avoid play queue update after shut up

* feat: minimizing common.js

* improve tts functionality

* deterine whether the cached model is in choices

* Add support for Ollama (#1740)

* print err when doc2x not successful

* add icon

* adjust url for doc2x key version

* prepare merge

---------

Co-authored-by: Menghuan1918 <menghuan2003@outlook.com>
Co-authored-by: Skyzayre <120616113+Skyzayre@users.noreply.github.com>
Co-authored-by: XIao <46100050+Kilig947@users.noreply.github.com>
Co-authored-by: Yuki <903728862@qq.com>
Co-authored-by: zyren123 <91042213+zyren123@users.noreply.github.com>
Co-authored-by: zym9804 <ren990603@gmail.com>
2024-04-30 20:37:41 +08:00
OREEkE 02b6f26b05
remove logging in gradios.py (#1699)
如果初始主题是HF社区主题,这里使用logging会导致程序不再写入日志(包括对话内容在内的任何记录),下载主题的日志输出和程序启动时的日志初始化有冲突。
2024-04-11 14:15:12 +08:00
OREEkE 2a003e8d49
add loadLive2D() when ADD_WAIFU = False (#1693)
ADD_WAIFU = False,浏览器会抛出错误:[Error] JQuery is not defined. 因为这时候没有jQuery库可用,却依然使用了loadLive2D()函数。现在加一个判断,如果ADD_WAIFU = False,禁用jQuery库的同时也禁用loadLive2D()函数,除非ADD_WAIFU = True
2024-04-10 00:10:53 +08:00
binary-husky bdd46c5dd1
Version 3.74: Merge latest updates on dev branch (frontier) (#1621)
* Update version to 3.74

* Add support for Yi Model API (#1635)

* 更新以支持零一万物模型

* 删除newbing

* 修改config

---------

Co-authored-by: binary-husky <qingxu.fu@outlook.com>

* Refactor function signatures in bridge files

* fix qwen api change

* rename and ref functions

* rename and move some cookie functions

* 增加haiku模型,新增endpoint配置说明 (#1626)

* haiku added

* 新增haiku,新增endpoint配置说明

* Haiku added

* 将说明同步至最新Endpoint

---------

Co-authored-by: binary-husky <qingxu.fu@outlook.com>

* private_upload目录下进行文件鉴权 (#1596)

* private_upload目录下进行文件鉴权

* minor fastapi adjustment

* Add logging functionality to enable saving
conversation records

* waiting to fix username retrieve

* support 2rd web path

* allow accessing default user dir

---------

Co-authored-by: binary-husky <qingxu.fu@outlook.com>

* remove yaml deps

* fix favicon

* fix abs path auth problem

* forget to write a return

* add `dashscope` to deps

* fix GHSA-v9q9-xj86-953p

* 用户名重叠越权访问patch (#1681)

* add cohere model api access

* cohere + can_multi_thread

* fix block user access(fail)

* fix fastapi bug

* change cohere api endpoint

* explain version

---------

Co-authored-by: Menghuan1918 <menghuan2003@outlook.com>
Co-authored-by: Skyzayre <120616113+Skyzayre@users.noreply.github.com>
Co-authored-by: XIao <46100050+Kilig947@users.noreply.github.com>
2024-04-08 11:49:30 +08:00
binary-husky ddd2fd84da fix checkbox bugs 2024-04-02 19:42:55 +08:00
binary-husky 6c90ff80ea add prompt and temperature to cookie 2024-04-02 18:02:00 +08:00
iluem 8af6c0cab6
Qhaoduoyu patch 1: pickle to json to increase security (#1648)
* Update theme.py

fix bugs

* Update theme.py

fix bugs

* change var names

---------

Co-authored-by: binary-husky <qingxu.fu@outlook.com>
2024-03-25 09:54:30 +08:00
binary-husky 2e9b4a5770
Merge Frontier, Update to Version 3.72 (#1553)
* Zhipu sdk update 适配最新的智谱SDK,支持GLM4v (#1502)

* 适配 google gemini 优化为从用户input中提取文件

* 适配最新的智谱SDK、支持glm-4v

* requirements.txt fix

* pending history check

---------

Co-authored-by: binary-husky <qingxu.fu@outlook.com>

* Update "生成多种Mermaid图表" plugin: Separate out the file reading function (#1520)

* Update crazy_functional.py with new functionality deal with PDF

* Update crazy_functional.py and Mermaid.py for plugin_kwargs

* Update crazy_functional.py with new chart type: mind map

* Update SELECT_PROMPT and i_say_show_user messages

* Update ArgsReminder message in get_crazy_functions() function

* Update with read md file and update PROMPTS

* Return the PROMPTS as the test found that the initial version worked best

* Update Mermaid chart generation function

* version 3.71

* 解决issues #1510

* Remove unnecessary text from sys_prompt in 解析历史输入 function

* Remove sys_prompt message in 解析历史输入 function

* Update bridge_all.py: supports gpt-4-turbo-preview (#1517)

* Update bridge_all.py: supports gpt-4-turbo-preview

supports gpt-4-turbo-preview

* Update bridge_all.py

---------

Co-authored-by: binary-husky <96192199+binary-husky@users.noreply.github.com>

* Update config.py: supports gpt-4-turbo-preview (#1516)

* Update config.py: supports gpt-4-turbo-preview

supports gpt-4-turbo-preview

* Update config.py

---------

Co-authored-by: binary-husky <96192199+binary-husky@users.noreply.github.com>

* Refactor 解析历史输入 function to handle file input

* Update Mermaid chart generation functionality

* rename files and functions

---------

Co-authored-by: binary-husky <qingxu.fu@outlook.com>
Co-authored-by: hongyi-zhao <hongyi.zhao@gmail.com>
Co-authored-by: binary-husky <96192199+binary-husky@users.noreply.github.com>

* 接入mathpix ocr功能 (#1468)

* Update Latex输出PDF结果.py

借助mathpix实现了PDF翻译中文并重新编译PDF

* Update config.py

add mathpix appid & appkey

* Add 'PDF翻译中文并重新编译PDF' feature to plugins.

---------

Co-authored-by: binary-husky <96192199+binary-husky@users.noreply.github.com>

* fix zhipuai

* check picture

* remove glm-4 due to bug

* 修改config

* 检查MATHPIX_APPID

* Remove unnecessary code and update
function_plugins dictionary

* capture non-standard token overflow

* bug fix #1524

* change mermaid style

* 支持mermaid 滚动放大缩小重置,鼠标滚动和拖拽 (#1530)

* 支持mermaid 滚动放大缩小重置,鼠标滚动和拖拽

* 微调未果 先stage一下

* update

---------

Co-authored-by: binary-husky <qingxu.fu@outlook.com>
Co-authored-by: binary-husky <96192199+binary-husky@users.noreply.github.com>

* ver 3.72

* change live2d

* save the status of ``clear btn` in cookie

* 前端选择保持

* js ui bug fix

* reset btn bug fix

* update live2d tips

* fix missing get_token_num method

* fix live2d toggle switch

* fix persistent custom btn with cookie

* fix zhipuai feedback with core functionality

* Refactor button update and clean up functions

---------

Co-authored-by: XIao <46100050+Kilig947@users.noreply.github.com>
Co-authored-by: Menghuan1918 <menghuan2003@outlook.com>
Co-authored-by: hongyi-zhao <hongyi.zhao@gmail.com>
Co-authored-by: Hao Ma <893017927@qq.com>
Co-authored-by: zeyuan huang <599012428@qq.com>
2024-02-14 18:35:09 +08:00
binary-husky 6c13bb7b46 patch issue #1538 2024-02-06 17:59:09 +08:00
binary-husky ef311c4859 localize mjs scripts 2024-01-24 01:06:58 +08:00
binary-husky d818c38dfe better theme 2024-01-21 19:41:18 +08:00
binary-husky 031f19b6dd 替换错误的变量名称 2024-01-20 18:28:54 +08:00
binary-husky 0d10bc570f bug fix 2024-01-16 01:22:50 +08:00
binary-husky 3ce7d9347d dark support 2024-01-16 00:33:11 +08:00
Keldos 8a78d7b89f
adapt mermaid to dark mode (#1476)
Co-authored-by: binary-husky <96192199+binary-husky@users.noreply.github.com>
2024-01-16 00:32:12 +08:00
binary-husky 0e43b08837 同步 2024-01-16 00:29:46 +08:00
binary-husky 74bced2d35 添加脑图编辑按钮 2024-01-15 13:41:21 +08:00
binary-husky 961a24846f remove console log 2024-01-15 11:50:37 +08:00
binary-husky b7e4744f28 apply to other themes 2024-01-15 11:49:04 +08:00
binary-husky 71adc40901 support diagram plotting via mermaid ! 2024-01-15 02:49:21 +08:00
binary-husky bdde1d2fd7 format code 2024-01-14 04:18:38 +08:00
binary-husky 63373ab3b6 Merge branch 'frontier' of github.com:binary-husky/chatgpt_academic into frontier 2024-01-14 03:41:47 +08:00
binary-husky 9f2ef9ec49 limit scroll 2024-01-14 02:11:07 +08:00
binary-husky 35c1aa21e4 limit scroll 2024-01-14 01:55:59 +08:00
binary-husky 6b1c6f0bf7 better gui interaction 2024-01-07 18:49:08 +08:00
qingxu fu 480516380d re-format code to with pre-commit 2023-12-31 19:30:32 +08:00
binary-husky a96f842b3a minor ui change 2023-12-30 02:57:42 +08:00
binary-husky 417ca91e23 minor css change 2023-12-30 00:55:52 +08:00
binary-husky ef8fadfa18 fix ui element padding 2023-12-29 15:16:33 +08:00
binary-husky 31304f481a remove console log 2023-12-25 22:57:09 +08:00
binary-husky 160a683667 smart input panel swap 2023-12-25 22:05:14 +08:00
binary-husky 49ca03ca06 Merge branch 'master' into frontier 2023-12-25 21:43:33 +08:00
binary-husky c625348ce1 smarter chatbot height adjustment 2023-12-25 21:26:24 +08:00
binary-husky 867ddd355e adjust green theme layout 2023-12-22 21:59:18 +08:00
binary-husky 43568b83e1 improve file upload notification 2023-12-21 14:39:58 +08:00
Keldos 2b90302851
feat: drag file to chatbot to upload 拖动以上传文件 (#1396)
* feat: 拖动以上传文件

* 上传文件过程中转圈圈

* fix: 解决仅在第一次上传时才有上传动画的问题

---------

Co-authored-by: 505030475 <qingxu.fu@outlook.com>
2023-12-21 10:24:11 +08:00
binary-husky 6e9936531d fix theme shifting bug 2023-12-17 19:45:37 +08:00
binary-husky 439147e4b7 re-arrange main.py 2023-12-17 15:55:15 +08:00
binary-husky 49fe06ed69 add light edge for audio btn 2023-12-15 21:12:39 +08:00
binary-husky dc68e601a5 optimize audio plugin 2023-12-15 16:28:42 +08:00
spike 88802b0f72 增加无法粘贴的toast 2023-11-29 20:15:40 +08:00
spike 5720ac127c 监听输入框,支持粘贴上传文件 2023-11-29 20:04:15 +08:00
binary-husky 577d3d566b 修复看板娘不断分裂的BUG 2023-11-29 00:11:48 +08:00
binary-husky 12df41563a hide audio btn border 2023-11-08 18:40:36 +08:00
binary-husky 527f9d28ad change get_conf 2023-10-29 00:34:40 +08:00
binary-husky 991e41b313 change default path to relative 2023-10-21 00:27:55 +08:00
binary-husky 0c3b00fc6b cookie space 2023-10-11 12:33:50 +08:00
binary-husky 49cea97822 启动主题自动转换 2023-10-06 10:36:30 +08:00
binary-husky 6310b65d70 重新编译Gradio优化使用体验 2023-10-06 10:32:03 +08:00
binary-husky 87b9734986 修复'copiedIcon'重复定义BUG 2023-09-27 16:35:58 +08:00
binary-husky 8ba6fc062e Merge branch 'frontier' of github.com:binary-husky/chatgpt_academic into frontier 2023-09-23 23:59:30 +08:00
binary-husky c0c2d14e3d better scrollbar 2023-09-23 23:58:32 +08:00
binary-husky f0a5c49a9c Merge branch 'frontier' of github.com:binary-husky/chatgpt_academic into frontier 2023-09-23 23:47:42 +08:00
binary-husky 9333570ab7 减小重置等基础按钮的最小大小 2023-09-23 23:47:25 +08:00
binary-husky 2d8f37baba 细分代理场景 2023-09-23 22:43:15 +08:00
binary-husky 5b231e0170 添加整体复制按钮 2023-09-23 22:11:29 +08:00
binary-husky 5e647ff149 Merge branch 'master' into frontier 2023-09-19 17:21:02 +08:00
qingxu fu 1c0d5361ea 调整状态栏的最小高度 2023-09-19 15:52:42 +08:00
qingxu fu 2cad8e2694 支持动态切换主题 2023-09-17 00:15:28 +08:00
qingxu fu e765ec1223 dynamic theme 2023-09-17 00:02:49 +08:00
qingxu fu d495b73456 支持更多UI皮肤外观,加入暗色亮色切换键 2023-09-11 22:55:32 +08:00
qingxu fu 0418257218 Merge branch 'master' into Kilig947-plugin_classification 2023-09-03 15:35:16 +08:00
qingxu fu 1639796041 support file implementation 2023-09-02 22:22:41 +08:00
binary-husky 6d7f3feab3 优化主题外观,新增high-contrast主题 2023-09-01 10:45:22 +08:00
qingxu fu b69140307b 修复对话框对齐的问题 2023-08-31 16:24:00 +08:00
qingxu fu 2d5a1fbc12 修改前端代码 2023-08-31 00:21:24 +08:00
w_xiaolizu a208782049 新增插件分类 2023-08-30 14:46:34 +08:00
Keldos 0b11260d6f fix: 修复川虎主题的slider问题 2023-08-14 00:15:38 +08:00
Keldos 31ab97dd09 feat: 调整川虎主题样式 2023-08-14 00:14:44 +08:00
binary-husky 5050016b22 theme typo fix 2023-08-12 20:28:20 +08:00
binary-husky fe231f72b6 fix theme folder rename problem 2023-07-16 13:15:55 +08:00