1
0
Fork 0
GPT4FREE/unfinished
Daniele Polizzi 96eab8ed1d
Update __init__.py
I changed the import statement from request import Session to import requests because in the original the Session class is the only class imported from the request library. In this case, it is more efficient to import the whole library with import requests and use requests.Session() instead of Session() and added various code comments

Instead of having a separate dictionary, I created a headers dictionary and used the update() method to update the session header.

The create() function returns the results of a request made to a website as a JSON dictionary using the .json() method. However, you don't need to import the json library explicitly because the json() function is a method of the Response object returned by session.post(). In other words, the .json() method does the json decoding for us, so we don't need to use the json module's json()
2023-04-26 15:25:09 +02:00
..
bard unfinished api's (help is welcome) 2023-04-20 15:34:19 +01:00
bing unfinished api's (help is welcome) 2023-04-20 15:34:19 +01:00
cocalc Update __init__.py 2023-04-26 15:25:09 +02:00
gptbz testing 2023-04-25 12:31:12 +01:00
openai unfinished api's (help is welcome) 2023-04-20 15:34:19 +01:00
openaihosted added openaihosted folder 2023-04-21 21:38:06 +07:00
openprompt unfinished api's (help is welcome) 2023-04-20 15:34:19 +01:00
t3nsor discontinue ora.sh api 2023-04-25 18:40:17 +01:00
theb.ai unfinished api's (help is welcome) 2023-04-20 15:34:19 +01:00
writesonic discontinue ora.sh api 2023-04-25 18:40:17 +01:00
test.py testing 2023-04-25 12:31:12 +01:00