summaryrefslogtreecommitdiffstats
path: root/g4f (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-01-30Fix DeepInfra: Model is not supportednullstreak1-1/+2
2024-01-29Add aiohttp_socks to requirementsHeiner Lohaus11-74/+93
Fix preview for uploaded and generated images in gui Improve typing, readme
2024-01-281. Discover chromedriver dynamically with "which". 2. Use "finally" in WebDriverSession.__exit__technicca1-2/+6
2024-01-28remove additional tags in PhindHoutar1-0/+2
Phind added new additional tags to their reply and this commit removed them.
2024-01-27Fix PerplexityLabs Provider, Improve bypass_cloudflare helperHeiner Lohaus11-164/+186
2024-01-26Fix: ChromeDriver only supports characters in the BMPHeiner Lohaus17-60/+73
Add set_cookies helper, Show last used model
2024-01-26New minimum requirements (#1515)0.2.0.6H Lohaus28-265/+394
* New minimum requirements * Add ConversationStyleOptionSets to Bing * Add image.ImageRequest * Improve python version support * Improve unittests
2024-01-24Add get_connector helperHeiner Lohaus8-41/+29
2024-01-23Add aiohttp_socks supportHeiner Lohaus5-21/+57
2024-01-23Add ProviderModelMixin for model selectionHeiner Lohaus8-88/+104
2024-01-23Upload transparency imageHeiner Lohaus1-6/+12
2024-01-23~ | Update Chatgpt4Online.pyTekky1-2/+2
clouldfare block on Chatgpt4Online
2024-01-23Fix: Model sometimes not converted #1507Heiner Lohaus1-4/+5
2024-01-23Added CodeLlama and misc models from DeepInfra (#1506)nullstreak1-5/+25
2024-01-23Fix background in select boxHeiner Lohaus1-1/+1
2024-01-23Cleanup model listHeiner Lohaus3-185/+53
2024-01-23Revert "Cleanup unused dependencies"Heiner Lohaus6-17/+6989
This reverts commit c2115309aba793530f7072848154fcad97d866b1.
2024-01-23Add PerplexityLabs ProviderHeiner Lohaus2-2/+100
2024-01-23Add upload svg image supportHeiner Lohaus6-26/+51
Fix upload image in Bing Provider
2024-01-22Improve CreateImagesBingHeiner Lohaus14-83/+68
Sort providers by category
2024-01-21Join Phind contextHeiner Lohaus1-1/+1
2024-01-21Fix Phind context and chat history not keeping up with the promptRasyiidWho1-3/+3
2024-01-21Fix load json in DeepInfraHeiner Lohaus1-7/+3
2024-01-21Add dolphin-2.6-mixtral-8x7bnullstreak1-0/+13
2024-01-21DeepInfra: Fix token duplicationnullstreak1-9/+16
2024-01-21Improve testsHeiner Lohaus5-35/+43
2024-01-20Check access from chromedriverHeiner Lohaus1-1/+3
2024-01-20Remove usage of get_event_loop helperHeiner Lohaus2-9/+24
2024-01-18Llama2.py result decode errordiaodeng1-2/+2
2024-01-14Remove deprecation in get_event_loopHeiner Lohaus1-4/+10
2024-01-14Fix unittests (#1472)H Lohaus2-11/+10
* Fix unittests * Fix missing distutils, install setuptools * Fix version not found * Remove deprecation in get_event_loop
2024-01-14Fix unittestsHeiner Lohaus1-12/+40
2024-01-14Change doctypes style to GoogleHeiner Lohaus8-104/+386
Fix typo in latest_version Fix Phind Provider Add unittest worklow and main tests
2024-01-14Refactor code with AIHeiner Lohaus19-564/+1400
Add doctypes to many functions Add file upload for text files Add alternative url to FreeChatgpt Add webp to allowed image types
2024-01-13Fix process_image in BingHeiner Lohaus6-22/+23
Add ImageResponse to Bing Fix cursor styling in gui
2024-01-13Improve FreeChatgpt ProviderHeiner Lohaus2-39/+49
2024-01-13Added support for more models: FreeChatgpt (#1456)Debaditya Banerji2-47/+50
* Improved FreeChatgpt, added support for more models * Added new model: Gemini Pro
2024-01-13Fix merge issuesHeiner Lohaus2-5/+3
2024-01-13Support upload image in guiHeiner Lohaus17-427/+605
Add image upload to OpenaiChat Add image response to OpenaiChat Improve ChatGPT Plus Support Remove unused requirements
2024-01-13Cleanup unused dependenciesAkash Mondal7-6992/+20
* remove packages, that are not a direct dependency to this project, from requirements.txt * no need to just numpy for simple sqrt operation on numbers * write code on python than using a js compiler
2024-01-12Add publish-to-pypi workflowHeiner Lohaus4-10/+14
Improve gui frontend Fix web search in bing
2024-01-11Fixed Error "No module named g4f.Provider.bing" (#1448)Debaditya Banerji1-0/+0
* Added init file to initiate bing as a Module
2024-01-10Fix create_async in CreateImagesProviderHeiner Lohaus1-5/+8
2024-01-10Fix bing stream funcHeiner Lohaus1-1/+1
2024-01-10Added timeout to Bing (#1438)0.1.9.10Eikosa1-8/+9
Co-authored-by: H Lohaus <hlohaus@users.noreply.github.com>
2024-01-10Add create images to Bing (#1426)H Lohaus18-307/+671
Add create images from Bing Add FreeChatgpt Provider Fix Bard Provider
2024-01-04Fix module 'g4f.debug' has no attribute 'get_version'Ramon Victor Cardoso1-1/+1
2024-01-02Add GeminiProChat Provider (#1419)H Lohaus3-6/+59
* Add GeminiProChat Provider
2024-01-02New Provider 'Bestim' (#1416)4sh2-0/+79
* Add new provider Bestim
2024-01-02Fix markdown replaceHeiner Lohaus1-1/+3
2024-01-01Fix DeepInfra ProviderHeiner Lohaus1-40/+48
2024-01-01Fix permissions for chromedriverHeiner Lohaus2-2/+3
Fix NoVNC server access Remove java from build
2024-01-01Add support for all modelsHeiner Lohaus43-280/+393
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-01Patch event loop on win, Check event loop closedHeiner Lohaus2-21/+24
2024-01-01Add _puid cookie, save access_token in cookies in OpenaiChatHeiner Lohaus1-7/+19
2023-12-31Fix Chatgpt4Online providerHeiner Lohaus1-17/+47
2023-12-31Fix Liabots sessionHeiner Lohaus1-4/+10
2023-12-31remove unnecessary semicolonYash Varshney1-1/+1
2023-12-29Update Liaobots.pyOmiiiDev1-3/+40
Added more models
2023-12-27Improve Chatxyz ProviderHeiner Lohaus1-22/+14
2023-12-27Added new Provider Chatxyz (#1393)Debaditya Banerji2-0/+69
* Added fucntionality for Provider * Added Provider in init * System message if present must be the first object in message array
2023-12-26Fix Phind providerZabir Raihan1-3/+4
2023-12-25Support Python 3.8Heiner Lohaus1-2/+2
2023-12-25Add Gpt6 ProviderHeiner Lohaus4-1/+61
2023-12-24Update get_latest_version for dockerHeiner Lohaus1-2/+8
2023-12-23Fix api run moduleHeiner Lohaus1-1/+1
2023-12-23Fix api and None providerHeiner Lohaus1-20/+12
2023-12-23Fix streaming in AuraHeiner Lohaus1-1/+2
2023-12-23Fix streaming in AuraHeiner Lohaus1-12/+11
2023-12-23Added OpenChat's Aura Model as a new Provider (#1371)Debaditya Banerji2-1/+57
* Added File for new Provider: Aura * Added Aura Provider in init
2023-12-21Update models.pynullstreak1-0/+7
2023-12-21Update Bing.pynullstreak1-4/+12
2023-12-19Bing: add parameter to enable/disable web search (#1360)nullstreak1-4/+8
Web search is disabled by default and can be enabled by passing `web_search = True`
2023-12-19Removed the condition for filtering token_idsdevAdityaa1-1/+1
2023-12-19fix(g4f): Fix typo in function nameNiNiyas2-3/+3
2023-12-18Fix Bing provider Cookie issue 2eminemkun1-2/+7
2023-12-16Fix remove NoowAi, Fix download dir in dockerHeiner Lohaus1-1/+0
2023-12-16Fix Bing provider Cookie issueeminemkun1-2/+1
2023-12-15HuggingChat: Strip leading whitespace from the first token in the streamnullstreak1-2/+7
For some reason first token from the stream on HuggingChat always starts with a whitespace. This commit strips the leading whitespace from the first token in the stream to fix this issue.
2023-12-15Moved NoowAI to deprecated folder as it's been officially taken downdevAdityaa1-0/+0
2023-12-14Remove VoiGptH Lohaus1-5/+1
2023-12-14Remove VoiGptH Lohaus1-1/+0
2023-12-14Add providers in apialvarosoares01@gmail.com1-0/+6
2023-12-13Add Mistral modelsnullstreak1-1/+16
2023-12-12Update and rename g4f/Provider/VoiGpt.py to g4f/Provider/deprecated/VoiGpt.pyGEOEGII5551-1/+1
2023-12-11Change default port for guiHeiner Lohaus3-7/+7
Change default host for api Disable gui in build Add custom docker user
2023-12-11Add error classesHeiner Lohaus5-70/+105
Move version check to debug
2023-12-10Remove needs_auth, add proxy support in VoiGptHeiner Lohaus3-81/+95
2023-12-10Added a new provider voigpt.com (#1328)Meshwa4283-1/+85
* added the new VoiGpt provider * fixed the voigpt and moved it to needs_auth * added auth detail and doc to voiGpt provider
2023-12-10Improve error handling in guiHeiner Lohaus2-59/+45
2023-12-10Add G4F_PROXY environmentHeiner Lohaus5-120/+113
Add regenerate button in gui
2023-12-08Fix llama2 provider, Update TOC in readme (#1325)H Lohaus1-9/+7
2023-12-07Update readme. Add docker hubHeiner Lohaus2-3/+3
2023-12-07Add websearch to gui (#1314)H Lohaus12-123/+333
* Add websearch to gui * Fix version_check config * Add version badge in README.md * Show version in gui * Add docker hub build * Fix gui backend, improve style
2023-12-06Update Pi.pyH Lohaus1-3/+6
2023-12-06~ | g4f v-0.1.9.20.1.9.2abc1-1/+1
2023-12-06Improve docker imageHeiner Lohaus3-2/+7
2023-12-06Add selenium to dockerfileHeiner Lohaus12-143/+122
Load model and provider list in gui Remove needs_auth in HuggingChat Add default model and login url in gui
2023-12-02~ | g4f `v-0.1.9.1`0.1.9.1abc1-1/+1
2023-12-02Add get_session_from_browser as cloudflare bypassHeiner Lohaus13-115/+110
2023-12-02Add proxy support / fix streamingHeiner Lohaus1-15/+13
2023-12-01Update pi providerHeiner Lohaus4-117/+98
2023-12-01Added new provider PI (Hacky way to use) (#1291)madonchik1236-12/+144
* 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-24~abc2-2/+2
chatgptx not working
2023-11-24~abc2-59/+56
fix DeepInfra
2023-11-24~ | g4f `v-0.1.9.0`abc1-1/+1
2023-11-22Fix ChatgptAi ProviderHeiner Lohaus1-1/+2
2023-11-22Add GptTalkRu ProviderHeiner Lohaus2-0/+50
2023-11-22Disable ChatgptDemoAi, ChatAnywhere and BerlinHeiner Lohaus3-5/+6
2023-11-22Fix Phind and GptGo ProviderHeiner Lohaus5-131/+188
2023-11-20~ | g4f v-0.1.8.90.1.8.9abc2-7/+11
2023-11-20~ | improve compatibilityabc15-29/+65
2023-11-20Update AItianhu.pyH Lohaus1-3/+4
2023-11-20Update GptGo.pyH Lohaus1-2/+3
2023-11-20Syntax error Fixed : GptGo.pyegcash1-2/+2
2023-11-20Support stream in create_asyncHeiner Lohaus1-7/+9
2023-11-20Add webdriver moduleHeiner Lohaus14-269/+219
2023-11-20Add auto support params methodHeiner Lohaus26-355/+56
2023-11-20Fix tupo in GptGorazrab1-2/+2
2023-11-20~ |abc5-12/+13
trying to improve compability with python versions < 3.8
2023-11-20~ | g4f `v-0.1.8.7`0.1.8.7abc1-1/+1
2023-11-19~ | improve compatibility with lower python versionsabc2-13/+13
remove tiktoken
2023-11-19~ | g4f v-0.1.8.6abc1-1/+1
2023-11-19Add Response Handler to OpenaiChatHeiner Lohaus11-448/+461
Update Providers with WebDriver Add WebDriverSession helper Use native streaming in curl_cffi
2023-11-18Add AiChatOnline, ChatgptDemoAi, ChatgptNext ProvidersHeiner Lohaus201-29100/+451
Add OnlineGpt and TalkAi Provider Add get_random_string and get_random_hex helper Remove funcaptcha package
2023-11-18~ | g4f `v-0.1.8.5`abc1-2/+1
2023-11-17Improve providersHeiner Lohaus6-96/+231
2023-11-17Remove virtualdisplay and add headless modeHeiner Lohaus7-97/+32
2023-11-17Add Poe Provider, Update AItianhuSpace PorviderHeiner Lohaus5-86/+249
2023-11-16~ | g4f `v-0.1.8.4`0.1.8.4abc1-1/+1
2023-11-16~abc1-1/+1
2023-11-16Update Liaobots.pyH Lohaus1-1/+1
2023-11-16Update MyShell.pyH Lohaus1-5/+5
2023-11-16Update Bard.pyH Lohaus1-12/+7
2023-11-16Update Phind.pyH Lohaus1-4/+11
2023-11-16Update Phind.pyH Lohaus1-5/+6
2023-11-16Update MyShell.pyH Lohaus1-2/+7
2023-11-16Update MyShell.pyH Lohaus1-10/+6
2023-11-16Update PerplexityAi.pyH Lohaus1-10/+9
2023-11-16Update helper.pyH Lohaus1-8/+8
2023-11-16Update Phind.pyH Lohaus1-9/+4
2023-11-16Update helper.pyH Lohaus1-0/+1
2023-11-16Update helper.pyH Lohaus1-1/+6
2023-11-16Fix Bard ProviderHeiner Lohaus3-81/+86
2023-11-16Fix Phind and PerplexityAi - GPT-4 ProvidersHeiner Lohaus9-402/+435
Fix MyShell Provider Refactor Provider __init__ Add ChatAnywhere Provider Update models list
2023-11-16fix: GPTalk can only use 5 times (#1255)hs_junxiang1-1/+4
2023-11-16Add back crutch of incorrect responses to ChatBaserazrab1-0/+5
2023-11-16Fixed tupo in list_ignored_providers parameter.razrab1-1/+1
2023-11-15Update OpenaiChat.pyH Lohaus1-0/+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-13Check_pypi_version now returns valueEikosa1-0/+2
2023-11-13Fix Chatgpt4Online ProviderHeiner Lohaus12-48/+48
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-12Add Berlin and Koala ProviderHeiner Lohaus4-5/+160
2023-11-12~ | g4f `v-0.1.8.2`0.1.8.2abc1-1/+1
2023-11-12Add auto_continue to OpenaiChatHeiner Lohaus3-46/+71
Update readme provider tables
2023-11-11Add py_arkose_generator in OpenaiChatHeiner Lohaus1-48/+12
2023-11-08Remove height restrictionpakmmc1-7/+1
Currently has blank black space at the bottom of the screen on 13" devices
2023-11-07~ | g4f `v-0.1.8.1`0.1.8.1abc1-1/+1
2023-11-07fix: api streaming TypeError: Object of type generator is not JSON serializableGiancarlo-Ma1-1/+2
2023-11-07fix: no module named 'flask' (#1216)hs_junxiang1-1/+1
2023-11-05~ | g4f `v-0.1.8.0`abc1-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 cli.pyThatLukinhasGuy1-1/+1
2023-11-04Update cli.pyThatLukinhasGuy1-2/+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 __init__.pyThatLukinhasGuy1-1/+1
2023-11-04Update cli.pyThatLukinhasGuy1-5/+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-04Update __init__.py (#1)ThatLukinhasGuy1-2/+2
2023-11-04Update Bing.py - Removed unnecessary "await" statements that could potentially lead to errorsLuneye1-2/+2
2023-11-03Add exec_js helper defHeiner Lohaus1-21/+25
2023-11-03Fix NotImplementedError on WInHeiner Lohaus1-0/+10
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-31~ | g4f `v-0.1.7.9`0.1.7.9xtekky1-1/+1
2023-10-29Update ChatBase.py - Added jailbreak (enabled by default), Removed list incorrect responsesLuneye1-10/+14
2023-10-28Use asyncio subprocess in OpenaiChatHeiner Lohaus1-3/+10
2023-10-28Update backend.py, index.html, requirements.txt (#1180)hdsz252-6/+6
* Update backend.py change to the model that received from user interactive from the web interface model selection. * Update index.html added Llama2 as a provider selection and also include the model selection for Llama2: llama2-70b, llama2-13b, llama2-7b * Update requirements.txt add asgiref to enable async for Flask in api. "RuntimeError: Install Flask with the 'async' extra in order to use async views"
2023-10-28Add arkose_token to OpenaiChatHeiner Lohaus178-15/+29503
2023-10-27Update config supports_message_historyHeiner Lohaus27-47/+56
2023-10-27added contextunknown3-50/+83
2023-10-27~ | g4f `v-0.1.7.8`abc1-1/+1
2023-10-27add api proxycatmeowjiao1-3/+19
2023-10-26Add llama2 model mappingHeiner Lohaus1-0/+5
2023-10-26Add Llama2 Providers / ModelsHeiner Lohaus4-9/+91
2023-10-26add proxy supportcatmeowjiao1-8/+29
2023-10-25Extract keywords from incorrect responsesrazrab1-3/+3
The text of error responses is dynamically created by LLM. Need determine by keywords for more precise identification.
2023-10-24Indicated support of message history in GptForLove.pyLuneye1-0/+1
2023-10-24Indicated support of message history in Bing.pyLuneye1-0/+1
2023-10-24Indicated support of message history in ChatBase.pyLuneye1-1/+2
2023-10-24Indicated support of message history in FreeGpt.pyLuneye1-0/+1
2023-10-24Indicated support of message history in GPTalk.pyLuneye1-1/+2
2023-10-24Indicated support of message history in Yqcloud.pyLuneye1-0/+1
2023-10-24Indicated support of message history in You.pyLuneye1-1/+2
2023-10-24Indicated support of message history in FakeGpt.pyLuneye1-1/+2
2023-10-24Indicated support of message history in ChatForAi.pyLuneye1-1/+2
2023-10-24Indicated support of message history in ChatgptX.pyLuneye1-1/+2
2023-10-24~ | g4f `v-0.1.7.7`0.1.7.7abc1-1/+1
2023-10-24Update MyShell.pyHeiner Lohaus1-0/+1
2023-10-24Update GetGpt provider for Debian python3-pycryptodome compatibilityrazrab1-1/+4
Try to import AES from Cryptodome.Cipher if Crypto.Cipher caused error.
2023-10-24Add support for detecting incorrect responses in ChatBase API requests.razrab1-0/+7
2023-10-24[suggestion] Adding new parameter to check if provider supports message historyLuneye1-1/+2
What are your thoughts on introducing a parameter that allows us to promptly verify whether the provider supports message history? I also considered adding a parameter to indicate whether a provider can perform web searches.
2023-10-24Update FreeGpt.pyShubh Gajjar1-2/+2
Changed older domain url with the working new url
2023-10-23~ | g4f `v-0.1.7.6`0.1.7.6abc1-1/+1
2023-10-23Bugfix Bing.py - Resolved Issues with system prompt, Bing personalities and enabled all supported user requestsLuneye1-47/+45
I used this repository (https://github.com/waylaidwanderer/node-chatgpt-api/) as a reference to fix all the bugs related to Bing "personality." I included all the required fields in the allowedMessageTypes and optionsSets (as well as sliceIds) to allow it to respond to any requests it actually supports. Will also finish the code to fully implement the image generation functionality.
2023-10-23Debug config in apiHeiner Lohaus1-1/+1
2023-10-23Refactor API initialization to accept a list of ignored providers.razrab2-5/+24
2023-10-23'Refactored by Sourcery' (#1125)ⲘrṨhส∂ow44-401/+398
Co-authored-by: Sourcery AI <>
2023-10-23~ | g4f `v-0.1.7.5`abc1-2/+2
2023-10-22Debug logging supportHeiner Lohaus5-37/+46
Async browse access token
2023-10-22Improve get_cookies helperHeiner Lohaus2-14/+25
2023-10-22~ | g4f `v-0.1.7.4`abc1-1/+1
2023-10-22Fix ChatgptAi ProviderHeiner Lohaus2-39/+47
2023-10-22Major Update for Bing - Supports latest bundle version and image analysisLuneye1-42/+222
Here it is, a much-needed update to this service which offers numerous functionalities that the old code was unable to deliver to us. As you may know, ChatGPT Plus subscribers now have the opportunity to request image analysis directly from GPT within the chat bar. Bing has also integrated this feature into its chatbot. With this new code, you can now provide an image using a data URI, with all the following supported extensions: jpg, jpeg, png, and gif! **What is a data URI and how can I provide an image to Bing?** Just to clarify, a data URI is a method for encoding data directly into a URI (Uniform Resource Identifier). It is typically used for embedding small data objects like images, text, or other resources within web pages or documents. Data URIs are widely used in web applications. To provide an image from your desktop and retrieve it as a data URI, you can use this code: [GitHub link](https://gist.github.com/jsocol/1089733). Now, here is a code snippet you can use to provide images to Bing: ```python import g4f provider = g4f.Provider.Bing user_message = [{"role": "user", "content": "Hi, describe this image."}] response = g4f.ChatCompletion.create( model = g4f.models.gpt_4, provider = g4f.provider, # Corrected the provider value messages = user_message, stream = True, image = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4RiSRXhpZgAASUkqAAg..." # Insert your full data URI image here ) for message in response: print(message, flush=True, end='') ``` If you don't want to analyze the image, just do not specify the image parameter. Regarding the implementation, the image is preprocessed within the Bing.py code, which can be resource-intensive for a server-side implementation. When using the Bing chatbot in your web browser, the image is preprocessed on your computer before being sent to the server. This preprocessing includes tasks like image rotation and compression. Although this implementation works, it would be more efficient to delegate image preprocessing to the client as it happens in reality. I will try to provide a JavaScript code for that at a later time. As you saw, I did mention in the title that it is in Beta. The way the code is written, Bing can sometimes mess up its answers. Indeed, Bing does not really stream its responses as the other providers do. Bing sends its answers like this on each iteration: "Hi," "Hi, this," "Hi, this is," "Hi, this is Bing." Instead of sending each segment one at a time, it already adds them on each iteration. So, to simulate a normal streaming response, other contributors made the code wait for the next iteration to retrieve the newer segments and yield them. However, this method ignores something that Bing does. Bing processes its responses in a markdown detector, which searches for links while the AI answers. If it finds a link, it saves it and waits until the AI finishes its answer to put all the found links at the very end of the answer. So if the AI is writing a link, but then on the next iteration, it finishes writing this link, it will then be deleted from the answer and appear later at the very end. Example: "Here is your link reference [" "Here is your link reference [^" "Here is your link reference [^1" "Here is your link reference [^1^" And then the response would get stuck there because the markdown detector would have deleted this link reference in the next response and waited until the AI is finished to put it at the very end. For this reason, I am working on an update to anticipate the markdown detector. So please, if you guys notice any bugs with this new implementation, I would greatly appreciate it if you could report them on the issue tab of this repo. Thanks in advance, and I hope that all these explanations were clear to you!
2023-10-22Add rate limit error messagesHeiner Lohaus2-1/+6
2023-10-22Fix increase timeoutHeiner Lohaus6-54/+94
Add Hashnode Provider Fix Yqcloud Provider
2023-10-22Enable Liaobots and ChatForAi againHeiner Lohaus2-3/+3
2023-10-22Fix MyShell ProviderHeiner Lohaus10-30/+115
2023-10-22Add FakeGpt ProviderHeiner Lohaus3-15/+108
Update providers in models
2023-10-21fix bug - Cannot assign requested addresslate2-2/+2
2023-10-21 ~ | g4f `v-0.1.7.2`0.1.7.2abc1-1/+1
fix tiktok not found error
2023-10-21~ | g4f `v-0.1.7.2`abc18-129/+184
patch / unpatch providers
2023-10-20~ | g4f v-0.1.7.0abc1-1/+1
quick fix
2023-10-20~ | 0.1.7.0abc2-3/+4
2023-10-20~ | g4f v-0.1.6.9abc1-1/+1
2023-10-20~abc4-4/+9
minor changes
2023-10-20~ | quick fixabc1-1/+1
2023-10-20~ | updated g4f.apiabc5-154/+240
new api and requirements
2023-10-19~abc5-44/+101
fix gui errors on iOS
2023-10-19~ | g4f `v-0.1.6.8`0.1.6.8abc4-10/+15
some quick fixes
2023-10-19~ | g4f v-0.1.6.70.1.6.7abc1-1/+1
2023-10-19~abc6-151/+163
automatic models fetching in GUI.
2023-10-19~abc1-0/+7
2023-10-19Fix: debug.logging not work in retry providerhs_junxiang2-6/+6
2023-10-17Add timeoutostix3601-1/+6
2023-10-16~ | g4f `v-0.1.6.6`0.1.6.6abc1-1/+1
2023-10-16~ | update working providers list & gpt-4 providersabc1-5/+8
2023-10-16~ | add `g4f.Provider.GeekGpt`abc2-1/+85
2023-10-16~ | g4f `v-0.1.6.5`abc1-1/+1
2023-10-16~ | remove non-working providersabc11-32/+107
2023-10-15Add Llama2 and NoowAi ProviderHeiner Lohaus7-8/+156
2023-10-14~ | g4f `v-0.1.6.4`abc1-1/+1
2023-10-14~abc3-15/+11
fix chatbase (bad) and remove from auto selection
2023-10-14Fix Opchatgpts and ChatForAi ProviderHeiner Lohaus11-106/+121
Deprecate Vitalentum and Aivvm Provider
2023-10-13g4f `v-0.1.6.3`abc1-1/+1
2023-10-13fix: remove typo in readme and configsEzra Adeyinka1-1/+1
2023-10-13feat: ignore providers(#1014)hs_junxiang1-8/+19
2023-10-12Deprecate ChatForAiHeiner Lohaus3-5/+6
2023-10-12Add ChatgptLogin, ChatgptFree and GptChatly ProviderHeiner Lohaus10-80/+391
2023-10-12~ | g4f `v-0.1.6.2`0.6.1.2abc1-12/+8
2023-10-12~abc1-1/+1
2023-10-12~abc1-63/+63
2023-10-12Fix: GptGo json.decoder.JSONDecodeErrorhs_junxiang1-0/+2
2023-10-12Unify g4f tools into one CLIArran Hobson Sayers7-111/+213
2023-10-11~ | g4f v-0.1.6.1abc4-11/+10
some bug fixes
2023-10-11Fix: TypeError: unsupported operand type(s) for |:...hs_junxiang2-0/+5
2023-10-11fix typo in backend.pyIkko Eltociear Ashimine1-1/+1
occured -> occurred
2023-10-10~ | g4f `v-0.1.5.9`(remove deepai.org)abc1-1/+1
2023-10-10~ | remove DeepAiabc4-87/+2
2023-10-10~ | g4f `v-0.1.5.8`0.1.5.8abc4-14/+6
2023-10-10fix htmlCommenter1233211-1/+1
2023-10-10whatCommenter1233211-3/+3
2023-10-10change discord icon to telegram icon on guiCommenter1233212-2/+2
2023-10-10make user agent easily changeable in deepaiCommenter1233211-2/+3
2023-10-10fix deepai :)Commenter1233211-18/+17
2023-10-10fix provider thing in gui x2Commenter1233214-17/+23
2023-10-10fix provider thing in guiCommenter1233211-1/+1
2023-10-10remove unused import in Bing.pyCommenter1233211-1/+0
2023-10-10make internet searching betterCommenter1233212-11/+41
2023-10-10Aivvm is the best provider no capCommenter1233211-3/+6
2023-10-10Some small fixesHeiner Lohaus9-35/+32
2023-10-10Update Aivvm.pyCommenter1233211-3/+3
2023-10-10~ | g4f `v-0.1.5.7` [Set Provider in GUI] + Provider Proxyabc4-144/+165
2023-10-10~abc1-1/+15
Command line arguments for GUI
2023-10-10~abc2-7/+29
New system for str to Provider
2023-10-10~abc1-6/+7
remove chatforai
2023-10-10~abc1-0/+62
Conversion from str Provider to g4f.Provider
2023-10-09add cool testing for gpt-3.5 and and gpt-4Commenter1233213-26/+41
2023-10-09 Add Proxy Support and Create Provider to ReadmeHeiner Lohaus7-41/+57
Add proxy support to many providers
2023-10-09Add proxy support to all providersHeiner Lohaus29-113/+162
2023-10-08~ | g4f `v-0.1.5.6`abc4-14/+24
gui & interference can now be run with: python -m g4f.gui.run and python -m g4f.interference.run
2023-10-08Add Messages and AsyncResult typingHeiner Lohaus6-32/+45
Add system_message in Yqcloud
2023-10-08Add Cromicle to provider listHeiner Lohaus6-28/+66
2023-10-07~ | `v-0.1.5.5`abc4-6/+10
Aiivm working again
2023-10-07~ | g4f `v-0.1.5.5`0.1.5.5abc1-1/+1
2023-10-07Remove Aivvm from working providersHeiner Lohaus4-21/+15
2023-10-07Improve code with aiHeiner Lohaus2-22/+32
2023-10-07 ~ | g4f `v-0.1.5.4` [new gui & interference]abc1-4/+0
2023-10-07~abc1-0/+4
2023-10-07Improve code by AIHeiner Lohaus4-102/+103
2023-10-07Add GptGod ProviderHeiner Lohaus14-29/+73
Remove timeout from aiohttp providers Disable Opchatgpts and ChatgptLogin provider
2023-10-07Add GPTalk and GptForLove ProviderHeiner Lohaus5-0/+6618
2023-10-06 ~ | g4f `v-0.1.5.4` [new gui & interference]0.1.5.4abc1-1/+1
+ version fix
2023-10-06~ | g4f `v-0.1.5.3` [new gui & interference]0.1.5.3abc1-1/+1
2023-10-06 ~ | new instructions for gui & interference + telegram channelabc1-1/+1
2023-10-06 ~ | g4f `v-0.1.5.1` [*new gui & interference*]abc1-1/+0
2023-10-06~ | g4f `v-0.1.5.1` [*new gui & interference**]abc1-1/+1
2023-10-06~ | gpt-3.5-turbo-0613abc1-0/+1
2023-10-06~ | new interferenceabc1-0/+94
2023-10-06~ | new g4f GUIabc20-0/+1880
2023-10-06Fix timeout in create_asyncHeiner Lohaus9-30/+17
2023-10-06~ | g4f v-0.1.5.0abc1-1/+1
2023-10-06~abc1-2/+4
2023-10-06~ | fix gpt-3.5-turbo modelsabc1-5/+4
2023-10-06Fix: TypeError: 'type' object is not subscriptablehs_junxiang2-0/+8
2023-10-05import fixedostix3601-1/+3
2023-10-05~ | g4f v-0.1.4.9 [major updates and patches]0.1.4.9abc1-1/+1
2023-10-05Add AiAsk, Chatgpt4Online, ChatgptDemoHeiner Lohaus33-177/+603
and ChatgptX Provider Fix Bing, Liaobots and ChatgptAi Provider Add "gpt_35_long" model and custom timeout
2023-10-04Update models.pyHexye1-1/+2
2023-10-04Update Cromicle.pyHexye1-2/+2
2023-10-04Create Cromicle.pyHexye1-0/+50
2023-10-04~ | g4f v-0.1.4.8 - Fixed `g4f.Provider.Bing`abc2-9/+35
implemented new "X-Sydney-EncryptedConversationSignature" found in headers from "turing/conversation/create"
2023-10-04~ | g4f v-0.1.4.7 `pip install -U g4f`0.1.4.7abc1-1/+1
2023-10-04Sort providers in new dirsHeiner Lohaus27-64/+71
2023-10-04Use custom user dirHeiner Lohaus2-26/+16
2023-10-03Fix fetch_access_token in openaiHeiner Lohaus1-10/+16
2023-10-03 ~ | g4f v-0.1.4.6 `pip install -U g4f`0.1.4.6abc1-1/+1
2023-10-03 ~ | g4f v-0.1.4.5 `pip install -U g4f`abc1-1/+1
updated providers: - g4f.Provider.Bing - g4f.Provider.OpenaiChat
2023-10-03Add streaming in openai chatHeiner Lohaus2-24/+75
Fetch access token with chromedriver
2023-10-02Bing Updates:Heiner Lohaus1-33/+45
Add retry create conversation Removed get_cookies fallback Add creative tone parameter
2023-10-02~ | g4f v-0.1.4.5 `pip install -U g4f`0.1.4.5abc1-1/+1
2023-10-02Add Phind ProviderHeiner Lohaus4-13/+108
Add release_curl in url_cffi requets Support create image response in Bing
2023-10-02feat: add custom header to deepaiGiancarlo-Ma1-0/+1
2023-10-02~ | g4f v-0.1.4.4abc2-2/+3
release_curl bug
2023-10-02~ | quick fixabc1-1/+2
2023-10-02~ | g4f v-`0.1.4.3`0.1.4.3abc1-1/+1
2023-10-02Fix: There is no current event loop in threadHeiner Lohaus4-15/+34
2023-10-02Remove fake_useragent moduleHeiner Lohaus1-4/+0
2023-10-02+Curl +Async +Stream RequestsHeiner Lohaus9-76/+119
Update Model List
2023-10-02fix typo in payloadst4rted1-2/+2
2023-10-01Change event loop policy on windowsHeiner Lohaus2-12/+30
Support more versions from curl_cffi
2023-10-01aivvm's no life creator keeps patching it, but I'm just better 😉Commenter1233211-3/+4
2023-10-01Disable Wewordle ProviderHeiner Lohaus3-12/+10
Update Ylokh Provider Improve StreamRequest
2023-10-01Disable PerplexityAi ProviderHeiner Lohaus2-2/+2
2023-10-01Update HuggingChat to new apiHeiner Lohaus9-100/+206
Impersonate Aivvm Provider Add ChatForAi and FreeGpt Provider Update AItianhuSpace Provider Improve StreamRequest Support Update get_event_loop Helper
2023-10-01~ | v-0.1.4.2 `pip install -U g4f`0.1.4.2abc1-1/+1
2023-10-01~ | pypi v-0.1.4.0 `pip install -U g4f`abc1-1/+1
2023-10-01~Tekky1-162/+162
2023-09-29some more thingsCommenter1233211-148/+152
2023-09-29Fix Aivvm and add new models in models.pyCommenter1233212-19/+28
2023-09-27~ | g4f v-0.1.4.0 (new version checking systemabc1-1/+15
2023-09-27~ | g4f v-0.1.3.9abc2-3/+3
2023-09-27~ | g4f v-0.1.3.8abc1-1/+1
2023-09-26fixed bug: ImportError: cannot import name 'Request' from 'curl_cffi.requests.cookies' (/Users/yanyuming/opt/anaconda3/envs/chatgpt/lib/python3.11/site-packages/curl_cffi/requests/cookies.py)yym686861-1/+1
2023-09-26~ | v-0.1.3.7abc1-1/+1
2023-09-26~ | add version (`g4f.version`)abc1-1/+1
2023-09-26Add ChatgptDuo and Aibn ProviderHeiner Lohaus10-94/+226
Add support for "nest_asyncio", Reuse event_loops with event_loop_policy Support for "create_async" with synchron provider
2023-09-26AItianhuSpace Provider with GPT 4 addedHeiner Lohaus3-18/+50
Reduced chunksize to better text completion
2023-09-26"create_async" support for BaseProvider,Heiner Lohaus4-2/+156
by using ThreadPoolExecutor Default Model for Vercel
2023-09-25Add Myshell ProviderHeiner Lohaus6-22/+189
Remove auto proxy prefix
2023-09-23TypeError: issubclass() arg 1 must be a classHeiner Lohaus1-1/+2
2023-09-23Fix: Aivvm: KeyError: ''Heiner Lohaus2-4/+10
and TypeError: issubclass() arg 1 must be a class
2023-09-23 ~ | improve Vercel & g4f.Completion.createabc1-1/+1
2023-09-23~ | improve Vercel & g4f.Completion.createabc2-2/+33
added `.Completion.create` class. ```py response = g4f.Completion.create( model='text-davinci-003', prompt="Hello") print(response) ```
2023-09-23~abc1-0/+369
2023-09-23Delete g4f/Provider/Vercel.pyTekky1-387/+0
2023-09-23Improve Vercel Provider:Heiner Lohaus4-46/+63
- Fix endless loop - Add proxy, async support - Add default model Fix HuggingChat Provider
2023-09-23~ | Update Vercel Providerabc1-227/+307
2023-09-23~ | gpt-3.5-turbo-16k-0613abc1-17/+17
2023-09-23~ | new providersabc3-70/+65
Somwhat fix Aivvm provider, which looks to have a working gpt-4 kinda unstable
2023-09-23~ | Fix DeepAiabc1-1/+1
2023-09-22~ | gpt-3.5-turbo-0613abc1-144/+140
2023-09-21Add RetryProviderHeiner Lohaus4-16/+110
2023-09-20Fix create_event_loop functionHeiner Lohaus3-10/+100
Add PerplexityAi Provider
2023-09-20Improve code style in async supportHeiner Lohaus1-10/+22
2023-09-20Add "create_event_loop" helperHeiner Lohaus1-9/+13
2023-09-20Add check_running_loop requirementHeiner Lohaus2-34/+69
Add create_async function in ChatCompletion Use SelectorEventLoop on windows
2023-09-20Cache "snlm0e" in BardHeiner Lohaus8-26/+43
Improve error handling in ChatgptLogin Fix async example in readme
2023-09-20add model config : gpt_35_turbo_0613tony1-1/+1
2023-09-20dd model config : gpt_35_turbo_0613tony1-35/+35
2023-09-20add model config : gpt_35_turbo_0613tony1-3/+2
2023-09-20add model config : gpt_35_turbo_0613tony1-138/+141
2023-09-20add model config : gpt_35_turbo_0613tony1-1/+1
2023-09-20add model config : gpt_35_turbo_0613tony1-1/+4
2023-09-20add model config : gpt_35_turbo_0613tony1-0/+5
2023-09-19~abc1-64/+2
2023-09-18Check supports_stream in best_providers listHeiner Lohaus2-5/+7
2023-09-18Improve event loopHeiner Lohaus2-42/+44
2023-09-18Add GptGo Provider, Fix AItianhu ProviderHeiner Lohaus3-41/+98
2023-09-17~Tekky1-353/+0
2023-09-17~ | improved stability with gpt-3.5-turboabc1-14/+21
improved stability with gpt-3.5-turbo
2023-09-17~abc1-2/+1
2023-09-17Update __init__.pyabc1-2/+1
2023-09-17Revert "Fix type hint"Tekky28-30/+241
2023-09-17.Tekky1-218/+0
2023-09-16fix typo: provider -> ProviderMIDORIBIN25-25/+25
2023-09-16fix type hintMIDORIBIN3-130/+137
2023-09-12Disable not working providers:Heiner Lohaus7-24/+33
EasyChat, Equing, GetGpt, Liaobots and Wuguokai No and random best provider for a model Update providers in Readme
2023-09-12Add new providers: Aivvm, Vitalentum and YlokhHeiner Lohaus7-25/+251
2023-09-11Fix: `TypedDict` from `typing` error #886hs_junxiang1-2/+8
Ref: https://github.com/python/typeshed/issues/3500
2023-09-10Add ChatBase ProviderHeiner Lohaus2-0/+64
2023-09-09Add CodeLinkAva Provider, Improve test_async.pyHeiner Lohaus4-2/+67
2023-09-05Fix imports in BingHeiner Lohaus1-16/+7
2023-09-05Add to many provider async and stream support, Fix Ails, AItianhu, ChatgptAi, ChatgptLogin Provider, Add fallback cookies to Bing, Improve OpenaiChat ProviderHeiner Lohaus17-528/+443
2023-09-04Join the messageshs_junxiang7-29/+14
A better approach is to use the `.join()` method of strings, which reduces string concatenation operations and improves performance. Additionally, using formatted strings (f-strings) makes the code cleaner and more readable.
2023-09-03type hintsmsi-JunXiang35-45/+176
Use `from __future__ import annotations avoid `dict` and `list` cause "TypeErro: 'type' object is not subscriptable". Refer to the following Stack Overflow discussions for more information: 1. https://stackoverflow.com/questions/75202610/typeerror-type-object-is-not-subscriptable-python 2. https://stackoverflow.com/questions/59101121/type-hint-for-a-dict-gives-typeerror-type-object-is-not-subscriptable
2023-09-01Set working=True in Liaobots, Fix bing provider, Update readmeHeiner Lohaus4-24/+6
2023-08-28~ | v-0.0.2.6abc1-25/+25
2023-08-28Update Bing.pyLuneye1-7/+7
Fixed some errors in my previously precipitated commit.
2023-08-28Update Bing.pyLuneye1-53/+45
Added support the async function Will implement proper cookie retrieval later but Bing is working for now
2023-08-28Add async support for H2oHeiner Lohaus13-311/+468
Add format_prompt helper Fix create_completion in AsyncGeneratorProvider Move get_cookies from constructor to function Add ow HuggingChat implement Remove need auth form Liabots Add staic cache for access_token in OpenaiChat Add OpenAssistant provider Support stream and async in You Support async and add userId in Yqcloud Add log_time module
2023-08-27Update Bing.py Luneye1-46/+76
Removed unnecessary check that could prematurely stop the AI's response while answering
2023-08-27~ | code stylingabc33-967/+842
2023-08-25 ~ | v-0.0.2.50.0.2.5abc1-1/+1
2023-08-25Add OpenaiChat and Hugchat ProviderHeiner Lohaus6-79/+259
Add tests for providers with auth Improve async support / 2x faster Shared get_cookies by domain function
2023-08-25Ails Supplementary Identification of Unusual Response Contentzengrr1-1/+1
2023-08-24Improve provider listHeiner Lohaus5-11/+11
2023-08-24remove whitspace from data: and raise exceptionBagus Indrayana1-3/+5
2023-08-23Ails throw the contents of an error responsezengrr1-0/+2
2023-08-23fix Yqcloud's prompter using only the last messagezengrr1-1/+4
2023-08-23"You" unicode decode and fix prompt just is last messagezengrr1-5/+8
2023-08-23Add create_async methodHeiner Lohaus1-19/+39
2023-08-22Improve providers with testsHeiner Lohaus6-20/+18
2023-08-22fix Equing response error with no streamzengrr1-0/+3
2023-08-22set encoding and temperaturezengrr3-5/+10
2023-08-21Fix bing providerHeiner Lohaus1-261/+203
2023-08-20change linkBagus Indrayana1-8/+9
2023-08-20fix theb but need authBagus Indrayana1-15/+72
2023-08-20update header & response easychatBagus Indrayana1-9/+30
2023-08-18Fix bard provider, add async supportHeiner Lohaus1-69/+67
2023-08-17Update Yqcloud.pyMaxKUlish11-0/+1
# specify the correct encoding forcibly
2023-08-17Update Yqcloud.pyMaxKUlish11-1/+0
2023-08-17Update Yqcloud.pyMaxKUlish11-0/+1
# specify the correct encoding forcibly
2023-08-17add providerBagus Indrayana2-1/+68
2023-08-17refactor V50 and RaycastBagus Indrayana2-85/+123
2023-08-17 ~ | major refractoring + new providers | v0.0.2.0abc5-3/+164
g4f.Provider.FastGpt & g4f.Provider.Equing gpt-3.5-turbo-0613
2023-08-17add proxy and remove streamBagus Indrayana1-1/+1
2023-08-17add v50Bagus Indrayana2-0/+44
2023-08-17~ | major refractoring | v0.0.2.0abc5-12/+12
2023-08-14refactor: refactor providerMIDORIBIN186-10894/+2492
2023-08-14~ | small fixes & new pypi version | v-0.0.1.90.0.1.90.0.1.0abc1-1/+1
2023-08-14small fixes & new pypi versionabc3-4/+113
2023-08-14Fix Ails.pyjohnd0e1-1/+1
Fix arguments order
2023-08-12Update EasyChat.pyomidima1-10/+9
Resolve review comments.
2023-08-11Update EasyChat.pyomidima1-1/+8
update active servers
2023-08-09Add Raycast Providerye42412-0/+51
2023-08-08Update EasyChat.pyomidima1-16/+17
Change model address and add proxy & session for pass cloudflare auth on requests.
2023-08-05Update Ails.pyVastV21-3/+5
after they update the client-v version the page is not working anymore, so I made this to get the version number automatically, this way we don't need to update the version manually.
2023-08-05Update DeepAi.pyomidima1-26/+52
2023-08-01Update __init__.pykggn1-1/+1
2023-08-01Update __init__.pykggn1-0/+1
2023-08-01Create opchatgpts.pykggn1-0/+42
2023-07-25refactor: refactor modelsMIDORIBIN2-231/+243
2023-07-24Update Vercel.pyabc1-109/+8
2023-07-22Use the temperature parametergrandsonneo@gmail.com6-13/+13
2023-07-21Fix the import errorsnonk1231-0/+0
2023-07-19Update Provider.DfeHub to consider rate-limitnajam-tariq1-1/+9
2023-07-18Rename DFEHub.py to DfeHub.pyxtekky1-1/+1
2023-07-18.abc1-1/+1
2023-07-17pypi package (pip install `g4f`)abc1-2/+6
2023-07-16minor fixesabc27-64/+136
2023-07-16minor fixesabc4-5/+4
ails, chatgptai ...
2023-07-12refactor/move provider from testing folderBagus Indrayana5-0/+364
2023-07-10Add files via uploadAlephZero2551-105/+93
Fix empty H2o output
2023-07-05some more providersnajam-tariq5-1/+169
2023-06-29fix subDomain of LockChatLê Anh Tuấn1-2/+2
2023-06-27Fix: There is no current event loop in thread.Ramon Victor Cardoso1-12/+13
2023-06-24gpt4free v2, first releasev2t.me/xtekky151-0/+10302