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

💄 适配更多的mysql,同时优化了并发问题,代码重构 #46

Merged
merged 60 commits into from
Jun 22, 2024

Conversation

Yanyutin753
Copy link
Collaborator

@Yanyutin753 Yanyutin753 commented Jun 20, 2024

本次PR的内容:

  1. 新增查询cookies返回列表形式,方便删除或者添加
  • COOKIES_PREFIX/cookies?cookies_type=list post: 用于获得list形式的cookies
  1. 定时任务调整,一小时执行一次,刷新并剔除无效的cookies

  2. 并发优化,同时适配更多版本的mysql,也支持docker-compose.yml,部署mysql和suno2openai

  3. 对添加和刷新cookies速度进行极大的提升,使用BATCH_SIZE用于处理cookies的并发数

  4. 整体代码结构优化,使得代码结构性更强

  5. 日志处理升级,使得报错和请求处理信息更加清晰

  6. 优化返回消息,同时提升首字返回速度,并对异常进行重试处理

  7. 重构了suno.py,异步化函数,简化代码结构

  8. 新增MAX_TIME变量,用于设定请求返回的最大时间(默认:5min),使得接口返回时间稳定性提高

  9. 新增PROXY变量,用于代理服务器请求suno

@Yanyutin753 Yanyutin753 merged commit 562e6b2 into wlhtea:main Jun 22, 2024
Yanyutin753 added a commit to Yanyutin753/Suno2openai that referenced this pull request Jun 22, 2024
Merge pull request wlhtea#46 from Yanyutin753/back
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.

1 participant