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

perf: 优化发送TG消息的逻辑,减少次数,增加429判断 #256

Closed
wants to merge 1 commit into from

Conversation

adolphnov
Copy link

perf: 优化发送TG消息的逻辑,减少次数,增加429判断
feat: 增加特定文本过滤功能; 增加实时显示模型信息与时间;增加首轮对话超时
fix: 调整中间件顺序防止命令生成图像超时; 补全/setenvs的帮助信息
环境变量增加 CHAT_TIMEOUT(默认 15s)、IGNORE_TEXT、ENABLE_SHOWINFO(默认开启)

feat: 增加特定文本过滤功能; 增加实时显示模型信息与时间;增加首轮对话超时

fix: 调整中间件顺序防止命令生成图像超时; 补全/setenvs的帮助信息

环境变量增加 CHAT_TIMEOUT(默认 15s)、IGNORE_TEXT、ENABLE_SHOWINFO(默认开启)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

之前试过MarkdownV2,大部分时候都会因为解析失败导致消息发送失败。因为基本上所有AI返回的都是原始版本的Markdown

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个其实基本下面
USER_CONFIG的model其实在USER_CONFIG中有显示

ENV.CHAT_MODEL: gpt-3.5-turbo
USER_CONFIG: {
  "DEFINE_KEYS": [
    "AI_PROVIDER",
    "CHAT_MODEL",
    "AI_IMAGE_PROVIDER"
  ],
  "AI_PROVIDER": "openai",
  "AI_IMAGE_PROVIDER": "auto",
  "CHAT_MODEL": "gpt-4o",

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.

None yet

2 participants