Commit Graph

12 Commits (d72c33b680b25d353f5cdb4f77fd3429e22cb73b)

Author SHA1 Message Date
t.me/xtekky 9f09650780
Merge pull request #155 from Daniele-Polizzi/Daniele-Polizzi-patch-1
Update __init__.py
2 years ago
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()
2 years ago
t.me/xtekky 73618a9161 http://easy-ai.ink/ 2 years ago
t.me/xtekky d0e9b9de97 . 2 years ago
t.me/xtekky d60d6fa355 play.vercel.ai 2 years ago
t.me/xtekky e341c75e5e discontinue ora.sh api 2 years ago
t.me/xtekky cfce83bb84 testing 2 years ago
t.me/xtekky a67ffd8d8b best models (gpt4/3.5/search) 2 years ago
t.me/xtekky 85a1961b64 sqlchat 2 years ago
t.me/xtekky dbfeab7242 code refractoring 2 years ago
kwekewk e6fc0dc96b added openaihosted folder 2 years ago
t.me/xtekky a485cfb180 unfinished api's (help is welcome) 2 years ago