summaryrefslogtreecommitdiffstats
path: root/g4f/api/__init__.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update __init__.py0.3.6.3H Lohaus33 hours1-33/+1
|
* Update api / add a synthesize and upload_cookies endpoint (#2406)0.3.6.2H Lohaus43 hours1-18/+85
| | | | | | | * 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
* Add speech synthesize from Gemini (#2404)0.3.6.10.3.6.0H Lohaus3 days1-1/+38
| | | | | | | | | | | * 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
* Improve download of generated images, serve images in the api (#2391)0.3.5.4H Lohaus4 days1-5/+52
| | | | | | | | | | * 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
* Fix api streaming, fix AsyncClient (#2357)0.3.4.0H Lohaus8 days1-41/+51
| | | | | | | | | | * 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
* Merge pull request #2313 from kqlio67/mainTekky9 days1-2/+6
|\ | | | | Major Provider Updates and Documentation Restructuring
| * feat(g4f/api/__init__.py): Update image generation response formatkqlio672024-11-091-1/+1
| |
| * feat(api): support async streaming in chat completionskqlio672024-10-301-15/+5
| |
| * feat(g4f/api/__init__.py): support both ':' and '-' in model prefixeskqlio672024-10-301-0/+14
| |
* | Improve logging implementation (#2347)foxfire529 days1-3/+5
|/
* refactor(g4f/api/__init__.py): refactor API structure and improve async handlingkqlio672024-10-251-64/+83
|
* Merge pull request #2281 from foxfire52/mainTekky2024-10-221-0/+8
|\ | | | | Add support for CORS preflight OPTIONS requests (#2006)
| * Add support for CORS preflight OPTION requests (#2006)foxfire522024-10-171-1/+9
| |
* | refactor(g4f/api/__init__.py): use asynchronous methods in Clientkqlio672024-10-151-7/+9
|/
* fix: --ignored-providers option not working due to variable name mismatch422024-09-261-2/+2
|
* Improve Liabots provider, Add image api supportHeiner Lohaus2024-05-181-21/+45
|
* Improve compatibility of openai-node (#1966)碧舞すみほ2024-05-171-1/+4
| | | | | | | * improve compatibility of openai-node * improve compatibility with OpenAI's models api * allow image upload
* Update __init__.pyH Lohaus2024-05-061-1/+1
|
* Update __init__.pyH Lohaus2024-05-061-1/+6
|
* Update __init__.py0.3.0.10H Lohaus2024-05-061-10/+3
|
* Add Ollama provider, Add vision support to OpenaiHeiner Lohaus2024-05-051-1/+1
|
* Add AppConfig class, update readmeHeiner Lohaus2024-04-291-19/+27
|
* Fix workers argument in apiHeiner Lohaus2024-04-291-24/+33
|
* clean codekafm2024-04-281-13/+5
|
* add authorization for g4f APIkafm2024-04-281-5/+41
|
* Add Replicate ProviderHeiner Lohaus2024-04-211-20/+26
| | | | | | Fix Bug in OpenaiChat and MetaAI Add read cookie and .har files Use factory for api app
* Disable Bing integration testHeiner Lohaus2024-04-201-1/+1
|
* Add workers and use_colors options to apiHeiner Lohaus2024-04-201-34/+39
|
* Add Ecosia Provider, Add OpenaiAccount aliasHeiner Lohaus2024-04-181-15/+14
| | | | | Use AsyncClient in API, add web_search parameter in API Improve error messages in Openai
* Add OpenRouter and DeepInfraImage Provider (#1814)0.2.9.2H Lohaus2024-04-101-1/+1
|
* Add local models to gui, Fix You Provider, add AsyncClientHeiner Lohaus2024-04-071-3/+25
|
* Fix TypeError: 'Api' object is not callableRamon Victor Cardoso2024-03-081-3/+3
|
* Ignore empty auth header in apiHeiner Lohaus2024-02-291-1/+3
| | | | Add live token count in gui
* Add FlowGpt provider, Fix issue with None values in apiHeiner Lohaus2024-02-241-3/+2
|
* Set default values for generation configHeiner Lohaus2024-02-231-5/+5
| | | | Set a list of providers
* Add GeminiPro API providerHeiner Lohaus2024-02-231-4/+9
| | | | | Set min version for undetected-chromedriver Add api_key to the new client
* Fix unittests, use Union typingHeiner Lohaus2024-02-231-5/+5
|
* Use new client in inter apiHeiner Lohaus2024-02-231-136/+63
|
* Basic support for the temperature parameternullstreak2024-02-141-0/+2
|
* Add support for all modelsHeiner Lohaus2024-01-011-19/+31
| | | | | | | | | 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
* Fix api and None providerHeiner Lohaus2023-12-231-20/+12
|
* Add providers in apialvarosoares01@gmail.com2023-12-141-0/+6
|
* Added new provider PI (Hacky way to use) (#1291)madonchik1232023-12-011-9/+21
| | | | | | | | | * Added new provider PI (Hacky way to use) * Updated models endpoint made it show real info about the model.py * Added cloudscraper to the requirements * Fixed some bugs aka made streaming also return role
* ~ | improve compatibility with lower python versionsabc2023-11-191-6/+6
| | | | remove tiktoken
* Fixed tupo in list_ignored_providers parameter.razrab2023-11-161-1/+1
|
* Update __init__.pyKacper Kwapisz2023-11-141-1/+1
| | | fixed the line where it checks if stream is requested. I made the change because before it ignored what the user typed because there was a invalid conversion from the boolean to string where the if stream clause would always be true. Simple workaround :)
* Added back list_ignored_providers parameter to ChatCompletion.create method in api.razrab2023-11-131-1/+5
|
* Refactor item_data update to handle byte keys and convert messages to dict.razrab2023-11-131-2/+11
|
* fix: api streaming TypeError: Object of type generator is not JSON serializableGiancarlo-Ma2023-11-071-1/+2
|
* Update __init__.pyThatLukinhasGuy2023-11-041-1/+1
|
* Update __init__.pyThatLukinhasGuy2023-11-041-1/+1
|
* Update __init__.pyThatLukinhasGuy2023-11-041-1/+1
|
* Update __init__.pyThatLukinhasGuy2023-11-041-1/+1
|
* Update __init__.pyThatLukinhasGuy2023-11-041-1/+1
|
* Update __init__.pyThatLukinhasGuy2023-11-041-143/+138
|
* Update __init__.pyThatLukinhasGuy2023-11-041-2/+2
|
* Update __init__.pyThatLukinhasGuy2023-11-021-1/+1
|
* Update __init__.pyThatLukinhasGuy2023-11-021-1/+0
|
* Update __init__.pyThatLukinhasGuy2023-11-021-200/+141
|
* add api proxycatmeowjiao2023-10-271-3/+19
|
* Merge branch 'main' into api-ignore-providersAndPim49122023-10-231-10/+7
|\
| * Debug config in apiHeiner Lohaus2023-10-231-1/+1
| |
| * 'Refactored by Sourcery' (#1125)ⲘrṨhส∂ow2023-10-231-6/+6
| | | | | | Co-authored-by: Sourcery AI <>
* | Refactor API initialization to accept a list of ignored providers.razrab2023-10-231-3/+11
|/
* ~abc2023-10-201-1/+1
| | | | minor changes
* ~ | quick fixabc2023-10-201-1/+1
|
* ~ | updated g4f.apiabc2023-10-201-151/+195
| | | | new api and requirements
* ~abc2023-10-121-63/+63
|
* Unify g4f tools into one CLIArran Hobson Sayers2023-10-121-0/+162