Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

命令管理和中间件优化处理 (Sourcery refactored) #1123

Open
wants to merge 146 commits into
base: browser-version-dev
Choose a base branch
from

Conversation

sourcery-ai[bot]
Copy link
Contributor

@sourcery-ai sourcery-ai bot commented Aug 5, 2023

Pull Request #1122 refactored by Sourcery.

Since the original Pull Request was opened as a fork in a contributor's
repository, we are unable to create a Pull Request branching from it.

To incorporate these changes, you can either:

  1. Merge this Pull Request instead of the original, or

  2. Ask your contributor to locally incorporate these commits and push them to
    the original Pull Request

    Incorporate changes via command line
    git fetch https://github.com/lss233/chatgpt-mirai-qq-bot pull/1122/head
    git merge --ff-only FETCH_HEAD
    git push

NOTE: As code is pushed to the original Pull Request, Sourcery will
re-run and update (force-push) this Pull Request with new refactorings as
necessary. If Sourcery finds no refactorings at any point, this Pull Request
will be closed automatically.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Help us improve this pull request!

lss233 and others added 30 commits April 21, 2023 00:01
Bumps [edgegpt](https://github.com/acheong08/EdgeGPT) from 0.1.25.1 to 0.3.0.
- [Release notes](https://github.com/acheong08/EdgeGPT/releases)
- [Commits](acheong08/EdgeGPT@0.1.25.1...0.3.0)

---
updated-dependencies:
- dependency-name: edgegpt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [poe-api](https://github.com/ading2210/poe-api) to permit the latest version.
- [Release notes](https://github.com/ading2210/poe-api/releases)
- [Commits](https://github.com/ading2210/poe-api/commits)

---
updated-dependencies:
- dependency-name: poe-api
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [pygments](https://github.com/pygments/pygments) to permit the latest version.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](pygments/pygments@2.15.0...2.15.1)

---
updated-dependencies:
- dependency-name: pygments
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
增加企业微信支持
Haibersut and others added 28 commits July 12, 2023 23:52
* 修复程序开启http模式关不掉的问题

* 修复部分api错误

修复了加载预设导致engine重置为None的问题

* 不再强制检查API,新增非流API请求

* 格式化文件

* 优化部分代码
* 更新edgeGPT的方式和依赖版本

* 更新适配新的EDGEGPT的流式传输
)

Updates the requirements on [pydantic](https://github.com/pydantic/pydantic) to permit the latest version.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v1.10.9...v2.0.2)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updates the requirements on [urllib3](https://github.com/urllib3/urllib3) to permit the latest version.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](urllib3/urllib3@1.26.15...2.0.3)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update api.py

* 'Refactored by Sourcery'

---------

Co-authored-by: Matt Gideon <117586514+Haibersut@users.noreply.github.com>
Co-authored-by: Sourcery AI <>
Bumps [revchatgpt](https://github.com/acheong08/ChatGPT) from 6.3.3 to 6.8.1.
- [Release notes](https://github.com/acheong08/ChatGPT/releases)
- [Commits](acheong08/ChatGPT@6.3.3...6.8.1)

---
updated-dependencies:
- dependency-name: revchatgpt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updates the requirements on [poe-api](https://github.com/ading2210/poe-api) to permit the latest version.
- [Commits](https://github.com/ading2210/poe-api/commits)

---
updated-dependencies:
- dependency-name: poe-api
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
)

Updates the requirements on [poe-api](https://github.com/ading2210/poe-api) to permit the latest version.
- [Commits](https://github.com/ading2210/poe-api/commits)

---
updated-dependencies:
- dependency-name: poe-api
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fix ModuleNotFoundError: No module named 'utils'
更新api模型清单以支持第三方网站提供的额外模型
* 修复部分情况下上游返回正常的空消息导致程序错误

* 修复程序出错后仍然计时的问题
* Fit newest POE

* Fit newest POE

* Fix name

* Fit newest poe

* Update poe to newest fix some error

* Fix name error
…1063)

Updates the requirements on [httpcore](https://github.com/encode/httpcore) to permit the latest version.
- [Release notes](https://github.com/encode/httpcore/releases)
- [Changelog](https://github.com/encode/httpcore/blob/master/CHANGELOG.md)
- [Commits](encode/httpcore@0.17.2...0.17.3)

---
updated-dependencies:
- dependency-name: httpcore
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updates the requirements on [tinydb](https://github.com/msiemens/tinydb) to permit the latest version.
- [Release notes](https://github.com/msiemens/tinydb/releases)
- [Changelog](https://github.com/msiemens/tinydb/blob/master/docs/changelog.rst)
- [Commits](msiemens/tinydb@v4.7.1...v4.8.0)

---
updated-dependencies:
- dependency-name: tinydb
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot) from 20.3 to 20.4.
- [Release notes](https://github.com/python-telegram-bot/python-telegram-bot/releases)
- [Changelog](https://github.com/python-telegram-bot/python-telegram-bot/blob/master/CHANGES.rst)
- [Commits](python-telegram-bot/python-telegram-bot@v20.3...v20.4)

---
updated-dependencies:
- dependency-name: python-telegram-bot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updates the requirements on [urllib3](https://github.com/urllib3/urllib3) to permit the latest version.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](urllib3/urllib3@2.0.3...2.0.4)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updates the requirements on [aiohttp](https://github.com/aio-libs/aiohttp) to permit the latest version.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/v3.8.5/CHANGES.rst)
- [Commits](aio-libs/aiohttp@v3.8.4...v3.8.5)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@sourcery-ai sourcery-ai bot requested a review from Haibersut August 5, 2023 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.