mirror of
https://github.com/ErlichLiu/DeepClaude.git
synced 2026-04-25 13:15:54 +03:00
[GH-ISSUE #97] [Question]: 如何让DeepClaude在向Gemini发送请求时不以流式传输方式进行请求 #69
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/DeepClaude#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FFei-Zhou on GitHub (Mar 15, 2025).
Original GitHub issue: https://github.com/ErlichLiu/DeepClaude/issues/97
提问前确认
问题类别
使用方法
您的问题
感谢大佬开源此项目!
各位大佬,如题↑
我使用SillyTavern时,发现我关闭流式传输只是关闭了本项目的流式传输,实际向Gemini发送请求时还是以流式传输的方式发送请求。
因为Gemini的流式传输和非流式传输的审核是不一样的,如果是流式传输,会直接在生成到一半时半路截断,但是非流式的截断是完全没有内容。我关闭ST的流式传输,得到的内容是半路截断的,因此我暂时认为是项目发送请求时没有关闭流式传输。
我是小白,不知道对不对,求大佬看到了指点两句,帮帮忙。
背景信息
最新版本
代码示例(如适用)
其他信息
No response
@FFei-Zhou commented on GitHub (Mar 15, 2025):
最终在深蓝和哈基米的联手协助下,三次回复就搞定了,真的逆天
下面是深度基米提供的解决方案:
将
openai_composite.py的代码改成:我不懂编程,不知道有没有问题,但是暂时使用没出现什么异常.
一开始代码行数一下子少了20行,我怕有问题还确认了一下,深基米给出的答复是:
@FFei-Zhou commented on GitHub (Mar 15, 2025):
希望可以帮到有需要的兄弟