Commit Graph

61 Commits

Author SHA1 Message Date
H Lohaus
ffb4b0d162
Improve download of generated images, serve images in the api (#2391)
* Improve download of generated images, serve images in the api
Add support for conversation handling in the api

* Add orginal prompt to image response

* Add download images option in gui, fix loading model list in Airforce

* Add download images option in gui, fix loading model list in Airforce
2024-11-20 19:58:16 +01:00
Heiner Lohaus
5e9e56ed53 Fix missing provider_handler in client 2024-11-20 02:35:35 +01:00
Heiner Lohaus
8f3fbee0d8 Add show log option to gui 2024-11-19 15:26:03 +01:00
H Lohaus
6cccd6d9ac
Merge pull request #2367 from hlohaus/data-uri
Add full nodriver support to OpenaiChat
2024-11-18 05:13:15 +01:00
Heiner Lohaus
2a7770ea51 Add full nodriver support to OpenaiChat
Move small docker images before old images
2024-11-18 02:53:50 +01:00
kqlio67
8e2723938a Refactor Image Processing and Error Handling in g4f Client Module 2024-11-17 15:33:18 +02:00
H Lohaus
6ce493d4df
Fix api streaming, fix AsyncClient (#2357)
* Fix api streaming, fix AsyncClient, Improve Client class, Some providers fixes, Update models list, Fix some tests, Update model list in Airforce provid
er, Add OpenAi image generation url to api, Fix reload and debug in api arguments, Fix websearch in gui

* Fix Cloadflare and Pi and AmigoChat provider

* Fix conversation support in DDG provider, Add cloudflare bypass with nodriver

* Fix unittests without curl_cffi
2024-11-16 13:19:51 +01:00
kqlio67
17057742ac refactor(g4f/client/client.py): Simplify AsyncClient methods 2024-11-13 14:30:44 +02:00
kqlio67
21a26f6882 Update (docs/ README.md g4f/client/client.py) 2024-11-12 08:44:48 +02:00
kqlio67
b5c432f73e Update (g4f/client/) 2024-11-08 12:03:33 +02:00
kqlio67
e6627d8d30 The prefix function has been removed 2024-10-30 16:25:55 +02:00
kqlio67
b11cf3ab4b feat(g4f/client/client.py): integrate ModelUtils for model retrieval 2024-10-30 14:09:16 +02:00
kqlio67
8adaf33202 feat(g4f/client/async_client.py): refactor for async client implementation 2024-10-30 12:35:55 +02:00
Tekky
1c8061af55
Merge pull request #2304 from kqlio67/main
Add new provider, enhance functionality, and update docs
2024-10-30 09:54:54 +01:00
Tekky
b1d5af85ae re-includeAsyncClient for backwards compatibility, with deprecationwarning. Use Client instead 2024-10-30 09:47:48 +01:00
kqlio67
e79c8b01f5 Update (docs/async_client.md docs/client.md docs/interference-api.md g4f/client/client.py) 2024-10-29 22:03:05 +02:00
kqlio67
f55f867a01 feat(g4f/client/client.py): add system prompt support 2024-10-25 19:43:55 +03:00
kqlio67
0d868f64aa feat(g4f/client/async_client.py, g4f/client/async_client.py): enhance async and sync handling in client 2024-10-15 12:22:52 +03:00
kqlio67
29f4fcb4b0 feat(g4f/client/async_client.py): improve async generator handling and logging 2024-10-03 00:22:43 +03:00
kqlio67
9a16296416 feat(g4f/client/async_client.py): enhance image generation and logging 2024-09-26 21:38:04 +03:00
kqlio67
85c95be22d Restored old version(g4f/client/async_client.py) 2024-09-25 21:31:27 +03:00
kqlio67
b3ddad4a08 feat(g4f/client/async_client.py): enhance image and chat response handling 2024-09-25 20:44:55 +03:00
kqlio67
24d4ea055a refactor(image-models): replace providers with ModelUtils 2024-09-06 01:34:12 +03:00
kqlio67
44ba42f58b feat(images): add async support and logging, enhance image handling 2024-09-06 01:33:45 +03:00
Heiner Lohaus
b7624b75a3 Add streaming and conversation support to gemini 2024-05-21 20:39:31 +02:00
H Lohaus
5115cf0e23
Merge pull request #1984 from hlohaus/leech
Add some options to messages in gui, saves generated images local
2024-05-20 01:50:03 +02:00
Heiner Lohaus
80b2e9b807 Add some options to messages in gui, saves generated images local 2024-05-20 01:28:08 +02:00
H Lohaus
fea056dd49
Update client.py 2024-05-19 17:49:06 +02:00
H Lohaus
370ac53943
Update async_client.py 2024-05-19 17:45:57 +02:00
Heiner Lohaus
b1dafc0ef7 Improve Liabots provider, Add image api support 2024-05-18 07:37:37 +02:00
碧舞すみほ
1d66c57a65
Improve compatibility of openai-node (#1966)
* improve compatibility of openai-node

* improve compatibility with OpenAI's models api

* allow image upload
2024-05-17 18:43:17 +02:00
Heiner Lohaus
59fcf9d2d3 Update chatgpt url, uvloop support 2024-05-15 02:27:51 +02:00
Heiner Lohaus
932d3a3ca0 Add MetaAI Provider and some small improvments 2024-04-20 10:43:53 +02:00
mm3b
02b51a94c9
Add missed comma 2024-04-14 06:27:37 +04:00
abc
ed8afc20e8 add more models
mixtral 8x22b
2024-04-13 02:46:20 +01:00
abc
a107d3f2ff update default gpt-3.5-turbo models
by default, only OpenAI was enabled, more models enable for more flexibility.

new provider `Koala` added, to watch out as it could be unstable.
2024-04-12 17:06:54 +01: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
bdc61ca273 Add nodriver to OpenaiChat 2024-04-07 16:02:49 +02:00
Heiner Lohaus
b35dfcd1b0 Add local models to gui, Fix You Provider, add AsyncClient 2024-04-07 10:36:13 +02:00
H Lohaus
8229b62ce3
Update async.py 2024-04-06 23:07:40 +02:00
H Lohaus
1b571592ce
Update image_models.py 2024-04-06 21:27:21 +02:00
H Lohaus
55869da442
Update async.py 2024-04-06 21:25:11 +02:00
H Lohaus
3f17f9b8e2
Create image_models.py 2024-04-06 21:24:48 +02:00
H Lohaus
2b9a95c5b3
Update async.py 2024-04-06 21:23:49 +02:00
H Lohaus
2beade3c24
Update async.py 2024-04-06 21:17:50 +02:00
H Lohaus
c9a83e53b7
Update types.py 2024-04-06 21:15:07 +02:00
H Lohaus
393be6be6b
Update async.py 2024-04-06 21:12:02 +02:00
H Lohaus
ecc4748882
Update helper.py 2024-04-06 21:05:04 +02:00
H Lohaus
6e3f350f52
Update async.py 2024-04-06 21:01:27 +02:00
H Lohaus
b4399866ee
Update types.py 2024-04-06 20:41:30 +02:00