Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from xtekky:main #67

Closed
wants to merge 625 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
625 commits
Select commit Hold shift + click to select a range
95e61ad
Update GeminiPro.py
hlohaus Apr 6, 2024
5dcbf14
Update GptTalkRu.py
hlohaus Apr 6, 2024
e5e811f
Update HuggingChat.py
hlohaus Apr 6, 2024
e418c03
Update Liaobots.py
hlohaus Apr 6, 2024
802cf1c
Update Llama2.py
hlohaus Apr 6, 2024
1baca30
Update Vercel.py
hlohaus Apr 6, 2024
674ba8f
Update Gemini.py
hlohaus Apr 6, 2024
b35dfcd
Add local models to gui, Fix You Provider, add AsyncClient
hlohaus Apr 7, 2024
25fd782
Update har_file.py
hlohaus Apr 7, 2024
813e047
Update __init__.py
hlohaus Apr 7, 2024
bc7fbf0
Update models.py
hlohaus Apr 7, 2024
91c396e
Update provider.py
hlohaus Apr 7, 2024
d327afc
Merge pull request #1797 from hlohaus/satur
hlohaus Apr 7, 2024
a5f7eeb
Update You.py (#1794)
AksLolCoding Apr 7, 2024
604daf0
Update You.py
hlohaus Apr 7, 2024
70e942a
Update You.py
hlohaus Apr 7, 2024
536e859
Update You.py
hlohaus Apr 7, 2024
b29b541
Update You.py
hlohaus Apr 7, 2024
c9abf5c
Update You.py
hlohaus Apr 7, 2024
bdc61ca
Add nodriver to OpenaiChat
hlohaus Apr 7, 2024
e724079
Merge pull request #1802 from hlohaus/satur
hlohaus Apr 7, 2024
49c4cb2
Update requirements.txt
hlohaus Apr 7, 2024
926ddfd
Add WhiteRabbitNeo Provider, Many tiny improvments in the gui
hlohaus Apr 8, 2024
bd32db2
Update unittest.yml
hlohaus Apr 8, 2024
766b323
Update unittest.yml
hlohaus Apr 8, 2024
24345bc
Add DuckDuckGo Provider, Add SpeechRecognition to gui
hlohaus Apr 8, 2024
8c72920
Don't give up searching for accessToken in HAR file
ochen1 Apr 8, 2024
d4a92bb
Add text to speech module
hlohaus Apr 9, 2024
8321dca
Add async client docs
hlohaus Apr 9, 2024
af03693
Merge pull request #1809 from ochen1/patch-1
hlohaus Apr 9, 2024
90715e7
Add project files
hlohaus Apr 9, 2024
4c23b4c
Merge pull request #1807 from hlohaus/satur
hlohaus Apr 9, 2024
aff3ec5
Improve styling mobile
hlohaus Apr 9, 2024
0bb08e1
Merge pull request #1813 from hlohaus/satur
hlohaus Apr 9, 2024
84475b4
Update Dockerfile
hlohaus Apr 9, 2024
00951eb
Add OpenRouter and DeepInfraImage Provider (#1814)
hlohaus Apr 10, 2024
65bcc8a
Some small fixes
hlohaus Apr 10, 2024
13a0903
Increase conversation title lenght
hlohaus Apr 10, 2024
48a4f13
Merge pull request #1817 from hlohaus/bugfix
hlohaus Apr 10, 2024
009a672
Add ReplicateImage Provider, Fix BingCreateImages Provider
hlohaus Apr 11, 2024
c1ca481
Fix DeepInfra Provider, Fix Speech Recognition on Phone
hlohaus Apr 11, 2024
934edc8
Fix unittests, update Bing Urls
hlohaus Apr 11, 2024
1cb8440
Add ReplicateImage to provider list
hlohaus Apr 11, 2024
4271fb9
Merge pull request #1820 from hlohaus/bugfix
hlohaus Apr 11, 2024
deb3898
Update DeepInfraImage.py
hlohaus Apr 11, 2024
eefbdb6
Update chat.v1.js
hlohaus Apr 11, 2024
5899543
Update chat.v1.js
hlohaus Apr 11, 2024
df6ce3a
Update chat.v1.js
hlohaus Apr 11, 2024
57c856e
Fix You.com Provider
hlohaus Apr 11, 2024
2e171fc
Update DeepInfra models
nullstreak Apr 12, 2024
b21bf9a
Merge pull request #1827 from nullstreak/deepinfra
hlohaus Apr 12, 2024
35179fe
Merge pull request #1825 from hlohaus/ws
hlohaus Apr 12, 2024
0b712c2
Add unittests for async client (#1830)
hlohaus Apr 12, 2024
a107d3f
update default gpt-3.5-turbo models
xtekky Apr 12, 2024
f724c07
Add labels to provider list
hlohaus Apr 12, 2024
fa739d2
Add Aichatos and Blackbox Provider (#1822)
kqlio67 Apr 12, 2024
ddb015e
Update Bing.py
hlohaus Apr 12, 2024
7d0197d
Update integration.py
hlohaus Apr 12, 2024
a053c29
Fix GPT4All import error
hlohaus Apr 12, 2024
f57af70
update retryprovider
xtekky Apr 12, 2024
8c560b8
improve models list for gpt-3.5-turbo
xtekky Apr 12, 2024
ed8afc2
add more models
xtekky Apr 13, 2024
2fad27b
new gpt-4 beating opensource models
xtekky Apr 13, 2024
0a3fe0b
Update event loop on windows only for old curl_cffi
hlohaus Apr 13, 2024
7194c70
Fix SpeechRecognition on Phone
hlohaus Apr 13, 2024
c15242f
Fix SpeechRecognition on Phone
hlohaus Apr 13, 2024
070eead
Fix SpeechRecognition on Phone
hlohaus Apr 13, 2024
97d3459
Fix SpeechRecognition on Phone
hlohaus Apr 13, 2024
f323e88
Fix SpeechRecognition on Phone
hlohaus Apr 13, 2024
cec2a10
Fix SpeechRecognition on Phone
hlohaus Apr 13, 2024
307ccd8
Fix SpeechRecognition on Phone
hlohaus Apr 13, 2024
7fef835
Add model alias for gpt-4-turbo-preview in OpenaiChat Provider
ochen1 Apr 13, 2024
8add819
stytch auth udpdate for provider
xtekky Apr 14, 2024
46dcf08
Merge branch 'main' of https://github.com/xtekky/gpt4free
xtekky Apr 14, 2024
02b51a9
Add missed comma
mm3b Apr 14, 2024
fc33573
Merge pull request #1835 from ochen1/patch-1
hlohaus Apr 14, 2024
e5a5764
Merge pull request #1836 from mm3b/main
xtekky Apr 15, 2024
fdbb474
some more logging
xtekky Apr 15, 2024
fb4ef40
add examples folder
xtekky Apr 16, 2024
8ec9420
add cohere provider.
xtekky Apr 16, 2024
a2b5446
Fix DuckDuckGo Provider issues
hlohaus Apr 17, 2024
0f04dac
Merge pull request #1833 from hlohaus/curl
hlohaus Apr 17, 2024
f72ea59
Fix style.css
hlohaus Apr 17, 2024
6afc672
Merge pull request #1846 from hlohaus/nem
hlohaus Apr 17, 2024
a82021f
Add missing styling on phone
hlohaus Apr 17, 2024
0b6601f
Merge pull request #1848 from hlohaus/nem
hlohaus Apr 17, 2024
7e543f4
Add Ecosia Provider, Add OpenaiAccount alias
hlohaus Apr 18, 2024
718ea7c
Merge pull request #1854 from hlohaus/nem
hlohaus Apr 18, 2024
5fd118f
Added Meta llama-3 support! (#1856)
pratham-darooka Apr 19, 2024
37b91e6
Fix image generation in OpenaiChat
hlohaus Apr 19, 2024
81cf5d7
A few small fixes in GUI and Providers (#1861)
kqlio67 Apr 19, 2024
11cb4f1
Update integration.py
hlohaus Apr 19, 2024
a27d908
Merge pull request #1862 from hlohaus/nem
hlohaus Apr 19, 2024
932d3a3
Add MetaAI Provider and some small improvments
hlohaus Apr 20, 2024
83484c0
Add workers and use_colors options to api
hlohaus Apr 20, 2024
e6863a7
Improve cli arguments
hlohaus Apr 20, 2024
a129c3d
Add AbraGeoBlockedError handling
hlohaus Apr 20, 2024
fdc8b88
Improve cli argparser, Improve curl_cffi websocket support
hlohaus Apr 20, 2024
db00480
Disable Bing integration test
hlohaus Apr 20, 2024
da81d1e
Merge pull request #1865 from hlohaus/carst
hlohaus Apr 20, 2024
db2d6cf
Fix Bing Provider, Add Account Support for Meta AI
hlohaus Apr 21, 2024
f66cd9f
Add MissingRequirementsError to You
hlohaus Apr 21, 2024
0f3935f
Merge pull request #1869 from hlohaus/carst
hlohaus Apr 21, 2024
a26421b
Add image model list
hlohaus Apr 21, 2024
3a23e81
Add Replicate Provider
hlohaus Apr 21, 2024
8dcef3b
Improve python support
hlohaus Apr 21, 2024
4bc4d63
Add vision models to readme
hlohaus Apr 21, 2024
4b4d1f0
Merge pull request #1875 from hlohaus/carst
hlohaus Apr 21, 2024
454be0e
Update cookies.py
hlohaus Apr 22, 2024
a795e48
Refactor: Optimize Dockerfile structure
Keycatowo Apr 22, 2024
6a05a23
Fix "domain" KeyError with Firefox .har
hlohaus Apr 22, 2024
6e064ad
Add gemini-1.5-pro-latest model
hlohaus Apr 22, 2024
002a4a1
Fix typo in model list
hlohaus Apr 22, 2024
11c0715
Merge pull request #1879 from hlohaus/hopp
hlohaus Apr 22, 2024
d00e6ac
Merge pull request #1877 from Keycatowo/main
hlohaus Apr 22, 2024
009c8ca
feat: credit MetaAI
Strvm Apr 22, 2024
0c69a34
Merge pull request #1880 from Strvm/feat/credit_meta
xtekky Apr 22, 2024
cb695f5
Add nodriver to docker
hlohaus Apr 23, 2024
74c399d
Add conversation title change in gui
hlohaus Apr 23, 2024
10f25fd
Merge pull request #1881 from hlohaus/css
hlohaus Apr 23, 2024
c9c1aa1
Fix issue with You.com and nodriver
hlohaus Apr 23, 2024
431621b
Merge pull request #1882 from hlohaus/css
hlohaus Apr 23, 2024
c859605
Add `microsoft/Phi-3-mini-4k-instruct` model
kogakisaki Apr 24, 2024
2b27101
add reka core model (vision)
xtekky Apr 24, 2024
78d5f0b
.
xtekky Apr 24, 2024
42aabce
Update README.md
xtekky Apr 24, 2024
baec167
Update README.md
xtekky Apr 24, 2024
f0cf7a2
Merge branch 'xtekky:main' into main
kogakisaki Apr 25, 2024
41c9c9e
Merge pull request #1891 from eienmojiki206/main
xtekky Apr 25, 2024
0cc5b07
Update reka vision
hlohaus Apr 27, 2024
5575031
Merge pull request #1901 from hlohaus/arka
hlohaus Apr 27, 2024
112ca63
add authorization for g4f API
kafmws Apr 28, 2024
127352d
clean code
kafmws Apr 28, 2024
1089610
Add proofofwork to OpenaiChat
hlohaus Apr 28, 2024
cbc675d
Update README.md
Apr 28, 2024
c3e8113
Merge pull request #1907 from hlohaus/arka
hlohaus Apr 28, 2024
f47b7a2
Merge pull request #1905 from kafmws/main
hlohaus Apr 28, 2024
ddc65fc
Merge pull request #1908 from KPCOFGS/main
hlohaus Apr 28, 2024
bfce3af
Update README.md
hlohaus Apr 28, 2024
26d5fcd
Fix workers argument in api
hlohaus Apr 29, 2024
ffcb098
Update README.md
hlohaus Apr 29, 2024
ff8c1fc
Add AppConfig class, update readme
hlohaus Apr 29, 2024
ef095e8
Merge pull request #1911 from hlohaus/worker
hlohaus Apr 30, 2024
4ca6ee7
docs: fix typo in CONTRIBUTING.md
odhyp May 2, 2024
1de7c64
Merge pull request #1916 from odhyp/docs/fix-typo
xtekky May 2, 2024
7d2d81f
Added missing periods.
CHamilton02 May 3, 2024
b703948
Merge pull request #1920 from CHamilton02/main
hlohaus May 4, 2024
d495d73
Update You.py
Hydra566 May 4, 2024
8fcf618
Add Ollama provider, Add vision support to Openai
hlohaus May 5, 2024
9dcc9b9
Merge pull request #1923 from Hydra566/patch-2
hlohaus May 5, 2024
1d02a06
Merge pull request #1925 from hlohaus/worker
hlohaus May 5, 2024
743fbc2
Update __init__.py
hlohaus May 6, 2024
e41bbdc
Update __init__.py
hlohaus May 6, 2024
c343d66
Update __init__.py
hlohaus May 6, 2024
a9672be
Update Bing.py
hlohaus May 7, 2024
03e5f10
Update BingCreateImages.py
hlohaus May 7, 2024
ee7428e
Update Bing.py
hlohaus May 7, 2024
1fb9eb9
Update Gemini.py
HyiKi May 9, 2024
fc55b3f
Updated PerplexityLabs models
krishna2206 May 9, 2024
ac71602
Merge pull request #1933 from HyiKi/main
xtekky May 10, 2024
23f3c5b
Merge pull request #1934 from krishna2206/main
xtekky May 10, 2024
97b2a73
.
xtekky May 14, 2024
1399758
gpt-4o (beta)
xtekky May 14, 2024
5a1aae8
gpt-4o (beta)
xtekky May 14, 2024
59fcf9d
Update chatgpt url, uvloop support
hlohaus May 15, 2024
008ed60
Merge pull request #1950 from hlohaus/leech
hlohaus May 15, 2024
d1c16ce
Update README.md
hlohaus May 15, 2024
24c5502
Add needs auth to provierds, Add PerplexityApi provider
hlohaus May 15, 2024
0332c0c
Merge pull request #1958 from hlohaus/leech
hlohaus May 16, 2024
5396887
Fix You.com model selection
hlohaus May 17, 2024
1d66c57
Improve compatibility of openai-node (#1966)
kokarare1212 May 17, 2024
91e7252
Merge pull request #1969 from hlohaus/leech
hlohaus May 17, 2024
b1dafc0
Improve Liabots provider, Add image api support
hlohaus May 18, 2024
4c3472f
Merge pull request #1970 from hlohaus/leech
hlohaus May 18, 2024
96e378e
Fix OpenaiChat provider, improve proofofwork
hlohaus May 18, 2024
fcd3647
Merge pull request #1974 from hlohaus/leech
hlohaus May 18, 2024
9ddac17
Add get/set cookies dir, hide prompt option in gui
hlohaus May 18, 2024
97ce36a
Merge pull request #1975 from hlohaus/leech
hlohaus May 18, 2024
dc77a1a
Fix upload image
hlohaus May 18, 2024
3b024cb
Merge pull request #1976 from hlohaus/leech
hlohaus May 18, 2024
4bab600
Fix js error in gui, Revert to_image in gui
hlohaus May 18, 2024
3703e72
Add dark mode config, slide system prompt
hlohaus May 19, 2024
4359436
Merge pull request #1977 from hlohaus/leech
hlohaus May 19, 2024
1994481
Update model list / providers
hlohaus May 19, 2024
23b27ce
Merge pull request #1978 from hlohaus/leech
hlohaus May 19, 2024
c8d61a0
Create windows release, improve styling
hlohaus May 19, 2024
738e532
Merge pull request #1981 from hlohaus/leech
hlohaus May 19, 2024
370ac53
Update async_client.py
hlohaus May 19, 2024
fea056d
Update client.py
hlohaus May 19, 2024
7fe4188
Update DeepInfra.py
hlohaus May 19, 2024
80b2e9b
Add some options to messages in gui, saves generated images local
hlohaus May 19, 2024
5115cf0
Merge pull request #1984 from hlohaus/leech
hlohaus May 19, 2024
567b39c
Update base_provider: Do not nest patch uvloop loop.
anonymousx97 May 20, 2024
d2f04e8
Update base_provider.py
anonymousx97 May 20, 2024
f956288
Merge pull request #1985 from anonymousx97/patch-1
hlohaus May 20, 2024
77a1f50
Improve async client readme, Fix print styling, Add image api example
hlohaus May 20, 2024
e4b3b26
Merge pull request #1988 from hlohaus/kessh
hlohaus May 20, 2024
7eb41cf
Improve readme
hlohaus May 21, 2024
b7624b7
Add streaming and conversation support to gemini
hlohaus May 21, 2024
62b2b27
Fix image vision in You.com provider
hlohaus May 21, 2024
6830dfc
Merge pull request #1995 from hlohaus/gemini-
hlohaus May 22, 2024
00dee63
Update README.md
yousefnegmeldin May 23, 2024
b03cdd7
Merge pull request #2005 from yousefnegmeldin/main
hlohaus May 23, 2024
eab9285
.
xtekky May 28, 2024
32dfbbb
.
xtekky May 28, 2024
ce25530
.
xtekky May 28, 2024
ae404d7
Update README.md
xtekky May 28, 2024
cb2776a
Update models.py to create models directory when its not present
Zedai00 May 30, 2024
dd409d3
remove ecosia
xtekky May 31, 2024
87a96ce
Merge pull request #2031 from Zedai00/main
xtekky Jun 5, 2024
0850c81
Update `HuggingChat` provider
kogakisaki Jun 7, 2024
451c760
Update URL For GeminiProChat
Zedai00 Jun 7, 2024
52a37e0
Merge pull request #2044 from eienmojiki206/main
xtekky Jun 9, 2024
c91fef3
Merge pull request #2043 from Zedai00/geminiprochat-fix
xtekky Jun 9, 2024
b9ced12
requested removal of DuckDuckGo
xtekky Jun 9, 2024
acc52bc
Fix har openai access token parsing
RichSteini Jun 10, 2024
0c4d218
.
xtekky Jun 11, 2024
d6ac24e
Merge pull request #2054 from RichSteini/main
xtekky Jun 11, 2024
75e7ec6
Replace chat.openai.com with chatgpt.com
RequiemB Jun 13, 2024
e678417
add gemini-1.5-flash to GeminiPro provider
mcareddu Jun 13, 2024
a7d3de5
Merge pull request #2064 from mcareddu/feature/add-gemini-1.5-flash
xtekky Jun 13, 2024
e8f6013
Merge pull request #2062 from RequiemB/readme-fix
xtekky Jun 13, 2024
43bf07e
Add Pizzagpt Provider
Jun 22, 2024
c29487c
fixes
Jun 23, 2024
9e728ce
Merge pull request #2077 from lobowarren/main
xtekky Jun 24, 2024
ac0bd09
unpatch HuggingChat
xtekky Jun 26, 2024
46c48bb
Fix HuggingFace formatting
xtekky Jun 29, 2024
92c5831
Update requirements-min.txt
xtekky Jun 29, 2024
a54fef6
#2088 issue fixed
Anurag-Varma Jul 2, 2024
7ed49e2
Merge pull request #2089 from Anurag-Varma/main
xtekky Jul 2, 2024
e34e0fa
ChatGPT Reverse Engineering Update: Adapting to Arkose Detection Changes
gamelist1990 Jul 5, 2024
fea9e7a
Merge pull request #2097 from gamelist1990/main
xtekky Jul 5, 2024
ebea37c
Add files via upload
kqlio67 Jul 8, 2024
ace19b9
Add files via upload
kqlio67 Jul 8, 2024
e37e0d5
Delete g4f/Provider/ReplicateImage.py
kqlio67 Jul 8, 2024
abf92bf
Delete g4f/Provider/Feedough.py
kqlio67 Jul 8, 2024
f140d4a
Delete g4f/Provider/Cnote.py
kqlio67 Jul 8, 2024
b7cd7b3
Delete g4f/Provider/ChatgptX.py
kqlio67 Jul 8, 2024
8b8a0d9
Delete g4f/Provider/ChatgptNext.py
kqlio67 Jul 8, 2024
b251c47
Delete g4f/Provider/ChatgptAi.py
kqlio67 Jul 8, 2024
a857e50
Delete g4f/Provider/ChatForAi.py
kqlio67 Jul 8, 2024
ebc40b7
Delete g4f/Provider/Aichatos.py
kqlio67 Jul 8, 2024
a8ab2ad
Add files via upload
kqlio67 Jul 8, 2024
a2f11e4
Add files via upload
kqlio67 Jul 8, 2024
051dfc1
Add files via upload
kqlio67 Jul 8, 2024
68fae6a
Update Feedough.py
kqlio67 Jul 8, 2024
14bc5da
Update g4f/models.py
kqlio67 Jul 9, 2024
31edda5
Merge pull request #2103 from kqlio67/main
xtekky Jul 11, 2024
6e700c7
Update README.md
zachey01 Jul 11, 2024
f3f3ed5
Merge pull request #2106 from zachey01/main
xtekky Jul 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions g4f/Provider/Pizzagpt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import json
from aiohttp import ClientSession

from ..typing import Messages, AsyncResult
from .base_provider import AsyncGeneratorProvider

class Pizzagpt(AsyncGeneratorProvider):
url = "https://www.pizzagpt.it"
api_endpoint = "/api/chatx-completion"
supports_message_history = False
supports_gpt_35_turbo = True
working = True

@classmethod
async def create_async_generator(
cls,
model: str,
messages: Messages,
proxy: str = None,
**kwargs
) -> AsyncResult:
payload = {
"question": messages[-1]["content"]
}
headers = {
"Accept": "application/json",
"Accept-Encoding": "gzip, deflate, br, zstd",
"Accept-Language": "en-US,en;q=0.9",
"Content-Type": "application/json",
"Origin": cls.url,
"Referer": f"{cls.url}/en",
"Sec-Fetch-Dest": "empty",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Site": "same-origin",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",
"X-Secret": "Marinara"
}

async with ClientSession() as session:
async with session.post(
f"{cls.url}{cls.api_endpoint}",
json=payload,
proxy=proxy,
headers=headers
) as response:
response.raise_for_status()
response_json = await response.json()
yield response_json["answer"]["content"]
1 change: 1 addition & 0 deletions g4f/Provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
from .Ollama import Ollama
from .PerplexityLabs import PerplexityLabs
from .Pi import Pi
from .Pizzagpt import Pizzagpt
from .Replicate import Replicate
from .ReplicateImage import ReplicateImage
from .Vercel import Vercel
Expand Down