mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
fix: ignore /message/metadata/refresh_key_info
This commit is contained in:
parent
ce30200e2e
commit
21f4c40a0d
1 changed files with 3 additions and 1 deletions
|
|
@ -541,7 +541,9 @@ class OpenaiChat(AsyncAuthedProvider, ProviderModelMixin):
|
||||||
if "v" in line:
|
if "v" in line:
|
||||||
v = line.get("v")
|
v = line.get("v")
|
||||||
if isinstance(v, str) and fields.recipient == "all":
|
if isinstance(v, str) and fields.recipient == "all":
|
||||||
if "p" not in line or line.get("p") == "/message/content/parts/0":
|
if fields.p == "/message/metadata/refresh_key_info":
|
||||||
|
yield ""
|
||||||
|
elif "p" not in line or line.get("p") == "/message/content/parts/0":
|
||||||
yield Reasoning(token=v) if fields.is_thinking else v
|
yield Reasoning(token=v) if fields.is_thinking else v
|
||||||
elif isinstance(v, list):
|
elif isinstance(v, list):
|
||||||
for m in v:
|
for m in v:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue