4267 Commits

Author SHA1 Message Date
H Lohaus 2e7a021097 Update __main__.py 2026-04-21 22:42:29 +02:00
H Lohaus 0393f1053f Merge pull request #3428 from vyguera/fix/openai-chat-gizmo-conversation-mode
fix(OpenaiChat): use gizmo_interaction conversation_mode for custom GPTs
2026-04-21 22:41:41 +02:00
H Lohaus 06c1069cc1 Merge pull request #3429 from 3mora2/fix_qwen
Fix get_models ,Update Qwen provider models and thinking mode
2026-04-21 22:40:43 +02:00
Ammar ccb5c070f4 Update Qwen provider models and thinking mode
Refresh static model lists and improve dynamic model discovery/parsing. get_models now accepts an optional token, sends headers, and uses safe dict access (model.get(...)) to build text/image/vision/models lists and set default_model. Adjust generation logic so thinking_mode defaults to "Auto" when reasoning is enabled (otherwise "Fast"), introduce an auto_thinking variable, and propagate token headers into the StreamSession.
2026-04-21 10:32:44 +02:00
ruben.viguera 2adec1bd1d fix(OpenaiChat): use gizmo_interaction conversation_mode for custom GPTs
When gizmo_id is passed, conversation_mode was hardcoded to primary_assistant
in both request payload data dicts, causing the custom GPT's system instructions
to be ignored and the base model to respond instead.

Fixes #3427
2026-04-20 09:54:54 +02:00
H Lohaus 01177797e3 Update README.md v7.5.0 2026-04-17 22:20:15 +02:00
hlohaus cc0ad7a9f8 Refactor provider method handling for improved clarity and consistency; update mocks and add SKILL.md for usage guidance 2026-04-17 14:07:49 +02:00
hlohaus 06df47f279 Refactor provider methods to unify async and sync handling, enhance clarity, and improve error management 2026-04-16 02:38:03 +02:00
H Lohaus 65ee4cb088 Merge pull request #3420 from 3mora2/enhance-Qwen
Add thinking_mode and feature_config handling
2026-04-15 19:08:13 +02:00
hlohaus 3b9fb6f5fe Fix parameter assignment in create_func for clarity v7.4.7 2026-04-07 17:12:20 +02:00
hlohaus 38bdcca86a Fix provider name assignment in Backend_Api for clarity v7.4.6 2026-04-07 17:05:56 +02:00
hlohaus dfbdf56ec4 Refactor provider initialization in Backend_Api to enhance clarity v7.4.5 2026-04-07 17:02:09 +02:00
hlohaus 86eab3b91c Refactor media rendering to yield messages only if content parts exist 2026-04-07 16:28:14 +02:00
hlohaus 97f99539b1 Update Claude provider to use new base URL and enhance cookie handling v7.4.4 2026-04-07 16:08:23 +02:00
hlohaus 6aeb41f803 Remove redundant try block in main function for client mode execution 2026-04-07 12:42:19 +02:00
H Lohaus a6a26faf47 Merge pull request #3419 from xtekky/copilot/update-finish-reason-tool-call
Fix finish_reason to return "tool_calls" when tool calls are present
2026-04-06 14:22:26 +02:00
Ammar 327b698d0b Add thinking_mode and feature_config handling
Introduce a thinking_mode option and build a conditional feature_config payload for Qwen requests: when reasoning is enabled the config includes auto_thinking, thinking_mode, thinking_enabled, output_schema, research_mode and auto_search; otherwise it provides a minimal config with thinking_budget. Also include minor cleanup and formatting/PEP8 fixes (spacing around defaults, blank-line adjustments, and reflowed long request lines) to improve readability.
2026-04-06 13:10:51 +02:00
copilot-swe-agent[bot] 90fb39a47a Fix finish_reason to return tool_calls when tool calls are present
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/c0d4d1fc-0e31-4a63-8aa1-79132a731019

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-04-06 08:43:11 +00:00
copilot-swe-agent[bot] e03f0b7e8f Initial plan 2026-04-06 08:40:34 +00:00
hlohaus 9f9d18cc4d Add debug mode to CLI and improve argument parsing error handling 2026-04-06 06:10:08 +02:00
hlohaus 889e09770b Enhance security in pa_provider by implementing import restrictions for sensitive submodules; remove unused AuthManager import in base_provider 2026-04-06 05:02:23 +02:00
hlohaus cd8c096f68 Fix chunk handling in Backend_Api to ensure content is properly yielded as a string 2026-04-06 03:06:46 +02:00
H Lohaus 1325c4d9f9 Merge pull request #3418 from xtekky/copilot/add-pa-py-file-parser-executor
Refactor PA backend conversation endpoint for improved streaming and …
v7.4.3
2026-04-06 00:39:51 +02:00
hlohaus 05a9ac45f4 Refactor PA backend conversation endpoint for improved streaming and error handling; adjust session key generation to use 1024 bits for user input compatibility 2026-04-06 00:36:32 +02:00
H Lohaus 640c45ba0b Merge pull request #3415 from xtekky/copilot/add-pa-py-file-parser-executor
Add .pa.py safe provider executor, workspace file MCP tools, --safe server mode, sandbox security hardening, /pa/* API routes, and secure workspace file serving with origin isolation
v7.4.2 v7.4.1 v7.4.0
2026-04-05 23:37:44 +02:00
hlohaus b09317fe47 Add PA file handling and secure serving in MCPServer; update FileWriteTool to include file URL 2026-04-05 23:36:52 +02:00
hlohaus 758df77264 Refactor MCPServer response structure and update FileListTool workspace handling for safe mode 2026-04-05 21:30:47 +02:00
hlohaus e4fcd38d3c Add default active state to OperaAria and enhance quota tracking in Ollama 2026-04-05 19:52:04 +02:00
H Lohaus 80477446ff Merge pull request #3417 from xtekky/copilot/fix-thumbnail-creation-error
Fix RGBA image thumbnail creation failing with JPEG format
2026-04-05 19:47:26 +02:00
hlohaus 82114693b4 Remove unused login URL from Azure class 2026-04-05 18:42:47 +02:00
hlohaus d496433e8d Add quota URL to GeminiPro class for API usage tracking 2026-04-05 18:30:55 +02:00
hlohaus 270da33792 Add Azure quota URL, enhance API model retrieval, and improve error handling for invalid API keys 2026-04-05 13:56:21 +02:00
H Lohaus 349bba9c90 Update README.md 2026-04-05 12:45:16 +02:00
H Lohaus 8211978a7f Update README.md 2026-04-05 12:38:34 +02:00
copilot-swe-agent[bot] c406ed38a1 fix: convert RGBA images to RGB before saving as JPEG thumbnail
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/0f9b1c1f-a0a4-49a5-9793-b30940de945f

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-04-04 23:36:30 +00:00
copilot-swe-agent[bot] 2f00d7ce12 Initial plan 2026-04-04 23:35:35 +00:00
H Lohaus 35b8e96378 Update config.py 2026-04-05 01:07:34 +02:00
H Lohaus 644225096b Update config.py 2026-04-05 01:04:07 +02:00
H Lohaus 5e0814b588 Update PollinationsAI.py 2026-04-04 21:54:59 +02:00
H Lohaus 215fbc90a5 Update README.md 2026-04-04 21:41:09 +02:00
copilot-swe-agent[bot] f79edb397d Use request.url.netloc (ASGI scope) instead of Host header for CSP origin
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/d964c73c-85bc-432d-b14b-20f8ea2de94e

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-04-04 19:39:58 +00:00
copilot-swe-agent[bot] dafc1d9341 Serve /pa/files HTML with CSP sandbox+request origin for true localStorage isolation
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/d964c73c-85bc-432d-b14b-20f8ea2de94e

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-04-04 19:38:12 +00:00
copilot-swe-agent[bot] 5266787038 Restrict fullscreen=() in Permissions-Policy to match restrictive approach for all APIs
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/bf9b023a-6921-41be-b964-7b245db2fb4f

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-04-04 19:31:37 +00:00
copilot-swe-agent[bot] 63e6ddfd7e Tighten CSP (connect-src/object-src none), add Permissions-Policy, document localStorage same-origin behavior
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/bf9b023a-6921-41be-b964-7b245db2fb4f

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-04-04 19:30:03 +00:00
copilot-swe-agent[bot] 4e55c65474 Address review: rename _get_safe_types, clarify .py/.env whitelist exclusion tests
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/b7cbc71b-2455-4cd2-be09-f5516e4a08ee

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-04-04 19:16:38 +00:00
copilot-swe-agent[bot] 6ff49cb2c1 Add /pa/files/* workspace file serving route (HTML/CSS/JS/images), fix orphaned responses dict syntax bug
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/b7cbc71b-2455-4cd2-be09-f5516e4a08ee

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-04-04 19:14:53 +00:00
copilot-swe-agent[bot] 28fb1c0b22 Address review: document PaProviderRegistry TTL, extract auth path check into helper
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:05:42 +00:00
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
copilot-swe-agent[bot] d2f2af886c Address review: add input validation for timeout/max_depth, clarify test comment
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/41556926-6205-4207-b36b-e10e22a8b87e

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-04-04 17:46:18 +00:00
copilot-swe-agent[bot] 5616349135 Harden sandbox security: execution timeout, max recursion depth, output size cap
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/41556926-6205-4207-b36b-e10e22a8b87e

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-04-04 17:43:33 +00:00