summaryrefslogtreecommitdiffstats
path: root/g4f/api (unfollow)
Commit message (Collapse)AuthorFilesLines
9 daysFix api streaming, fix AsyncClient (#2357)0.3.4.0H Lohaus1-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
11 daysImprove logging implementation (#2347)foxfire522-21/+23
2024-11-09feat(g4f/api/__init__.py): Update image generation response formatkqlio671-1/+1
2024-10-30feat(api): support async streaming in chat completionskqlio671-15/+5
2024-10-30feat(g4f/api/__init__.py): support both ':' and '-' in model prefixeskqlio671-0/+14
2024-10-25refactor(g4f/api/__init__.py): refactor API structure and improve async handlingkqlio671-64/+83
2024-10-17Add support for CORS preflight OPTION requests (#2006)foxfire521-1/+9
2024-10-15refactor(g4f/api/__init__.py): use asynchronous methods in Clientkqlio671-7/+9
2024-09-26fix: --ignored-providers option not working due to variable name mismatch421-2/+2
2024-05-18Improve Liabots provider, Add image api supportHeiner Lohaus1-21/+45
2024-05-17Improve compatibility of openai-node (#1966)碧舞すみほ1-1/+4
* improve compatibility of openai-node * improve compatibility with OpenAI's models api * allow image upload
2024-05-06Update __init__.pyH Lohaus1-1/+1
2024-05-06Update __init__.pyH Lohaus1-1/+6
2024-05-06Update __init__.py0.3.0.10H Lohaus1-10/+3
2024-05-05Add Ollama provider, Add vision support to OpenaiHeiner Lohaus1-1/+1
2024-04-29Add AppConfig class, update readmeHeiner Lohaus1-19/+27
2024-04-29Fix workers argument in apiHeiner Lohaus1-24/+33
2024-04-28clean codekafm1-13/+5
2024-04-28add authorization for g4f APIkafm1-5/+41
2024-04-21Add Replicate ProviderHeiner Lohaus1-20/+26
Fix Bug in OpenaiChat and MetaAI Add read cookie and .har files Use factory for api app
2024-04-20Disable Bing integration testHeiner Lohaus1-1/+1
2024-04-20Add workers and use_colors options to apiHeiner Lohaus2-37/+40
2024-04-18Add Ecosia Provider, Add OpenaiAccount aliasHeiner Lohaus1-15/+14
Use AsyncClient in API, add web_search parameter in API Improve error messages in Openai
2024-04-10Add OpenRouter and DeepInfraImage Provider (#1814)0.2.9.2H Lohaus1-1/+1
2024-04-07Add local models to gui, Fix You Provider, add AsyncClientHeiner Lohaus1-3/+25
2024-03-08Fix TypeError: 'Api' object is not callableRamon Victor Cardoso1-3/+3
2024-02-29Ignore empty auth header in apiHeiner Lohaus1-1/+3
Add live token count in gui
2024-02-24Add FlowGpt provider, Fix issue with None values in apiHeiner Lohaus1-3/+2
2024-02-23Set default values for generation configHeiner Lohaus1-5/+5
Set a list of providers
2024-02-23Add GeminiPro API providerHeiner Lohaus1-4/+9
Set min version for undetected-chromedriver Add api_key to the new client
2024-02-23Fix unittests, use Union typingHeiner Lohaus1-5/+5
2024-02-23Use new client in inter apiHeiner Lohaus1-136/+63
2024-02-14Basic support for the temperature parameternullstreak1-0/+2
2024-01-04Fix module 'g4f.debug' has no attribute 'get_version'Ramon Victor Cardoso1-1/+1
2024-01-01Add support for all modelsHeiner Lohaus1-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
2023-12-23Fix api run moduleHeiner Lohaus1-1/+1
2023-12-23Fix api and None providerHeiner Lohaus1-20/+12
2023-12-14Add providers in apialvarosoares01@gmail.com1-0/+6
2023-12-01Added new provider PI (Hacky way to use) (#1291)madonchik1232-10/+22
* 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
2023-11-19~ | improve compatibility with lower python versionsabc2-13/+13
remove tiktoken
2023-11-16Fixed tupo in list_ignored_providers parameter.razrab1-1/+1
2023-11-14Update __init__.pyKacper Kwapisz1-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 :)
2023-11-13Added back list_ignored_providers parameter to ChatCompletion.create method in api.razrab1-1/+5
2023-11-13Refactor item_data update to handle byte keys and convert messages to dict.razrab1-2/+11
2023-11-07fix: api streaming TypeError: Object of type generator is not JSON serializableGiancarlo-Ma1-1/+2
2023-11-04Update __init__.pyThatLukinhasGuy1-1/+1
2023-11-04Update __init__.pyThatLukinhasGuy1-1/+1
2023-11-04Update run.pyThatLukinhasGuy1-1/+1
2023-11-04Update __init__.pyThatLukinhasGuy1-1/+1
2023-11-04Update __init__.pyThatLukinhasGuy1-1/+1
2023-11-04Update __init__.pyThatLukinhasGuy1-1/+1
2023-11-04Update run.pyThatLukinhasGuy1-1/+1
2023-11-04Update __init__.pyThatLukinhasGuy1-143/+138
2023-11-04Update run.pyThatLukinhasGuy1-1/+1
2023-11-04Update __init__.pyThatLukinhasGuy1-2/+2
2023-11-02Update __init__.pyThatLukinhasGuy1-1/+1
2023-11-02Update __init__.pyThatLukinhasGuy1-1/+0
2023-11-02Update run.pyThatLukinhasGuy1-1/+1
2023-11-02Update __init__.pyThatLukinhasGuy1-200/+141
2023-10-27add api proxycatmeowjiao1-3/+19
2023-10-23Debug config in apiHeiner Lohaus1-1/+1
2023-10-23Refactor API initialization to accept a list of ignored providers.razrab1-3/+11
2023-10-23'Refactored by Sourcery' (#1125)ⲘrṨhส∂ow1-6/+6
Co-authored-by: Sourcery AI <>
2023-10-21fix bug - Cannot assign requested addresslate1-1/+1
2023-10-20~abc2-1/+2
minor changes
2023-10-20~ | quick fixabc1-1/+1
2023-10-20~ | updated g4f.apiabc4-153/+239
new api and requirements
2023-10-12~abc1-63/+63
2023-10-12Unify g4f tools into one CLIArran Hobson Sayers2-0/+166