返回提交历史
Modified
g4f/Provider/needs_auth/Gemini.py
+2
-2
Modified
g4f/gui/client/static/js/chat.v1.js
+1
-1
XFEstudio/gpt4free
Fix typos
6ba21db0
代码差异
2 个文件
+3
-3
@@ -197,13 +197,13 @@ class Gemini(AsyncGeneratorProvider, ProviderModelMixin):
197
197
yield from read_recusive(item)
198
198
elif isinstance(item, str) and not item.startswith("rc_"):
199
199
yield item
200
def first_str(data, skip=0):
200
def find_str(data, skip=0):
201
201
for item in read_recusive(data):
202
202
if skip > 0:
203
203
skip -= 1
204
204
continue
205
205
yield item
206
reasoning = "".join(first_str(response_part[4][0], 3))
206
reasoning = "".join(find_str(response_part[4][0], 3))
207
207
content = response_part[4][0][1][0]
208
208
if reasoning:
209
209
yield Reasoning(status="🤔")
@@ -871,7 +871,7 @@ const ask_gpt = async (message_id, message_index = -1, regenerate = false, provi
871
871
stop_generating.classList.remove("stop_generating-hidden");
872
872
let scroll = true;
873
873
if (message_index >= 0 && parseInt(message_index) + 1 < conversation.items.length) {
874
scroll = false;finish_message
874
scroll = false;
875
875
}
876
876
877
877
if (scroll) {