Commit Graph

45 Commits

Author SHA1 Message Date
Ramon Victor Cardoso
d8e715a30b
Fix TypeError: 'Api' object is not callable 2024-03-07 22:59:43 -03:00
Heiner Lohaus
3b96c27e3c Ignore empty auth header in api
Add live token count in gui
2024-02-29 14:44:51 +01:00
Heiner Lohaus
55caf8e7de Add FlowGpt provider, Fix issue with None values in api 2024-02-24 14:52:23 +01:00
Heiner Lohaus
6b3be02d63 Set default values for generation config
Set  a list of providers
2024-02-23 19:30:53 +01:00
Heiner Lohaus
51264fe20c Add GeminiPro API provider
Set min version for undetected-chromedriver
Add api_key to the new client
2024-02-23 11:33:38 +01:00
Heiner Lohaus
d733930a2b Fix unittests, use Union typing 2024-02-23 02:51:10 +01:00
Heiner Lohaus
74397096b7 Use new client in inter api 2024-02-23 02:35:13 +01:00
nullstreak
12f7a89517 Basic support for the temperature parameter 2024-02-14 03:27:16 +01:00
Ramon Victor Cardoso
694f131d09 Fix module 'g4f.debug' has no attribute 'get_version' 2024-01-03 20:50:51 -03:00
Heiner Lohaus
c617b18d12 Add support for all models
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-01 17:48:57 +01:00
Heiner Lohaus
236ec98380 Fix api run module 2023-12-23 21:03:33 +01:00
Heiner Lohaus
3a81f9a2af Fix api and None provider 2023-12-23 20:50:56 +01:00
alvarosoares01@gmail.com
0ea720c1db Add providers in api 2023-12-13 23:16:35 -03:00
madonchik123
b0276f6c9e
Added new provider PI (Hacky way to use) (#1291)
* 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-12-01 23:11:52 +01:00
abc
2345588d38 ~ | improve compatibility with lower python versions
remove tiktoken
2023-11-19 22:59:18 +00:00
razrab
9b19603f03 Fixed tupo in list_ignored_providers parameter. 2023-11-16 11:54:25 +03:00
Kacper Kwapisz
ef3fdfa892
Update __init__.py
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-14 12:39:38 +01:00
razrab
7b26e20db0 Added back list_ignored_providers parameter to ChatCompletion.create method in api. 2023-11-13 14:11:44 +03:00
razrab
5a6d59e171 Refactor item_data update to handle byte keys and convert messages to dict. 2023-11-13 09:17:13 +03:00
Giancarlo-Ma
ee5f2a4ab1
fix: api streaming TypeError: Object of type generator is not JSON serializable 2023-11-07 23:29:23 +08:00
ThatLukinhasGuy
90678515a6
Update __init__.py 2023-11-04 18:27:25 -03:00
ThatLukinhasGuy
65c3a88e0a
Update __init__.py 2023-11-04 18:26:16 -03:00
ThatLukinhasGuy
0a2ff2ba5e
Update run.py 2023-11-04 18:25:02 -03:00
ThatLukinhasGuy
7ef8135ed4
Update __init__.py 2023-11-04 18:24:38 -03:00
ThatLukinhasGuy
1726bc723d
Update __init__.py 2023-11-04 18:23:29 -03:00
ThatLukinhasGuy
81bd9bab33
Update __init__.py 2023-11-04 18:19:30 -03:00
ThatLukinhasGuy
f51fe6322f
Update run.py 2023-11-04 18:16:23 -03:00
ThatLukinhasGuy
0af4fc0997
Update __init__.py 2023-11-04 18:16:09 -03:00
ThatLukinhasGuy
318112c8b9
Update run.py 2023-11-04 17:51:53 -03:00
ThatLukinhasGuy
87cf743a41
Update __init__.py 2023-11-04 17:51:32 -03:00
ThatLukinhasGuy
6e75e23033
Update __init__.py 2023-11-01 22:29:32 -03:00
ThatLukinhasGuy
80321cc47a
Update __init__.py 2023-11-01 22:29:17 -03:00
ThatLukinhasGuy
a195d6d568
Update run.py 2023-11-01 22:28:07 -03:00
ThatLukinhasGuy
1e0b09b8d5
Update __init__.py 2023-11-01 22:27:35 -03:00
catmeowjiao
325f8558da add api proxy 2023-10-27 17:33:47 +08:00
AndPim4912
8d7ad98fcb
Merge branch 'main' into api-ignore-providers 2023-10-23 15:10:28 +03:00
Heiner Lohaus
9eee45023e
Debug config in api 2023-10-23 13:54:37 +02:00
razrab
36fe869a81 Refactor API initialization to accept a list of ignored providers. 2023-10-23 11:01:40 +03:00
ⲘrṨhส∂ow
3982f39424
'Refactored by Sourcery' (#1125)
Co-authored-by: Sourcery AI <>
2023-10-23 09:46:25 +02:00
late
0e93d841ba fix bug - Cannot assign requested address 2023-10-21 12:10:03 +08:00
abc
dad69d24ce ~
minor changes
2023-10-20 19:28:46 +01:00
abc
0ddfe57431 ~ | quick fix 2023-10-20 19:08:39 +01:00
abc
8e7e694d81 ~ | updated g4f.api
new api and requirements
2023-10-20 19:04:13 +01:00
abc
dc502a22de ~ 2023-10-12 14:35:18 +01:00
Arran Hobson Sayers
77697be333 Unify g4f tools into one CLI 2023-10-12 02:35:11 +01:00