Commit graph

14 commits

Author SHA1 Message Date
copilot-swe-agent[bot]
31f408ed87 Fix aarch64 compatibility issue with curl_cffi imports
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2025-08-21 08:17:04 +00:00
hlohaus
00bd517f27 feat: add image generation support to Azure provider
- Updated `Azure.create_completion` to support media uploads and image generation via `/images/` endpoint
- Added `media` parameter to `Azure.create_completion` and handled image-related request formatting
- Imported `StreamSession`, `FormData`, `raise_for_status`, `get_width_height`, `to_bytes`, `save_response_media`, and `format_media_prompt` in `Azure.py`
- Modified `get_models` to load `AZURE_API_KEYS` from environment and parse it into `cls.api_keys`
- Adjusted `get_width_height` in `image/__init__.py` to return higher default resolutions for "16:9" and "9:16" aspect ratios
- Modified `save_response_media` in `image/copy_images.py` to accept optional `content_type` parameter and use it when provided
- Updated `FormData` class logic in `requests/curl_cffi.py` to define it only when `has_curl_mime` is True and raise an error otherwise
2025-08-06 07:18:48 +02:00
hlohaus
e76e5f7835 Use dynamtic aspect_ratio for image and video size 2025-03-23 14:47:26 +01:00
hlohaus
8f6efd5366 Update docs: Using the OpenAI Library
Add sse function to requests sessions
Small improvments in OpenaiChat and ARTA provider
2025-03-22 07:32:30 +01:00
hlohaus
ba60296677 Fix unittest, update model lists 2025-02-22 13:19:52 +01:00
hlohaus
e53483d85b Improve tools support in OpenaiTemplate and GeminiPro
Update models in DDG, PerplexityLabs, Gemini
Fix issues with curl_cffi in new versions
2025-02-21 04:36:54 +01:00
hlohaus
9524c3f327 Add AsyncAuthedProvider in Copilot
Add orginal url to downloaded image
Support ssl argument in StreamSession
Report Provider and Errors in RetryProvider
Support ssl argument in OpenaiTemplate
Remove model duplication in OpenaiChat
Disable ChatGpt provider and remove it from models.py
Update slim requirements
Support provider names as model name in Image generation
Add model qwen-2.5-1m-demo to models.py
2025-01-28 20:33:50 +01:00
H Lohaus
335c971f6a
Add multiple images support (#2478)
* Add multiple images support

* Add multiple images support in gui

* Support multiple images in legacy client and in the api
Fix some model names in provider model list

* Fix unittests

* Add vision and providers docs
2024-12-13 22:20:58 +01:00
Heiner Lohaus
fdc8b88d17 Improve cli argparser, Improve curl_cffi websocket support 2024-04-20 20:06:35 +02:00
Heiner Lohaus
a2b5446b2e Fix DuckDuckGo Provider issues
Fix PerplexityLabs, FlowGpt Provider
Update Bing, Gemini Provider
2024-04-17 10:33:23 +02:00
H Lohaus
0b712c2bde
Add unittests for async client (#1830)
* Add unittests for async client

* Add pollyfill for anext

* Update integration tests
2024-04-12 18:01:54 +02:00
Heiner Lohaus
65bcc8ae8b Some small fixes 2024-04-10 14:23:30 +02:00
Heiner Lohaus
b7eee50930 Move raise_for_status, Create FormData wrapper 2024-03-15 14:55:53 +01:00
Heiner Lohaus
e5b7f72b71 Move some modules, create providers dir
Set min version for duckduckgo
Make duckduckgo search async
Remove get_lastet_version
2024-02-22 00:16:58 +01:00
Renamed from g4f/requests_curl_cffi.py (Browse further)