copilot-swe-agent[bot]
dd9230ef4e
Add PaProviderRegistry, /pa/* API routes (providers list, chat/completions, backend-api/v2/conversation)
...
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/e0daf662-ee35-43ac-bdef-27dd570bc00d
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com >
2026-04-04 19:03:48 +00:00
hlohaus
71ed6243f9
feat: Implement JSON Schema sanitization for Gemini API compatibility and enhance OpenClaw setup script
2026-04-01 22:29:22 +02:00
haosenwang1018
4ac78c9ef5
fix: replace bare except clauses with except Exception
...
Bare `except:` catches BaseException including KeyboardInterrupt and
SystemExit. Replaced 34 instances with `except Exception:`.
2026-02-25 11:49:12 +00:00
hlohaus
7989874f26
Refactor Api class to remove unused base_url configuration and update proxy handling in iter_run_tools
2026-02-23 14:17:02 +01:00
hlohaus
f4dc651544
Refactor update_headers to use del for authorization header removal and enhance provider retrieval logic in Api class
2026-02-23 12:02:00 +01:00
hlohaus
eb9a552388
Refactor authorization header handling in update_headers to remove it when no new API key is provided
2026-02-23 10:58:28 +01:00
hlohaus
91f5c11565
Refactor format_exception to remove unused last_provider and improve provider retrieval logic
2026-02-23 10:44:01 +01:00
hlohaus
6aea573dc6
Refactor audio transcription endpoint to use path_provider for improved flexibility in provider selection
2026-02-23 05:54:44 +01:00
hlohaus
bfce42f0f4
Add ProviderUtils for enhanced provider retrieval and error handling in API
2026-02-23 04:42:07 +01:00
hlohaus
a9395404ff
feat: implement quota retrieval for providers and update related methods
2026-02-20 20:58:09 +01:00
hlohaus
54eb2bd41e
feat: integrate AppConfig for API key management and environment loading across providers
2026-02-19 20:30:59 +01:00
hlohaus
0943d16eef
fix: update stop_browser calls to be asynchronous across multiple provider files
2026-02-08 02:48:54 +01:00
hlohaus
a954617540
refactor: replace nodriver imports with zendriver across multiple provider files
2026-02-08 02:27:53 +01:00
hlohaus
4e1f988ee2
chore: Update GitHub Actions to use stable versions and adjust refresh interval in Gemini provider
2026-01-22 02:14:43 +01:00
hlohaus
a869844c46
Refactor update_headers function to accept new API key and adjust authorization handling
2026-01-12 15:22:59 +01:00
hlohaus
d571600dfa
Refactor API request handling; remove unused most_wanted and failure_counts logic for improved clarity and performance
2025-12-25 03:30:50 +01:00
hlohaus
b0813eb3f6
Refactor authentication cookie retrieval in HuggingChat; enhance header update logic in AppConfig and Backend_Api for improved flexibility
2025-12-23 23:18:49 +01:00
hlohaus
55e22ea02b
Remove unused cf_ipcountry header and simplify user identification logic; update default browser path for Linux systems in get_nodriver function
2025-12-23 20:52:45 +01:00
hlohaus
5276e2d6d0
Remove MCP usage guide and README files; update logging in API to use print for most wanted IPs; enhance WebSearchTool to support region parameter for search queries.
2025-11-01 20:34:47 +01:00
hlohaus
35e3fa95f3
Enhance Perplexity provider to yield additional response types including sources, media items, and suggested follow-ups; update response formatting in response classes for improved data handling.
2025-10-31 15:48:26 +01:00
hlohaus
23218c4aa3
Refactor Copilot and PollinationsAI classes for improved error handling and timeout adjustments; add rate limiting in API class based on user IP.
2025-10-31 14:17:41 +01:00
hlohaus
3b4ad875cc
Enhance G4F API key decryption by logging decrypted data and adding referrer validation
2025-10-31 10:53:28 +01:00
hlohaus
046e009e39
Enhance user validation in Api class by adjusting username criteria and ensuring proper formatting with country prefix
2025-10-31 06:24:20 +01:00
hlohaus
7ee118e20c
Refactor OpenaiTemplate and Api classes for improved error handling and user identification
2025-10-31 06:01:58 +01:00
hlohaus
da6c00e2a2
Refactor Cloudflare and LMArena providers to enhance authentication handling and improve WebSocket communication
2025-10-30 21:34:45 +01:00
H Lohaus
63315df501
Update __init__.py
2025-10-30 16:48:22 +01:00
H Lohaus
52781f3c4c
Update __init__.py
2025-10-30 16:47:29 +01:00
H Lohaus
7c8cf45631
Update __init__.py
2025-10-30 16:46:36 +01:00
hlohaus
d309e0df1d
Add cf_ipcountry header to Api class and enhance output_tokens handling in Usage class
2025-10-04 22:17:07 +02:00
hlohaus
391e1f463e
Enhance Azure provider error handling and update environment variables
2025-09-22 22:21:03 +02:00
hlohaus
4c1da4e610
Fix handling of stream_timeout
2025-09-08 05:21:44 +02:00
hlohaus
c7bb1538ea
Add BrowserConfig initialization in cookies.py and ensure directory creation in SharedTokenManager
2025-09-06 21:20:34 +02:00
hlohaus
76a1bb754c
Ensure BrowserConfig port is converted to integer when retrieved from environment variable
2025-09-06 20:36:15 +02:00
hlohaus
a4d0a10a4f
Update BrowserConfig port retrieval to handle non-integer values from environment variable
2025-09-06 20:32:23 +02:00
hlohaus
bca45481ea
Refactor SharedTokenManager to remove async from reloadCredentialsFromFile and update its invocation. Set default host in BrowserConfig to 127.0.0.1.
2025-09-06 20:22:15 +02:00
hlohaus
933fff985b
Enhance PuterJS provider to track live model instances and update BrowserConfig for automation tool settings
2025-09-06 16:28:17 +02:00
hlohaus
17b2526f69
Refactor G4F API key decryption to improve error handling and user validation
2025-09-05 04:03:21 +02:00
hlohaus
2832a98454
Refactor error handling in Api class to ensure consistent response for invalid providers
2025-09-05 03:12:13 +02:00
hlohaus
1ddf666da4
Fix owned_by retrieval in Api class to use provider directly
2025-09-05 02:50:19 +02:00
hlohaus
1d4c708726
Add models_needs_auth attribute to FenayAI class and fix owned_by retrieval in Api class
2025-09-05 02:46:09 +02:00
hlohaus
25b35ddf99
Refactor build scripts and API to enhance model handling and improve timeout functionality
2025-09-04 22:21:42 +02:00
hlohaus
1edd0fff17
Refactor model handling and improve timeout functionality
...
- Removed empty string mapping from model_map in AnyModelProviderMixin.
- Updated clean_name function to exclude 'chat' from version patterns.
- Added stream_timeout parameter to AsyncGeneratorProvider for more flexible timeout handling.
- Enhanced chunk yielding in AsyncAuthedProvider to support stream_timeout, allowing for better control over asynchronous responses.
2025-09-04 18:11:05 +02:00
hlohaus
e2f8437cc6
Refactor API key validation to improve error handling and user retrieval logic
2025-09-04 12:35:59 +02:00
hlohaus
f269ea1b4c
Fix user retrieval logic to raise an error if user is not set in API key validation
2025-09-04 12:13:03 +02:00
hlohaus
d6e0cfaae6
Fix user retrieval logic in API key validation to ensure user is set correctly
2025-09-04 12:12:26 +02:00
hlohaus
2dfa807cfb
Refactor provider type determination to use 'chat' for non-image models and update download URL configuration
2025-09-04 12:07:42 +02:00
hlohaus
01e7af68c0
Enhance error logging for invalid G4F API keys by capturing exception details
2025-09-04 11:15:03 +02:00
hlohaus
5ebe7763de
Improve logging for invalid G4F API keys
2025-09-04 07:18:39 +02:00
hlohaus
b400ceee3b
Log invalid requests
2025-09-04 06:38:27 +02:00
hlohaus
3fc69e0a99
Log invalid requests
2025-09-04 06:32:03 +02:00