Commit graph

4253 commits

Author SHA1 Message Date
hlohaus
97f99539b1 Update Claude provider to use new base URL and enhance cookie handling 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
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 …
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
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
copilot-swe-agent[bot]
00b2b70a94
Add --safe mode to MCP server: lock module allowlist and block workspace root listing
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/d29e72a3-7dc7-4d2d-897d-3dfb79ba6382

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-04-04 17:24:20 +00:00
copilot-swe-agent[bot]
0501738d76
Address code review: improve type hints, security docs, FileListTool skipped count, dynamic _TOOL_COUNT
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/1b3f481e-143f-4c30-9982-1063c0338ec3

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-04-04 16:22:19 +00:00
copilot-swe-agent[bot]
a5b4675d66
Add .pa.py safe executor, workspace file tools, and MCP server integration
Agent-Logs-Url: https://github.com/xtekky/gpt4free/sessions/1b3f481e-143f-4c30-9982-1063c0338ec3

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-04-04 16:19:37 +00:00
copilot-swe-agent[bot]
9d4cbff3ee
Initial plan 2026-04-04 16:12:26 +00:00
hlohaus
fccf7ce5f8 Update quota URL in PollinationsAI and OpenaiTemplate classes 2026-04-04 16:14:02 +02:00
H Lohaus
02f0adf736
Delete package-lock.json 2026-04-04 14:59:02 +02:00
H Lohaus
e70097b642
Delete index.js 2026-04-04 14:58:55 +02:00
H Lohaus
5123b4d57e
Delete constants.js 2026-04-04 14:58:39 +02:00
H Lohaus
60b591b338
Delete README.md 2026-04-04 14:58:32 +02:00
H Lohaus
534efb8d64
Delete package.json 2026-04-04 14:58:26 +02:00
H Lohaus
df3b2e1f69
Delete utils.js 2026-04-04 14:58:19 +02:00
H Lohaus
91324261b0
Delete webpack.config.js 2026-04-04 14:58:12 +02:00
H Lohaus
eb7c88bbf6
Delete worker.js 2026-04-04 14:58:03 +02:00
H Lohaus
ec20d1fbd0
Delete setup.sh 2026-04-04 14:57:43 +02:00