Commit Graph

77 Commits

Author SHA1 Message Date
Heiner Lohaus
fb831bcc26 Add image upload to api 2024-11-25 13:53:05 +01:00
Heiner Lohaus
6e99f70191 Fix optional fields in api 2024-11-25 08:53:57 +01:00
Heiner Lohaus
8153668ab8 Fix import Annotated typing 2024-11-25 01:24:03 +01:00
Heiner Lohaus
c57321e287 Improve error handling in api, Update openapi.json workflow 2024-11-24 23:34:59 +01:00
Heiner Lohaus
2114520ed2 Improve slim docker build, Add openapi.json to release 2024-11-24 22:20:08 +01:00
H Lohaus
804a80bc7c
Arm2 (#2414)
* Fix arm v7 build / improve api

* Update stubs.py

* Fix unit tests
2024-11-24 17:43:45 +01:00
Heiner Lohaus
7f5e20bd1c Fix build arm v7 2024-11-24 15:23:03 +01:00
H Lohaus
f36e6a2e3b
Fix provider api response (#2408)
* Update __init__.py

* Update __init__.py

* Update Gemini.py

* Update Gemini.py

* Update Gemini.py

* Update Gemini.py

* Update internet.py
2024-11-24 13:30:10 +01:00
H Lohaus
538c0bb2c4
Update __init__.py 2024-11-23 10:02:30 +01:00
H Lohaus
431db7b8ea
Update api / add a synthesize and upload_cookies endpoint (#2406)
* Add web_search function to OpenaiChat provider
* GithubCopilot provider added, it need a api_key
* Remove nodriver login in Gemini synthesize

* Update api / add a synthesize and upload_cookies endpoint
2024-11-23 00:17:35 +01:00
H Lohaus
e8bd24a25b
Add speech synthesize from Gemini (#2404)
* Improve slim docker image example, clean up OpenaiChat provider

* Enhance event loop management for asynchronous generators

* Fix attribute " shutdown_default_executor" not found in old python versions

* asyncio file created with all async helpers

* Add speech synthesize from Gemini. You can use it without a account
2024-11-22 01:50:48 +01:00
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
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
Tekky
f65ebd9851
Merge pull request #2313 from kqlio67/main
Major Provider Updates and Documentation Restructuring
2024-11-15 11:18:56 +01:00
foxfire52
f38428ab23
Improve logging implementation (#2347) 2024-11-15 07:38:51 +01:00
kqlio67
b2b978c9de feat(g4f/api/__init__.py): Update image generation response format 2024-11-09 19:40:49 +02:00
kqlio67
0d05825a71 feat(api): support async streaming in chat completions 2024-10-31 00:34:49 +02:00
kqlio67
a0087269b3 feat(g4f/api/__init__.py): support both ':' and '-' in model prefixes 2024-10-30 18:25:40 +02:00
kqlio67
0a3565f215 refactor(g4f/api/__init__.py): refactor API structure and improve async handling 2024-10-25 19:39:12 +03:00
Tekky
6a1f88e7b7
Merge pull request #2281 from foxfire52/main
Add support for CORS preflight OPTIONS requests (#2006)
2024-10-22 23:28:04 +02:00
foxfire52
8a8a9597ed
Add support for CORS preflight OPTION requests (#2006) 2024-10-17 11:44:01 +02:00
kqlio67
c6d11e5cef refactor(g4f/api/__init__.py): use asynchronous methods in Client 2024-10-15 15:07:06 +03:00
42
b0fba66b7c
fix: --ignored-providers option not working due to variable name mismatch 2024-09-27 01:27:57 +08: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
H Lohaus
c343d66ac6
Update __init__.py 2024-05-06 16:56:46 +02:00
H Lohaus
e41bbdce02
Update __init__.py 2024-05-06 16:42:56 +02:00
H Lohaus
743fbc2a6c
Update __init__.py 2024-05-06 08:16:49 +02:00
Heiner Lohaus
8fcf618bbe Add Ollama provider, Add vision support to Openai 2024-05-05 23:38:31 +02:00
Heiner Lohaus
ff8c1fc140 Add AppConfig class, update readme 2024-04-29 20:21:47 +02:00
Heiner Lohaus
26d5fcd216 Fix workers argument in api 2024-04-29 16:56:56 +02:00
kafm
127352de2a clean code 2024-04-28 19:16:29 +08:00
kafm
112ca6380b add authorization for g4f API 2024-04-28 17:02:44 +08:00
Heiner Lohaus
3a23e81de9 Add Replicate Provider
Fix Bug in OpenaiChat and MetaAI
Add read cookie and .har files
Use factory for api app
2024-04-21 22:39:00 +02:00
Heiner Lohaus
db00480153 Disable Bing integration test 2024-04-20 20:11:09 +02:00
Heiner Lohaus
83484c0a56 Add workers and use_colors options to api 2024-04-20 15:41:49 +02:00
Heiner Lohaus
7e543f4747 Add Ecosia Provider, Add OpenaiAccount alias
Use AsyncClient in API, add web_search parameter in API
Improve error messages in Openai
2024-04-18 20:18:51 +02:00
H Lohaus
00951eb791
Add OpenRouter and DeepInfraImage Provider (#1814) 2024-04-10 08:14:50 +02:00
Heiner Lohaus
b35dfcd1b0 Add local models to gui, Fix You Provider, add AsyncClient 2024-04-07 10:36:13 +02:00
Ramon Victor Cardoso
d8e715a30b
Fix TypeError: 'Api' object is not callable 2024-03-07 22:59:43 -03:00
Heiner Lohaus
3b96c27e3c Ignore empty auth header in api
Add live token count in gui
2024-02-29 14:44:51 +01:00
Heiner Lohaus
55caf8e7de Add FlowGpt provider, Fix issue with None values in api 2024-02-24 14:52:23 +01:00
Heiner Lohaus
6b3be02d63 Set default values for generation config
Set  a list of providers
2024-02-23 19:30:53 +01:00
Heiner Lohaus
51264fe20c Add GeminiPro API provider
Set min version for undetected-chromedriver
Add api_key to the new client
2024-02-23 11:33:38 +01:00
Heiner Lohaus
d733930a2b Fix unittests, use Union typing 2024-02-23 02:51:10 +01:00
Heiner Lohaus
74397096b7 Use new client in inter api 2024-02-23 02:35:13 +01:00
nullstreak
12f7a89517 Basic support for the temperature parameter 2024-02-14 03:27:16 +01:00
Heiner Lohaus
c617b18d12 Add support for all models
Add AbstractProvider class
Add ProviderType type
Add get_last_provider function
Add version module and  VersionUtils
Display used provider in gui
Fix error response in api
2024-01-01 17:48:57 +01:00
Heiner Lohaus
3a81f9a2af Fix api and None provider 2023-12-23 20:50:56 +01:00
alvarosoares01@gmail.com
0ea720c1db Add providers in api 2023-12-13 23:16:35 -03:00