summaryrefslogtreecommitdiffstats
path: root/g4f/Provider (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix Phind providerZabir Raihan2023-12-261-3/+4
|
* Fix streaming in AuraHeiner Lohaus2023-12-231-1/+2
|
* Fix streaming in AuraHeiner Lohaus2023-12-231-12/+11
|
* Added OpenChat's Aura Model as a new Provider (#1371)Debaditya Banerji2023-12-232-1/+57
| | | | | * Added File for new Provider: Aura * Added Aura Provider in init
* Update Bing.pynullstreak2023-12-211-4/+12
|
* Bing: add parameter to enable/disable web search (#1360)nullstreak2023-12-191-4/+8
| | | Web search is disabled by default and can be enabled by passing `web_search = True`
* Merge pull request #1364 from eminemkun/mainH Lohaus2023-12-191-2/+7
|\ | | | | Fix Bing provider Cookie issue 2
| * Fix Bing provider Cookie issue 2eminemkun2023-12-181-2/+7
| |
* | Removed the condition for filtering token_idsdevAdityaa2023-12-191-1/+1
|/
* Merge pull request #1356 from eminemkun/mainH Lohaus2023-12-161-2/+1
|\ | | | | Fix Bing provider Cookie issue
| * Fix Bing provider Cookie issueeminemkun2023-12-161-2/+1
| |
* | Merge pull request #1352 from nullstreak/mainH Lohaus2023-12-161-2/+7
|\ \ | | | | | | HuggingChat: Strip leading whitespace from the first token in the stream
| * | HuggingChat: Strip leading whitespace from the first token in the streamnullstreak2023-12-151-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.
* / Fix remove NoowAi, Fix download dir in dockerHeiner Lohaus2023-12-161-1/+0
|/
* Moved NoowAI to deprecated folder as it's been officially taken downdevAdityaa2023-12-151-0/+0
|
* Remove VoiGptH Lohaus2023-12-141-1/+0
|
* Merge pull request #1341 from GEOEGII555/patch-1Tekky2023-12-131-1/+1
|\ | | | | VoiGpt stopped working -> changed the working flag to False and moved it to deprecated providers.
| * Update and rename g4f/Provider/VoiGpt.py to g4f/Provider/deprecated/VoiGpt.pyGEOEGII5552023-12-121-1/+1
| |
* | Merge pull request #1331 from hlohaus/proxyTekky2023-12-131-3/+4
|\ \ | |/ |/| Add G4F_PROXY environment
| * Add error classesHeiner Lohaus2023-12-111-3/+4
| | | | | | | | Move version check to debug
* | Remove needs_auth, add proxy support in VoiGptHeiner Lohaus2023-12-103-81/+95
| |
* | Added a new provider voigpt.com (#1328)Meshwa4282023-12-102-1/+81
|/ | | | | | | * added the new VoiGpt provider * fixed the voigpt and moved it to needs_auth * added auth detail and doc to voiGpt provider
* Fix llama2 provider, Update TOC in readme (#1325)H Lohaus2023-12-081-9/+7
|
* Update readme. Add docker hubHeiner Lohaus2023-12-071-1/+1
|
* Add websearch to gui (#1314)H Lohaus2023-12-073-14/+73
| | | | | | | | * 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
* Update Pi.pyH Lohaus2023-12-061-3/+6
|
* Add selenium to dockerfileHeiner Lohaus2023-12-066-41/+43
| | | | | | Load model and provider list in gui Remove needs_auth in HuggingChat Add default model and login url in gui
* Add get_session_from_browser as cloudflare bypassHeiner Lohaus2023-12-0212-187/+50
|
* Add proxy support / fix streamingHeiner Lohaus2023-12-021-15/+13
|
* Update pi providerHeiner Lohaus2023-12-013-114/+96
|
* Added new provider PI (Hacky way to use) (#1291)madonchik1232023-12-012-1/+113
| | | | | | | | | * 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
* ~abc2023-11-241-1/+1
| | | | chatgptx not working
* ~abc2023-11-242-59/+56
| | | | fix DeepInfra
* Fix ChatgptAi ProviderHeiner Lohaus2023-11-221-1/+2
|
* Add GptTalkRu ProviderHeiner Lohaus2023-11-222-0/+50
|
* Disable ChatgptDemoAi, ChatAnywhere and BerlinHeiner Lohaus2023-11-223-5/+6
|
* Fix Phind and GptGo ProviderHeiner Lohaus2023-11-225-131/+188
|
* ~ | g4f v-0.1.8.90.1.8.9abc2023-11-201-6/+10
|
* ~ | improve compatibilityabc2023-11-2015-29/+65
|
* Merge branch 'main' into webdriverTekky2023-11-201-0/+15
|\
| * Fix tupo in GptGorazrab2023-11-201-2/+2
| |
* | Update AItianhu.pyH Lohaus2023-11-201-3/+4
| |
* | Update GptGo.pyH Lohaus2023-11-201-2/+3
| |
* | Add webdriver moduleHeiner Lohaus2023-11-2014-269/+219
| |
* | Add auto support params methodHeiner Lohaus2023-11-2026-355/+56
|/
* ~ |abc2023-11-205-12/+13
| | | | trying to improve compability with python versions < 3.8
* Merge pull request #1269 from hlohaus/anyTekky2023-11-1910-304/+442
|\ | | | | Add Response Handler to OpenaiChat
| * Add Response Handler to OpenaiChatHeiner Lohaus2023-11-1910-304/+442
| | | | | | | | | | | | Update Providers with WebDriver Add WebDriverSession helper Use native streaming in curl_cffi
* | Merge pull request #1267 from hlohaus/anyTekky2023-11-18200-29099/+443
|\| | | | | Add AiChatOnline, ChatgptDemoAi, ChatgptNext Providers
| * Add AiChatOnline, ChatgptDemoAi, ChatgptNext ProvidersHeiner Lohaus2023-11-18200-29099/+443
| | | | | | | | | | | | Add OnlineGpt and TalkAi Provider Add get_random_string and get_random_hex helper Remove funcaptcha package
* | Merge pull request #1264 from hlohaus/anyTekky2023-11-186-96/+231
|\| | | | | Improve providers
| * Improve providersHeiner Lohaus2023-11-176-96/+231
| |
* | Merge pull request #1262 from hlohaus/anyTekky2023-11-177-97/+32
|\| | | | | Update Readme / Headless Mode
| * Remove virtualdisplay and add headless modeHeiner Lohaus2023-11-177-97/+32
| |
* | Merge pull request #1261 from hlohaus/anyH Lohaus2023-11-175-86/+249
|\| | | | | Add Poe Provider, Update AItianhuSpace Porvider
| * Add Poe Provider, Update AItianhuSpace PorviderHeiner Lohaus2023-11-175-86/+249
| |
* | Merge pull request #1260 from hlohaus/anyTekky2023-11-1610-465/+501
|\| | | | | Update Phind and PerplexityAi - GPT-4 Providers
| * Update Liaobots.pyH Lohaus2023-11-161-1/+1
| |
| * Update MyShell.pyH Lohaus2023-11-161-5/+5
| |
| * Update Bard.pyH Lohaus2023-11-161-12/+7
| |
| * Update Phind.pyH Lohaus2023-11-161-4/+11
| |
| * Update Phind.pyH Lohaus2023-11-161-5/+6
| |
| * Update MyShell.pyH Lohaus2023-11-161-2/+7
| |
| * Update MyShell.pyH Lohaus2023-11-161-10/+6
| |
| * Update PerplexityAi.pyH Lohaus2023-11-161-10/+9
| |
| * Update helper.pyH Lohaus2023-11-161-8/+8
| |
| * Update Phind.pyH Lohaus2023-11-161-9/+4
| |
| * Update helper.pyH Lohaus2023-11-161-0/+1
| |
| * Update helper.pyH Lohaus2023-11-161-1/+6
| |
| * Fix Bard ProviderHeiner Lohaus2023-11-162-79/+85
| |
| * Fix Phind and PerplexityAi - GPT-4 ProvidersHeiner Lohaus2023-11-168-393/+419
| | | | | | | | | | | | | | Fix MyShell Provider Refactor Provider __init__ Add ChatAnywhere Provider Update models list
* | Merge pull request #1258 from AndPim4912/chatbaseH Lohaus2023-11-161-0/+5
|\ \ | | | | | | Add back crutch of incorrect responses to ChatBase
| * | Add back crutch of incorrect responses to ChatBaserazrab2023-11-161-0/+5
| |/
* / fix: GPTalk can only use 5 times (#1255)hs_junxiang2023-11-161-1/+4
|/
* Update OpenaiChat.pyH Lohaus2023-11-151-0/+1
|
* Fix Chatgpt4Online ProviderHeiner Lohaus2023-11-1311-45/+47
|
* Add Berlin and Koala ProviderHeiner Lohaus2023-11-123-0/+155
|
* Add auto_continue to OpenaiChatHeiner Lohaus2023-11-122-45/+70
| | | | Update readme provider tables
* Add py_arkose_generator in OpenaiChatHeiner Lohaus2023-11-111-48/+12
|
* fix: no module named 'flask' (#1216)hs_junxiang2023-11-071-1/+1
|
* Merge pull request #1207 from hlohaus/winH Lohaus2023-11-051-12/+26
|\ | | | | Fix NotImplementedError on WIn
| * Add exec_js helper defHeiner Lohaus2023-11-031-21/+25
| |
| * Fix NotImplementedError on WInHeiner Lohaus2023-11-031-0/+10
| |
* | Update Bing.py - Removed unnecessary "await" statements that could potentially lead to errorsLuneye2023-11-041-2/+2
|/
* Merge pull request #1181 from hlohaus/arkoseH Lohaus2023-10-291-3/+10
|\ | | | | Use asyncio subprocess in OpenaiChat
| * Use asyncio subprocess in OpenaiChatHeiner Lohaus2023-10-281-3/+10
| |
* | Update ChatBase.py - Added jailbreak (enabled by default), Removed list incorrect responsesLuneye2023-10-291-10/+14
|/
* Add arkose_token to OpenaiChatHeiner Lohaus2023-10-28178-15/+29503
|
* Update config supports_message_historyHeiner Lohaus2023-10-2727-47/+56
|
* Add Llama2 Providers / ModelsHeiner Lohaus2023-10-263-9/+74
|
* Merge pull request #1153 from AndPim4912/ChatBase-incorrect-responsesTekky2023-10-251-2/+2
|\ | | | | Extract keywords from incorrect responses
| * Extract keywords from incorrect responsesrazrab2023-10-251-3/+3
| | | | | | | | The text of error responses is dynamically created by LLM. Need determine by keywords for more precise identification.
* | Merge pull request #1149 from Luneye/patch-4Tekky2023-10-2511-7/+18
|\ \ | |/ |/| [suggestion] Adding new parameter to check if a provider 'natively' supports mesage history
| * Indicated support of message history in GptForLove.pyLuneye2023-10-241-0/+1
| |
| * Indicated support of message history in Bing.pyLuneye2023-10-241-0/+1
| |
| * Indicated support of message history in ChatBase.pyLuneye2023-10-241-1/+2
| |
| * Indicated support of message history in FreeGpt.pyLuneye2023-10-241-0/+1
| |
| * Indicated support of message history in GPTalk.pyLuneye2023-10-241-1/+2
| |
| * Indicated support of message history in Yqcloud.pyLuneye2023-10-241-0/+1
| |
| * Indicated support of message history in You.pyLuneye2023-10-241-1/+2
| |
| * Indicated support of message history in FakeGpt.pyLuneye2023-10-241-1/+2
| |
| * Indicated support of message history in ChatForAi.pyLuneye2023-10-241-1/+2
| |
| * Indicated support of message history in ChatgptX.pyLuneye2023-10-241-1/+2
| |
| * [suggestion] Adding new parameter to check if provider supports message historyLuneye2023-10-241-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.
* | Merge pull request #1146 from AndPim4912/GetGpt-debian-compatTekky2023-10-241-1/+4
|\ \ | | | | | | Update GetGpt provider for Debian python3-pycryptodome compatibility
| * | Update GetGpt provider for Debian python3-pycryptodome compatibilityrazrab2023-10-241-1/+4
| |/ | | | | | | Try to import AES from Cryptodome.Cipher if Crypto.Cipher caused error.
* | Merge pull request #1145 from AndPim4912/chatbase-invalid-responseTekky2023-10-241-0/+7
|\ \ | | | | | | Add support for detecting incorrect responses in ChatBase API requests.
| * | Add support for detecting incorrect responses in ChatBase API requests.razrab2023-10-241-0/+7
| |/
* / Update MyShell.pyHeiner Lohaus2023-10-241-0/+1
|/
* Update FreeGpt.pyShubh Gajjar2023-10-241-2/+2
| | | Changed older domain url with the working new url
* Bugfix Bing.py - Resolved Issues with system prompt, Bing personalities and enabled all supported user requestsLuneye2023-10-231-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.
* 'Refactored by Sourcery' (#1125)ⲘrṨhส∂ow2023-10-2337-358/+364
| | | Co-authored-by: Sourcery AI <>
* Merge pull request #1124 from hlohaus/fakeTekky2023-10-225-44/+65
|\ | | | | Improve helper
| * Debug logging supportHeiner Lohaus2023-10-224-34/+44
| | | | | | | | Async browse access token
| * Improve get_cookies helperHeiner Lohaus2023-10-222-14/+25
| |
* | Merge pull request #1122 from Luneye/patch-2Tekky2023-10-221-42/+222
|\ \ | |/ |/| Major Update for Bing - Supports latest bundle version and image analysis
| * Major Update for Bing - Supports latest bundle version and image analysisLuneye2023-10-221-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!
* | Fix ChatgptAi ProviderHeiner Lohaus2023-10-222-39/+47
| |
* | Add rate limit error messagesHeiner Lohaus2023-10-222-1/+6
| |
* | Fix increase timeoutHeiner Lohaus2023-10-226-54/+94
| | | | | | | | | | Add Hashnode Provider Fix Yqcloud Provider
* | Enable Liaobots and ChatForAi againHeiner Lohaus2023-10-222-3/+3
| |
* | Fix MyShell ProviderHeiner Lohaus2023-10-229-23/+115
| |
* | Add FakeGpt ProviderHeiner Lohaus2023-10-222-0/+97
|/ | | | Update providers in models
* ~ | g4f `v-0.1.7.2`abc2023-10-2116-123/+175
| | | | patch / unpatch providers
* ~abc2023-10-201-0/+3
| | | | minor changes
* ~abc2023-10-191-60/+72
| | | | automatic models fetching in GUI.
* Fix: debug.logging not work in retry providerhs_junxiang2023-10-191-6/+5
|
* Add timeoutostix3602023-10-171-1/+6
|
* ~ | add `g4f.Provider.GeekGpt`abc2023-10-162-1/+85
|
* ~ | remove non-working providersabc2023-10-1611-32/+107
|
* Add Llama2 and NoowAi ProviderHeiner Lohaus2023-10-156-7/+153
|
* ~ | Merge pull request #1068 from hlohaus/freTekky2023-10-1410-101/+116
|\ | | | | Fix Opchatgpts and ChatForAi Provider
| * Fix Opchatgpts and ChatForAi ProviderHeiner Lohaus2023-10-1410-101/+116
| | | | | | | | Deprecate Vitalentum and Aivvm Provider
* | ~abc2023-10-142-13/+11
|/ | | | fix chatbase (bad) and remove from auto selection
* Deprecate ChatForAiHeiner Lohaus2023-10-123-5/+6
|
* Add ChatgptLogin, ChatgptFree and GptChatly ProviderHeiner Lohaus2023-10-1210-80/+391
|
* Fix: GptGo json.decoder.JSONDecodeErrorhs_junxiang2023-10-121-0/+2
|
* ~ | g4f v-0.1.6.1abc2023-10-112-2/+2
| | | | some bug fixes
* ~ | remove DeepAiabc2023-10-102-83/+0
|
* ~ | g4f `v-0.1.5.8`0.1.5.8abc2023-10-101-1/+1
|
* ~ | Merge pull request #1029 from hlohaus/dieTekky2023-10-109-35/+32
|\ | | | | Some small fixes
| * Some small fixesHeiner Lohaus2023-10-109-35/+32
| |
* | make user agent easily changeable in deepaiCommenter1233212023-10-101-2/+3
| |
* | fix deepai :)Commenter1233212023-10-101-18/+17
| |
* | remove unused import in Bing.pyCommenter1233212023-10-101-1/+0
| |
* | Aivvm is the best provider no capCommenter1233212023-10-101-3/+6
| |
* | Merge remote-tracking branch 'origin/main'Commenter1233212023-10-1034-138/+252
|\ \ | | | | | | | | | | | | | | | # Conflicts: # g4f/Provider/Aivvm.py # g4f/models.py
| * | Update Aivvm.pyCommenter1233212023-10-101-3/+3
| |/
| * ~abc2023-10-101-0/+62
| | | | | | | | Conversion from str Provider to g4f.Provider
| * Add Proxy Support and Create Provider to ReadmeHeiner Lohaus2023-10-097-41/+57
| | | | | | | | Add proxy support to many providers
| * Add proxy support to all providersHeiner Lohaus2023-10-0928-102/+144
| |
* | add cool testing for gpt-3.5 and and gpt-4Commenter1233212023-10-092-20/+27
| |
* | Merge remote-tracking branch 'origin/main'Commenter1233212023-10-0960-516/+7991
|\| | | | | | | | | # Conflicts: # g4f/Provider/Aivvm.py
| * Add Messages and AsyncResult typingHeiner Lohaus2023-10-085-31/+42
| | | | | | | | Add system_message in Yqcloud
| * Add Cromicle to provider listHeiner Lohaus2023-10-085-27/+62
| |
| * ~ | `v-0.1.5.5`abc2023-10-073-5/+10
| | | | | | | | Aiivm working again
| * Remove Aivvm from working providersHeiner Lohaus2023-10-073-7/+5
| |
| * Improve code with aiHeiner Lohaus2023-10-071-9/+16
| |
| * Improve code by AIHeiner Lohaus2023-10-072-25/+27
| |
| * Add GptGod ProviderHeiner Lohaus2023-10-0713-28/+73
| | | | | | | | | | Remove timeout from aiohttp providers Disable Opchatgpts and ChatgptLogin provider
| * Add GPTalk and GptForLove ProviderHeiner Lohaus2023-10-075-0/+6618
| |
| * Fix timeout in create_asyncHeiner Lohaus2023-10-069-30/+17
| |
| * ~abc2023-10-061-2/+4
| |
| * Fix: TypeError: 'type' object is not subscriptablehs_junxiang2023-10-062-0/+8
| |
| * Merge branch 'main' into bomTekky2023-10-051-0/+50
| |\
| | * Update Cromicle.pyHexye2023-10-041-2/+2
| | |
| | * Create Cromicle.pyHexye2023-10-041-0/+50
| | |
| * | Add AiAsk, Chatgpt4Online, ChatgptDemoHeiner Lohaus2023-10-0530-163/+578
| |/ | | | | | | | | | | and ChatgptX Provider Fix Bing, Liaobots and ChatgptAi Provider Add "gpt_35_long" model and custom timeout
| * ~ | g4f v-0.1.4.8 - Fixed `g4f.Provider.Bing`abc2023-10-041-8/+34
| | | | | | | | implemented new "X-Sydney-EncryptedConversationSignature" found in headers from "turing/conversation/create"
| * ~ | Merge pull request #982 from hlohaus/fetchTekky2023-10-0427-97/+102
| |\ | | | | | | Fix fetch_access_token in openai
| | * Sort providers in new dirsHeiner Lohaus2023-10-0426-61/+70
| | |
| | * Use custom user dirHeiner Lohaus2023-10-042-26/+16
| | |
| | * Fix fetch_access_token in openaiHeiner Lohaus2023-10-031-10/+16
| | |
| * | Merge pull request #975 from hlohaus/mmmTekky2023-10-033-57/+120
| |\| | | | | | | Bing Updates:
| | * Add streaming in openai chatHeiner Lohaus2023-10-032-24/+75
| | | | | | | | | | | | Fetch access token with chromedriver
| | * Bing Updates:Heiner Lohaus2023-10-021-33/+45
| | | | | | | | | | | | | | | | | | Add retry create conversation Removed get_cookies fallback Add creative tone parameter
| * | Merge pull request #971 from Giancarlo-Ma/mainTekky2023-10-021-0/+1
| |\ \ | | |/ | |/| feat: allow to add custom header to deepai
| | * feat: add custom header to deepaiGiancarlo-Ma2023-10-021-0/+1
| | |
| * | Add Phind ProviderHeiner Lohaus2023-10-023-9/+91
| |/ | | | | | | | | Add release_curl in url_cffi requets Support create image response in Bing
| * ~ | Merge pull request #968 from st4rted/patch-1Tekky2023-10-021-2/+2
| |\ | | | | | | fix typo in payload
| | * fix typo in payloadst4rted2023-10-021-2/+2
| | |
| * | Fix: There is no current event loop in threadHeiner Lohaus2023-10-024-15/+34
| | |
| * | Remove fake_useragent moduleHeiner Lohaus2023-10-021-4/+0
| | |
| * | +Curl +Async +Stream RequestsHeiner Lohaus2023-10-027-32/+33
| | | | | | | | | | | | Update Model List
| * | Change event loop policy on windowsHeiner Lohaus2023-10-011-2/+9
| | | | | | | | | | | | Support more versions from curl_cffi
| * | Disable Wewordle ProviderHeiner Lohaus2023-10-012-9/+3
| | | | | | | | | | | | | | | Update Ylokh Provider Improve StreamRequest
| * | Disable PerplexityAi ProviderHeiner Lohaus2023-10-012-2/+2
| | |
| * | Update HuggingChat to new apiHeiner Lohaus2023-10-018-91/+183
| |/ | | | | | | | | | | | | | | Impersonate Aivvm Provider Add ChatForAi and FreeGpt Provider Update AItianhuSpace Provider Improve StreamRequest Support Update get_event_loop Helper
* / aivvm's no life creator keeps patching it, but I'm just better 😉Commenter1233212023-10-011-3/+4
|/
* Fix Aivvm and add new models in models.pyCommenter1233212023-09-291-16/+15
|
* Add ChatgptDuo and Aibn ProviderHeiner Lohaus2023-09-267-75/+191
| | | | | | Add support for "nest_asyncio", Reuse event_loops with event_loop_policy Support for "create_async" with synchron provider
* AItianhuSpace Provider with GPT 4 addedHeiner Lohaus2023-09-262-15/+46
| | | | Reduced chunksize to better text completion
* "create_async" support for BaseProvider,Heiner Lohaus2023-09-263-2/+78
| | | | | by using ThreadPoolExecutor Default Model for Vercel
* Add Myshell ProviderHeiner Lohaus2023-09-255-17/+181
| | | | Remove auto proxy prefix
* Fix: Aivvm: KeyError: ''Heiner Lohaus2023-09-231-3/+9
| | | | and TypeError: issubclass() arg 1 must be a class
* ~ | improve Vercel & g4f.Completion.createabc2023-09-231-1/+1
|
* ~ | improve Vercel & g4f.Completion.createabc2023-09-231-2/+6
| | | | | | | | | | | added `.Completion.create` class. ```py response = g4f.Completion.create( model='text-davinci-003', prompt="Hello") print(response) ```
* ~abc2023-09-231-0/+369
|
* Delete g4f/Provider/Vercel.pyTekky2023-09-231-387/+0
|
* Improve Vercel Provider:Heiner Lohaus2023-09-233-45/+62
| | | | | | | - Fix endless loop - Add proxy, async support - Add default model Fix HuggingChat Provider
* ~ | Update Vercel Providerabc2023-09-231-227/+307
|
* ~ | new providersabc2023-09-232-59/+50
| | | | | | Somwhat fix Aivvm provider, which looks to have a working gpt-4 kinda unstable
* ~ | Fix DeepAiabc2023-09-231-1/+1
|
* Add RetryProviderHeiner Lohaus2023-09-212-1/+86
|
* Fix create_event_loop functionHeiner Lohaus2023-09-203-10/+100
| | | | Add PerplexityAi Provider
* Improve code style in async supportHeiner Lohaus2023-09-201-10/+22
|
* Add "create_event_loop" helperHeiner Lohaus2023-09-201-9/+13
|
* Add check_running_loop requirementHeiner Lohaus2023-09-201-5/+18
| | | | | Add create_async function in ChatCompletion Use SelectorEventLoop on windows
* Cache "snlm0e" in BardHeiner Lohaus2023-09-207-25/+42
| | | | | Improve error handling in ChatgptLogin Fix async example in readme
* ~ | Merge pull request #914 from hlohaus/leshTekky2023-09-195-83/+142
|\ | | | | ~ | Add GptGo Provider, Fix AItianhu Provider
| * Improve event loopHeiner Lohaus2023-09-182-42/+44
| |
| * Add GptGo Provider, Fix AItianhu ProviderHeiner Lohaus2023-09-183-41/+98
| |
| * ~Tekky2023-09-171-353/+0
| |
* | ~abc2023-09-191-64/+2
|/
* Revert "Fix type hint"Tekky2023-09-1725-25/+25
|
* fix typo: provider -> ProviderMIDORIBIN2023-09-1625-25/+25
|
* Disable not working providers:Heiner Lohaus2023-09-125-14/+9
| | | | | | EasyChat, Equing, GetGpt, Liaobots and Wuguokai No and random best provider for a model Update providers in Readme
* Add new providers: Aivvm, Vitalentum and YlokhHeiner Lohaus2023-09-127-25/+251
|
* Add ChatBase ProviderHeiner Lohaus2023-09-102-0/+64
|
* Add CodeLinkAva Provider, Improve test_async.pyHeiner Lohaus2023-09-094-2/+67
|
* Fix imports in BingHeiner Lohaus2023-09-051-16/+7
|
* Add to many provider async and stream support, Fix Ails, AItianhu, ChatgptAi, ChatgptLogin Provider, Add fallback cookies to Bing, Improve OpenaiChat ProviderHeiner Lohaus2023-09-0517-528/+443
|
* ~ | Merge pull request #876 from Lin-jun-xiang/join_messagesTekky2023-09-057-29/+14
|\ | | | | ~ | Following PEP8, use `.join()` to process `messages`
| * Join the messageshs_junxiang2023-09-047-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.
* | type hintsmsi-JunXiang2023-09-0333-45/+174
|/ | | | | | | | | | 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
* Set working=True in Liaobots, Fix bing provider, Update readmeHeiner Lohaus2023-09-014-24/+6
|
* ~ | v-0.0.2.6abc2023-08-281-25/+25
|
* Merge branch 'main' into huggingTekky2023-08-281-28/+64
|\
| * Merge branch 'main' into patch-1Luneye2023-08-2830-792/+699
| |\
| * | Update Bing.pyLuneye2023-08-281-7/+7
| | | | | | | | | Fixed some errors in my previously precipitated commit.
| * | Update Bing.pyLuneye2023-08-281-53/+45
| | | | | | | | | | | | | | | Added support the async function Will implement proper cookie retrieval later but Bing is working for now
| * | Update Bing.py Luneye2023-08-271-46/+76
| | | | | | | | | Removed unnecessary check that could prematurely stop the AI's response while answering
* | | Add async support for H2oHeiner Lohaus2023-08-2812-311/+461
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | 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
* | ~ | code stylingabc2023-08-2730-790/+695
|/
* Merge branch 'main' into upTekky2023-08-2511-297/+516
|\
| * ~ | Merge pull request #839Tekky2023-08-252-0/+67
| |\ | | | | | | Wuguokai
| | * Merge branch 'main' of https://github.com/bagusindrayana/gpt4free into mainBagus Indrayana2023-08-2413-179/+292
| | |\
| | * | add providerBagus Indrayana2023-08-172-1/+68
| | | |
| * | | ~ | Merge pull request #838 Tekky2023-08-251-3/+5
| |\ \ \ | | | | | | | | | | fix easychat stream : remove whitspace from data: and raise exception
| | * | | remove whitspace from data: and raise exceptionBagus Indrayana2023-08-241-3/+5
| | | |/ | | |/|
| * | | ~| Merge pull request #834Tekky2023-08-253-6/+14
| |\ \ \ | | | | | | | | | | fix Yqcloud and You prompter using only the last message
| | * | | Ails Supplementary Identification of Unusual Response Contentzengrr2023-08-251-1/+1
| | | | |
| | * | | Ails throw the contents of an error responsezengrr2023-08-231-0/+2
| | | | |
| | * | | fix Yqcloud's prompter using only the last messagezengrr2023-08-231-1/+4
| | | | |
| | * | | "You" unicode decode and fix prompt just is last messagezengrr2023-08-231-5/+8
| | |/ /
| * | | Merge pull request #833 from hlohaus/bingTekky2023-08-256-288/+430
| |\ \ \ | | |/ / | |/| | Fix bing provider
| | * | Add OpenaiChat and Hugchat ProviderHeiner Lohaus2023-08-256-79/+259
| | | | | | | | | | | | | | | | | | | | | | | | Add tests for providers with auth Improve async support / 2x faster Shared get_cookies by domain function
| | * | Add create_async methodHeiner Lohaus2023-08-231-19/+39
| | | |
| | * | Fix bing providerHeiner Lohaus2023-08-211-261/+203
| | | |
* | | | Improve provider listHeiner Lohaus2023-08-245-11/+11
| | | |
* | | | Improve providers with testsHeiner Lohaus2023-08-226-20/+18
|/ / /
* | | ~ | Merge pull request #8290.0.2.4Tekky2023-08-221-8/+9
|\ \ \ | | | | | | | | Update link for provider ChatgptLogin
| * | | change linkBagus Indrayana2023-08-201-8/+9
| |/ /
* | | ~ | Merge pull request #828Tekky2023-08-221-15/+72
|\ \ \ | | | | | | | | fix theb but need auth
| * | | fix theb but need authBagus Indrayana2023-08-201-15/+72
| |/ /
* | | ~ | Merge pull request #827Tekky2023-08-221-9/+30
|\ \ \ | | | | | | | | update header & response easychat
| * | | update header & response easychatBagus Indrayana2023-08-201-9/+30
| |/ /
* | | fix Equing response error with no streamzengrr2023-08-221-0/+3
| | |
* | | set encoding and temperaturezengrr2023-08-223-5/+10
|/ /
* | ~ Merge pull request #816Tekky2023-08-204-74/+101
|\ \ | | | | | | add V50 Provider & refactor Raycast (need testing with auth)
| * | another mergeBagus Indrayana2023-08-174-2/+163
| |\|
| * | refactor V50 and RaycastBagus Indrayana2023-08-172-85/+123
| | |
| * | merge and refactorBagus Indrayana2023-08-1756-2097/+2264
| |\ \
| * | | add proxy and remove streamBagus Indrayana2023-08-171-1/+1
| | | |
| * | | add v50Bagus Indrayana2023-08-172-0/+44
| | | |
* | | | ~ | Merge pull request #808Tekky2023-08-201-69/+67
|\ \ \ \ | | | | | | | | | | Fix bard provider
| * | | | Fix bard provider, add async supportHeiner Lohaus2023-08-181-69/+67
| | |_|/ | |/| |
* | | | Update Yqcloud.pyMaxKUlish12023-08-171-0/+1
| | | | | | | | | | | | # specify the correct encoding forcibly
* | | | Update Yqcloud.pyMaxKUlish12023-08-171-1/+0
| | | |
* | | | Update Yqcloud.pyMaxKUlish12023-08-171-0/+1
|/ / / | | | | | | # specify the correct encoding forcibly
* | / ~ | major refractoring + new providers | v0.0.2.0abc2023-08-174-1/+162
| |/ |/| | | | | | | | | g4f.Provider.FastGpt & g4f.Provider.Equing gpt-3.5-turbo-0613
* | ~ | major refractoring | v0.0.2.0abc2023-08-172-4/+4
| |
* | refactor: refactor providerMIDORIBIN2023-08-1455-2095/+2317
|/
* small fixes & new pypi versionabc2023-08-141-0/+110
|
* Merge pull request #801 from johnd0e/fix-ailsxtekky2023-08-141-1/+1
|\ | | | | Fix Ails.py
| * Fix Ails.pyjohnd0e2023-08-141-1/+1
| | | | | | Fix arguments order
* | Merge pull request #794 from ye4241/mainxtekky2023-08-142-0/+51
|\ \ | | | | | | Add Raycast Provider
| * | Add Raycast Providerye42412023-08-092-0/+51
| |/
* | Update EasyChat.pyomidima2023-08-121-10/+9
| | | | | | Resolve review comments.
* | Update EasyChat.pyomidima2023-08-111-1/+8
| | | | | | update active servers
* | Update EasyChat.pyomidima2023-08-081-16/+17
|/ | | Change model address and add proxy & session for pass cloudflare auth on requests.
* Merge pull request #693 from ramonvc/mainxtekky2023-08-071-12/+13
|\ | | | | Fix: There is no current event loop in thread.
| * Fix: There is no current event loop in thread.Ramon Victor Cardoso2023-06-271-12/+13
| |
* | Merge pull request #790 from VastV2/Ails-Updatextekky2023-08-071-3/+5
|\ \ | | | | | | Update Ails.py
| * | Update Ails.pyVastV22023-08-051-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.
* | | Merge pull request #788 from omidima/main-1xtekky2023-08-071-26/+52
|\ \ \ | | | | | | | | Update DeepAi.py
| * | | Update DeepAi.pyomidima2023-08-051-26/+52
| |/ /
* | | Update __init__.pykggn2023-08-011-1/+1
| | |
* | | Update __init__.pykggn2023-08-011-0/+1
| | |
* | | Create opchatgpts.pykggn2023-08-011-0/+42
|/ /
* | Update Vercel.pyabc2023-07-241-109/+8
| |
* | Use the temperature parametergrandsonneo@gmail.com2023-07-226-13/+13
| |
* | Merge pull request #768 from nonk123/mainxtekky2023-07-211-0/+0
|\ \ | | | | | | Fix the import errors
| * | Fix the import errorsnonk1232023-07-211-0/+0
| | |
* | | Update Provider.DfeHub to consider rate-limitnajam-tariq2023-07-191-1/+9
|/ /
* | Merge branch 'main' of https://github.com/xtekky/gpt4freeabc2023-07-181-1/+1
|\ \
| * | Rename DFEHub.py to DfeHub.pyxtekky2023-07-181-1/+1
| | |
* | | .abc2023-07-181-1/+1
|/ /
* | minor fixesabc2023-07-1625-63/+101
| |
* | minor fixesabc2023-07-164-5/+4
| | | | | | | | ails, chatgptai ...
* | refactor/move provider from testing folderBagus Indrayana2023-07-125-0/+364
| |
* | Add files via uploadAlephZero2552023-07-101-105/+93
| | | | | | Fix empty H2o output
* | some more providersnajam-tariq2023-07-055-1/+169
| |
* | fix subDomain of LockChatLê Anh Tuấn2023-06-291-2/+2
|/
* gpt4free v2, first releasev2t.me/xtekky2023-06-2420-0/+1442