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

XFEstudio/gpt4free

Add Antigravity provider and update API response handling

- Imported Antigravity provider in the needs_auth module. - Removed login response handling from the API to streamline output. - Added console script entry for Antigravity in setup.py.

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

代码差异

5 个文件 +1508 -2
Modified .gitignore +1 -0
@@ -10,3 +10,4 @@ models/models.json
10 10 pyvenv.cfg
11 11 lib64
12 12 /.idea
13 container/
Modified g4f/Provider/needs_auth/__init__.py +1 -0
@@ -1,5 +1,6 @@
1 1 from .AIBadgr import AIBadgr
2 2 from .Anthropic import Anthropic
3 from .Antigravity import Antigravity
3 4 from .Azure import Azure
4 5 from .BingCreateImages import BingCreateImages
5 6 from .BlackboxPro import BlackboxPro
Modified g4f/gui/server/api.py +0 -2
@@ -257,8 +257,6 @@ class Api:
257 257 yield self._format_json("synthesize", chunk.get_dict())
258 258 elif isinstance(chunk, TitleGeneration):
259 259 yield self._format_json("title", chunk.title)
260 elif isinstance(chunk, RequestLogin):
261 yield self._format_json("login", str(chunk))
262 260 elif isinstance(chunk, Parameters):
263 261 yield self._format_json("parameters", chunk.get_dict())
264 262 elif isinstance(chunk, FinishReason):
Modified setup.py +1 -0
@@ -119,6 +119,7 @@ setup(
119 119 'console_scripts': [
120 120 'g4f=g4f.cli:main',
121 121 'g4f-mcp=g4f.mcp.server:main',
122 'g4f-antigravity=g4f.Provider.needs_auth.Antigravity:cli_main',
122 123 ],
123 124 },
124 125 url='https://github.com/xtekky/gpt4free', # Link to your GitHub repository