Commit graph

4066 commits

Author SHA1 Message Date
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
copilot-swe-agent[bot]
2c27fc2b1d Initial plan 2026-01-28 13:11:12 +00:00
H Lohaus
fb1857240e
Merge pull request #3339 from xtekky/3.14
fix: Update Python version in CI workflow from 3.12 to 3.14
2026-01-28 14:09:40 +01:00
hlohaus
e1b7471f9f fix: Update references from 'nest_asyncio' to 'nest-asyncio2' across the codebase 2026-01-27 11:29:43 +01:00
hlohaus
f03c08d66f fix: Update Python version in CI workflow from 3.12 to 3.14 2026-01-27 11:20:56 +01:00
H Lohaus
20f0ef8575
Merge pull request #3337 from GamerReady/main
Refactor reward handling, add feedback recording, deleting yupp chats…
2026-01-27 10:39:14 +01:00
GamerReady
7f78c93f37
Only delete chats when "conversation" is not present on kwargs 2026-01-26 03:41:53 -04:00
GamerReady
f3a36e87a8
Refactor reward handling, add feedback recording, deleting yupp chats after response. 2026-01-25 23:56:20 -04:00
hlohaus
a0e20efaa5 feat: Add synthesize endpoint for text-to-speech in MCPServer 2026-01-24 09:35:26 +01:00
hlohaus
000516c357 fix: Update API key validation logic and enhance chunk handling in Backend_Api 2026-01-24 09:17:06 +01:00
hlohaus
8e52133e7f fix: Add media file handling to MCPServer with caching and conditional requests 2026-01-24 09:10:38 +01:00
hlohaus
b324f4070d fix: Load API key in PollinationsAI and Yupp providers if not provided 2026-01-24 08:40:58 +01:00
hlohaus
136cb3159d fix: Remove unused response_format parameter in ImageGenerationTool 2026-01-24 07:58:29 +01:00
hlohaus
ac1221aa76 fix: Import read_cookie_files to enable cookie handling in MCPServer 2026-01-24 07:41:32 +01:00
hlohaus
89b6505d0e fix: Add cloudscraper to requirements and setup for improved scraping capabilities 2026-01-24 07:32:20 +01:00
hlohaus
f7cb4e69f6 fix: Update API endpoints to use new g4f.space URLs and remove deprecated providers 2026-01-24 03:28:00 +01:00
hlohaus
233fb6fc43 fix: Update API endpoints and improve authentication handling in PollinationsAI provider 2026-01-22 23:55:07 +01:00
hlohaus
12a86fae83 fix: Remove unused BaseRetryProvider import and update provider_info handling in iter_response functions 2026-01-22 08:23:22 +01:00
hlohaus
fc8ee7209d fix: Adjust CloudScraper import and update get_models method signature in LMArena provider 2026-01-22 06:07:24 +01:00
hlohaus
fdebe0868c fix: Update cache logic and authorization header condition in PollinationsAI provider 2026-01-22 03:24:08 +01:00
hlohaus
65f4b7240a fix: Correct string formatting for authorization header in PollinationsAI provider 2026-01-22 02:17:42 +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
H Lohaus
af8e5dbc8f
Merge pull request #3331 from xtekky/copilot/log-get-requests-in-api
Expose uvicorn access_log parameter in g4f API CLI
2026-01-21 16:55:24 +01:00
H Lohaus
4322338a93
Merge pull request #3333 from pgoslatara/actup/update-actions-1768992955
chore: Update outdated GitHub Actions versions
2026-01-21 16:54:18 +01:00
hlohaus
0049b8ef11 Remove backup URLs from multiple provider classes to streamline code 2026-01-21 16:43:13 +01:00
Padraic Slattery
dff826813f chore: Update outdated GitHub Actions versions 2026-01-21 11:55:55 +01:00
copilot-swe-agent[bot]
7b57655848 Add --access-log and --no-access-log CLI parameters for access logging control
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-01-20 17:24:42 +00:00
copilot-swe-agent[bot]
7a1f0fda2c Initial plan 2026-01-20 17:09:13 +00:00
Moises Tohias
76d8dc20e5
Fix Qwen provider implementation (#3322)
* Fix Qwen provider implementation

- Re-enable cookie generation for authentication
- Update User-Agent header to latest version
- Fix Authorization header to only be added when token is present
- Add X-Requested-With and X-Source headers for proper API communication
- Force stream and incremental_output to True for consistent streaming behavior
- Set parent_id to None to prevent parent-child relationship issues
- Add conditional thinking functionality with proper feature_config when enable_thinking is True
- Improve header management for better compatibility with Qwen API

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* Restore parent_id in Qwen provider for conversation support

---------

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-01-12 20:53:45 +01:00
hlohaus
10a24f5de9 Remove debug print statements from Yupp class to clean up output 2026-01-12 18:24:01 +01:00
hlohaus
6b6e03aa4a Enhance Yupp API client and model manager to support custom session handling; add models_needs_auth attribute to AIBadgr class 2026-01-12 17:51:49 +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
6d2160b2bc Fix session token handling in render function to correctly append query string to latest version 2026-01-12 12:20:05 +01:00
H Lohaus
3deb2fb986
Merge pull request #3320 from xtekky/copilot/fix-web-interface-responsiveness
Fix file descriptor leak causing web interface hang after ~10 reloads
2026-01-12 00:11:32 +01:00
copilot-swe-agent[bot]
02e0bf0270 Fix file descriptor leak in GUI render function
- Use context manager (with statement) to ensure file is properly closed
- Prevents file descriptor exhaustion after ~10 page reloads
- Fixes issue where web interface becomes unresponsive in Docker environments

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-01-11 23:02:19 +00:00
copilot-swe-agent[bot]
99e8f0280a Initial plan 2026-01-11 22:59:00 +00:00
hlohaus
bb1f8ca5dc Refactor Yupp provider to remove unused create_scraper import; update website rendering logic to improve static URL handling 2026-01-11 09:19:30 +01:00
hlohaus
63363c22f4 Enhance Yupp provider by importing cloudscraper and updating error handling for missing requirements; refactor OpenaiTemplate to use Usage.from_dict for improved data handling 2026-01-10 22:09:37 +01:00
hlohaus
8b24349968 Import create_scraper from cloudscraper to enhance scraper functionality 2026-01-10 21:50:11 +01:00
hlohaus
8b43b3cd4a Refactor Yupp provider to remove direct dependency on cloudscraper and streamline scraper usage 2026-01-10 21:46:05 +01:00
hlohaus
53a7d8a44c Refactor Yupp provider to use CloudScraper directly in function signatures 2026-01-10 21:40:19 +01:00
hlohaus
38cf247f3b Update Yupp provider to yield VariantResponse instead of PreviewResponse 2026-01-10 21:02:04 +01:00
hlohaus
ab7b7f8b3a Fix API key validation to use underscores instead of dashes in OpenaiTemplate 2026-01-10 20:40:59 +01:00
H Lohaus
6759128b48
Yupp (#3319)
* Yupp provider fix, vercel firewall bypass.

Refactor Yupp provider to use cloudscraper and ThreadPoolExecutor for improved performance and error handling. Update account management and request methods to streamline interactions with the Yupp API. bypassed yupp firewall for perfect performance and avoiding using unstable methods.

* Check for cloudscraper availability and update Yupp provider status accordingly

---------

Co-authored-by: GamerReady <135560754+GamerReady@users.noreply.github.com>
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-01-10 20:36:20 +01:00
hlohaus
053edba23f Refactor Api class: streamline provider label retrieval and update response handling in streaming 2026-01-10 19:47:30 +01:00
hlohaus
470e52f002 Refactor GeminiPro: update default_model path and consolidate model_aliases 2026-01-10 07:10:35 +01:00
hlohaus
b42ac28ae1 Update PollinationsAI to support additional API key prefix for image and text endpoints 2026-01-10 07:05:12 +01:00
hlohaus
798a951b9b Refactor providers to use OpenaiTemplate and add backup URLs; enhance response handling in API 2026-01-10 06:35:41 +01:00
hlohaus
f612fd9653 Enhance AnyModelProviderMixin to support Perplexity and improve model mapping
- Added Perplexity to the list of providers handled in model mapping.
- Simplified model mapping logic for Copilot and CopilotAccount.
- Updated handling of fallback models for Perplexity.
- Improved clean_name function to standardize model names, including new replacements for gpt-5 and Claude models.
- Adjusted model grouping logic to include additional prefixes for Mistral models.
2026-01-09 22:38:19 +01:00
hlohaus
d94b9bf810 Update cache handling in PollinationsAI and OpenaiTemplate: modify cache logic and include cache header in Usage model 2026-01-09 18:37:01 +01:00