XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update PuterJS

5f2bbd83
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -1
Modified g4f/Provider/needs_auth/PuterJS.py +2 -1
@@ -24,6 +24,7 @@ class PuterJS(AsyncGeneratorProvider, ProviderModelMixin):
24 24 active_by_default = True
25 25 needs_auth = True
26 26 quota_url = "https://api.puter.com/metering/usage"
27 supports_native_tools = True
27 28
28 29 default_model = 'gpt-5.1'
29 30 default_vision_model = default_model
@@ -371,6 +372,6 @@ class PuterJS(AsyncGeneratorProvider, ProviderModelMixin):
371 372 elif data.get("type") == "tool_calls":
372 373 yield ToolCalls(data.get("tool_calls", []))
373 374 elif data.get("type") == "usage":
374 yield Usage(**data.get("usage", {}))
375 yield Usage.from_dict(data.get("usage", {}))
375 376 else:
376 377 raise ResponseError(f"Unexpected content type: {mime_type}")