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

✨ feat(gpt): 允许用户指定使用 GPT 翻译的时候是否开启 stream 模式 #947

Merged
merged 3 commits into from
Oct 11, 2024

Conversation

frostime
Copy link
Contributor

  • 在 GPT 的设置选项中增加了一个 stream 的 checkbox 选项(默认 true)
  • 允许用户关闭 stream 模式进行翻译
  • 在关闭 stream 模式状态下,会首先将文本框内的文本替换为 "正在翻译...",此后等消息返回完成后再替换为翻译的结果

效果大致如下:

image

image

在 run start 模式下测试了即便,至少本人没发现什么 bug。

@frostime
Copy link
Contributor Author

作者您好,我看 PR 还处于挂起状态。请问有什么不适当的地方需要改动吗?

或者如果您觉得这个 PR 的功能不太妥当,我也可以直接 close 掉。

@windingwind
Copy link
Owner

作者您好,我看 PR 还处于挂起状态。请问有什么不适当的地方需要改动吗?

或者如果您觉得这个 PR 的功能不太妥当,我也可以直接 close 掉。

抱歉太忙忘记review了,感谢贡献。

@windingwind windingwind merged commit 7a471ba into windingwind:main Oct 11, 2024
Copy link

🚀 This ticket has been resolved in v2.0.4. See Release v2.0.4 for release notes.

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.

2 participants