Commit Graph

76 Commits

Author SHA1 Message Date
abc
32d5536450 ~ | g4f v-0.1.3.9 2023-09-27 18:55:58 +01:00
abc
be293e7af7 ~ | g4f v-0.1.3.8 2023-09-27 18:53:01 +01:00
abc
c753894705 ~ | v-0.1.3.7 2023-09-26 14:15:32 +01:00
abc
cc3f0bce72 ~ | add version (g4f.version) 2023-09-26 14:13:58 +01:00
Heiner Lohaus
3c2755bc72 Add ChatgptDuo and Aibn Provider
Add support for "nest_asyncio",
Reuse event_loops with event_loop_policy
Support for  "create_async" with synchron provider
2023-09-26 10:03:37 +02:00
Heiner Lohaus
fd5c33efb8 TypeError: issubclass() arg 1 must be a class 2023-09-23 17:10:25 +02:00
abc
6c2e3cc53c ~ | improve Vercel & g4f.Completion.create
added `.Completion.create` class.

```py
response = g4f.Completion.create(
    model='text-davinci-003', prompt="Hello")

print(response)
```
2023-09-23 11:16:19 +01:00
Heiner Lohaus
a3ecabb00e Improve Vercel Provider:
- Fix endless loop
 - Add proxy, async support
 - Add default model
 Fix HuggingChat Provider
2023-09-23 11:42:30 +02:00
Heiner Lohaus
e9f96ced9c Add RetryProvider 2023-09-21 20:10:59 +02:00
Heiner Lohaus
55577031d5 Add check_running_loop requirement
Add create_async function in ChatCompletion
Use SelectorEventLoop on windows
2023-09-20 14:52:50 +02:00
Heiner Lohaus
78bee08527 Check supports_stream in best_providers list 2023-09-18 15:27:36 +02:00
abc
8f48c41562 ~ 2023-09-17 22:27:48 +01:00
abc
54f4f3904e Merge branch 'main' of https://github.com/xtekky/gpt4free 2023-09-17 22:24:22 +01:00
abc
f34012a98b Update __init__.py 2023-09-17 22:24:15 +01:00
Tekky
78bfbe717d
Revert "Fix type hint" 2023-09-17 22:23:54 +01:00
MIDORIBIN
51cfcde2b3 fix type hint 2023-09-16 10:33:03 +09:00
Heiner Lohaus
618addd001 Disable not working providers:
EasyChat, Equing, GetGpt, Liaobots and Wuguokai
No and random best provider for a model
Update providers in Readme
2023-09-12 04:40:10 +02:00
msi-JunXiang
901595b10f type hints
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-03 16:26:26 +08:00
abc
efd75a11b8 ~ | code styling 2023-08-27 17:37:44 +02:00
abc
6d96a1efd2 ~ | major refractoring | v0.0.2.0 2023-08-17 14:57:37 +02:00
MIDORIBIN
f6ef3cb223 refactor: refactor provider 2023-08-14 11:46:32 +09:00
abc
cfa4380e89 ~ | small fixes & new pypi version | v-0.0.1.9 2023-08-14 01:07:29 +02:00
abc
d53fc931a3 small fixes & new pypi version 2023-08-14 01:02:01 +02:00
MIDORIBIN
6dd8a5a1f4 refactor: refactor models 2023-07-25 09:56:49 +09:00
abc
e946729736 minor fixes 2023-07-16 20:31:51 +01:00
t.me/xtekky
5db58fd87f gpt4free v2, first release 2023-06-24 03:47:00 +02:00