From 76571f25911657180ee17eed7b302a363e7562fc Mon Sep 17 00:00:00 2001 From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com> Date: Thu, 6 Apr 2023 21:24:04 +0200 Subject: updated poe api (gpt4) fixed tls_client issue by switching to request Session, and update the poe api --- poe/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'poe/__init__.py') diff --git a/poe/__init__.py b/poe/__init__.py index 3f75ba14..d1cb8ae5 100644 --- a/poe/__init__.py +++ b/poe/__init__.py @@ -1,6 +1,6 @@ from poe.api import Client as PoeClient from poe.mail import Mail -from tls_client import Session +from requests import Session from re import search, findall from json import loads from time import sleep, time @@ -48,11 +48,10 @@ class PoeResponse: def json(self) -> dict: return self.response_dict - class Account: def create(proxy: None or str = None, logging: bool = False): - client = Session(client_identifier = "chrome110") + client = Session() client.proxies = { 'http': f'http://{proxy}', 'https': f'http://{proxy}'} if proxy else None -- cgit v1.2.3