Tekky
c915050ac7
Merge pull request #971 from Giancarlo-Ma/main
...
feat: allow to add custom header to deepai
2023-10-02 18:56:00 +02:00
Heiner Lohaus
ff4d9ae584
Add Phind Provider
...
Add release_curl in url_cffi requets
Support create image response in Bing
2023-10-02 17:01:15 +02:00
Giancarlo-Ma
ba7d5015dc
feat: add custom header to deepai
2023-10-02 21:47:21 +08:00
Tekky
c9e4c9ce00
~ | Merge pull request #968 from st4rted/patch-1
...
fix typo in payload
2023-10-02 12:20:37 +02:00
Heiner Lohaus
d116f04322
Fix: There is no current event loop in thread
2023-10-02 06:47:07 +02:00
Heiner Lohaus
2dbeb54608
Remove fake_useragent module
2023-10-02 02:06:33 +02:00
Heiner Lohaus
eb0e2c6a93
+Curl +Async +Stream Requests
...
Update Model List
2023-10-02 02:04:22 +02:00
st4rted
3485e357ac
fix typo in payload
2023-10-01 19:55:27 -04:00
Heiner Lohaus
7b9ad21de8
Change event loop policy on windows
...
Support more versions from curl_cffi
2023-10-01 20:29:57 +02:00
Heiner Lohaus
bb481a03ab
Disable Wewordle Provider
...
Update Ylokh Provider
Improve StreamRequest
2023-10-01 10:36:09 +02:00
Heiner Lohaus
261fac86dc
Disable PerplexityAi Provider
2023-10-01 06:41:00 +02:00
Heiner Lohaus
98895e5b09
Update HuggingChat to new api
...
Impersonate Aivvm Provider
Add ChatForAi and FreeGpt Provider
Update AItianhuSpace Provider
Improve StreamRequest Support
Update get_event_loop Helper
2023-10-01 06:38:11 +02:00
Commenter123321
7181f2897b
Fix Aivvm and add new models in models.py
2023-09-29 16:21:18 +02: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
72c3ff7a25
AItianhuSpace Provider with GPT 4 added
...
Reduced chunksize to better text completion
2023-09-26 01:02:02 +02:00
Heiner Lohaus
348670fe35
"create_async" support for BaseProvider,
...
by using ThreadPoolExecutor
Default Model for Vercel
2023-09-26 00:52:29 +02:00
Heiner Lohaus
f1b6880f7e
Add Myshell Provider
...
Remove auto proxy prefix
2023-09-25 15:52:19 +02:00
Heiner Lohaus
4edd7518de
Fix: Aivvm: KeyError: ''
...
and TypeError: issubclass() arg 1 must be a class
2023-09-23 15:35:17 +02:00
abc
bf78b4d033
~ | improve Vercel & g4f.Completion.create
2023-09-23 11:33:44 +01: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
abc
af9fc19938
~
2023-09-23 10:58:13 +01:00
Tekky
1215d30bf4
Delete g4f/Provider/Vercel.py
2023-09-23 10:54:38 +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
abc
d4acc23c0b
~ | Update Vercel Provider
2023-09-23 01:31:46 +01:00
abc
42a02c3d2d
~ | new providers
...
Somwhat fix Aivvm provider, which looks to have a working gpt-4
kinda unstable
2023-09-23 00:44:09 +01:00
abc
d320efd2ff
~ | Fix DeepAi
2023-09-22 23:48:39 +01:00
Heiner Lohaus
e9f96ced9c
Add RetryProvider
2023-09-21 20:10:59 +02:00
Heiner Lohaus
951a1332a7
Fix create_event_loop function
...
Add PerplexityAi Provider
2023-09-20 23:06:52 +02:00
Heiner Lohaus
f90741c10b
Improve code style in async support
2023-09-20 17:31:25 +02:00
Heiner Lohaus
587f4ad2c9
Add "create_event_loop" helper
2023-09-20 15:01:33 +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
82bd6f9180
Cache "snlm0e" in Bard
...
Improve error handling in ChatgptLogin
Fix async example in readme
2023-09-20 06:12:34 +02:00
Tekky
a54291cb7c
~ | Merge pull request #914 from hlohaus/lesh
...
~ | Add GptGo Provider, Fix AItianhu Provider
2023-09-18 23:54:28 +01:00
abc
bae9c432db
~
2023-09-18 23:50:47 +01:00
Heiner Lohaus
3b8dfff974
Improve event loop
2023-09-18 07:15:43 +02:00
Heiner Lohaus
e8d7bcd045
Add GptGo Provider, Fix AItianhu Provider
2023-09-18 03:21:12 +02:00
Tekky
73ec30a3f0
~
2023-09-17 22:51:22 +01:00
Tekky
78bfbe717d
Revert "Fix type hint"
2023-09-17 22:23:54 +01:00
MIDORIBIN
c6f2277906
fix typo: provider -> Provider
2023-09-16 10:36:47 +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
Heiner Lohaus
d6382a2145
Add new providers: Aivvm, Vitalentum and Ylokh
2023-09-12 00:47:03 +02:00
Heiner Lohaus
c2741a9a86
Add ChatBase Provider
2023-09-10 19:06:46 +02:00
Heiner Lohaus
ddb6fa30d9
Add CodeLinkAva Provider, Improve test_async.py
2023-09-09 23:07:00 +02:00
Heiner Lohaus
7a9b719573
Fix imports in Bing
2023-09-05 17:35:51 +02:00
Heiner Lohaus
5ca47b44b2
Add to many provider async and stream support, Fix Ails, AItianhu, ChatgptAi, ChatgptLogin Provider, Add fallback cookies to Bing, Improve OpenaiChat Provider
2023-09-05 17:27:24 +02:00
Tekky
ae9702ecf0
~ | Merge pull request #876 from Lin-jun-xiang/join_messages
...
~ | Following PEP8, use `.join()` to process `messages`
2023-09-05 14:26:08 +01:00
hs_junxiang
17c9adf485
Join the messages
...
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-04 13:41:22 +08: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
Heiner Lohaus
3e6b1d6bef
Set working=True in Liaobots, Fix bing provider, Update readme
2023-09-01 23:39:57 +02:00
abc
a4fe9907d6
~ | v-0.0.2.6
2023-08-28 21:13:47 +01:00