summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/base_provider.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* New minimum requirements (#1515)0.2.0.6H Lohaus2024-01-261-0/+1
| | | | | | | * New minimum requirements * Add ConversationStyleOptionSets to Bing * Add image.ImageRequest * Improve python version support * Improve unittests
* Add ProviderModelMixin for model selectionHeiner Lohaus2024-01-231-2/+21
|
* Improve testsHeiner Lohaus2024-01-211-18/+23
|
* Remove usage of get_event_loop helperHeiner Lohaus2024-01-201-9/+21
|
* Change doctypes style to GoogleHeiner Lohaus2024-01-141-0/+71
| | | | | | Fix typo in latest_version Fix Phind Provider Add unittest worklow and main tests
* Refactor code with AIHeiner Lohaus2024-01-141-65/+62
| | | | | | | Add doctypes to many functions Add file upload for text files Add alternative url to FreeChatgpt Add webp to allowed image types
* Support upload image in guiHeiner Lohaus2024-01-131-4/+3
| | | | | | | Add image upload to OpenaiChat Add image response to OpenaiChat Improve ChatGPT Plus Support Remove unused requirements
* Add support for all modelsHeiner Lohaus2024-01-011-27/+21
| | | | | | | | | 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
* Patch event loop on win, Check event loop closedHeiner Lohaus2024-01-011-0/+7
|
* ~abc2023-11-241-2/+1
| | | | fix DeepInfra
* ~ | g4f v-0.1.8.90.1.8.9abc2023-11-201-6/+10
|
* Add auto support params methodHeiner Lohaus2023-11-201-8/+35
|
* [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.
* Some small fixesHeiner Lohaus2023-10-101-9/+9
|
* Improve code by AIHeiner Lohaus2023-10-071-9/+11
|
* Add ChatgptDuo and Aibn ProviderHeiner Lohaus2023-09-261-73/+29
| | | | | | 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-261-2/+29
| | | | Reduced chunksize to better text completion
* Improve Vercel Provider:Heiner Lohaus2023-09-231-2/+1
| | | | | | | - Fix endless loop - Add proxy, async support - Add default model Fix HuggingChat Provider
* Fix create_event_loop functionHeiner Lohaus2023-09-201-10/+11
| | | | 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
* Improve event loopHeiner Lohaus2023-09-181-41/+40
|
* Revert "Fix type hint"Tekky2023-09-171-1/+1
|
* fix typo: provider -> ProviderMIDORIBIN2023-09-161-1/+1
|
* Add to many provider async and stream support, Fix Ails, AItianhu, ChatgptAi, ChatgptLogin Provider, Add fallback cookies to Bing, Improve OpenaiChat ProviderHeiner Lohaus2023-09-051-4/+7
|
* type hintsmsi-JunXiang2023-09-031-3/+5
| | | | | | | | | | 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
* Add async support for H2oHeiner Lohaus2023-08-281-13/+23
| | | | | | | | | | | | | 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-271-22/+18
|
* Add OpenaiChat and Hugchat ProviderHeiner Lohaus2023-08-251-2/+83
| | | | | | Add tests for providers with auth Improve async support / 2x faster Shared get_cookies by domain function
* ~ | major refractoring + new providers | v0.0.2.0abc2023-08-171-1/+1
| | | | | | g4f.Provider.FastGpt & g4f.Provider.Equing gpt-3.5-turbo-0613
* refactor: refactor providerMIDORIBIN2023-08-141-0/+33