gpt4free/g4f
copilot-swe-agent[bot] f51e45fd83 Fix duplicate RequestLogin type check and dead code in api.py
- Remove duplicate isinstance(chunk, RequestLogin) check at line 220
- Fix remaining RequestLogin handler to use chunk.to_string() instead of str(chunk)
- Resolves conflicting type checks issue where first check made second unreachable

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-01-28 13:14:36 +00:00
..
api chore: Update GitHub Actions to use stable versions and adjust refresh interval in Gemini provider 2026-01-22 02:14:43 +01:00
cli Add --access-log and --no-access-log CLI parameters for access logging control 2026-01-20 17:24:42 +00:00
client fix: Update API endpoints to use new g4f.space URLs and remove deprecated providers 2026-01-24 03:28:00 +01:00
gui Fix duplicate RequestLogin type check and dead code in api.py 2026-01-28 13:14:36 +00:00
image Improve Yupp provider account handling , request timeout and get byte from url (#3249) 2025-11-26 14:02:51 +01:00
integration Refactor PollinationsAI model selection logic; update default system in AIModel; clean up unused provider imports 2025-11-10 13:58:07 +01:00
local Fix import in LocalClient 2025-01-07 00:36:22 +01:00
locals
mcp feat: Add synthesize endpoint for text-to-speech in MCPServer 2026-01-24 09:35:26 +01:00
Provider Only delete chats when "conversation" is not present on kwargs 2026-01-26 03:41:53 -04:00
providers fix: Update references from 'nest_asyncio' to 'nest-asyncio2' across the codebase 2026-01-27 11:29:43 +01:00
requests Fix header handling by adding Brotli check and adjusting accept-encoding 2026-01-04 15:25:19 +01:00
tools Refactor PollinationsAI: simplify prompt encoding and improve whitespace handling; update Gemini imports and response handling; enhance usage tracking in run_tools 2026-01-09 14:18:56 +01:00
__init__.py Refactor API base URL references across providers 2025-12-25 22:09:20 +01:00
__main__.py Update build 2025-08-22 13:45:19 +02:00
config.py Increase DEFAULT_STREAM_TIMEOUT from 15 to 30 for improved streaming performance 2025-12-28 07:55:34 +01:00
cookies.py Add CopilotSession provider and enhance PollinationsAI endpoints 2026-01-04 14:28:28 +01:00
debug.py refactor: restructure core utilities, typing, and request handling 2025-08-09 03:29:44 +02:00
errors.py fix: Update references from 'nest_asyncio' to 'nest-asyncio2' across the codebase 2026-01-27 11:29:43 +01:00
files.py refactor: restructure core utilities, typing, and request handling 2025-08-09 03:29:44 +02:00
models.py fix: Update API endpoints to use new g4f.space URLs and remove deprecated providers 2026-01-24 03:28:00 +01:00
typing.py Fix undefined names, type errors, and code quality issues (#3288) 2025-12-12 08:33:43 +01:00
version.py Update build 2025-08-22 13:45:19 +02:00