A collection of free AI tools to use with python
Works using Selenium
This project needs Selenium for the browser control, the Google Chrome Browser, and the Chromedriver for your Chrome version.
To install Selenium, run pip install selenium
in the terminal.
This project aims to be a free and open source alternative to the large language model APIs such as the OpenAi API. Pros:
- Free and open source
- no need to have a powerfull machine, juste a simple computer which can run a webbrowser
- no credit or limit
Download the python_ai.py
file and ensure that Selenium is installed and the driver for chrome is in the same folder or in the PATH
.
The code provides different AI models from different websites.
The AI that work the best is FreeGPT.
You can use any ai model you want by importing it:
from python_ai import EChat
chat = EChat()
print(chat.ask("Hello how are you ?"))
chat.close()
You can choose among this models:
youChat
(deprecated)CodeAi
(deprecated)ChatAi
(deprecated)LLMA
FreeGPT
(deprecated)EChat
(recommended)MyGPT
(deprecated)
you can pass this arguments to the model:
def __init__(self, view: bool = False, debug: bool = True, incognito: bool = True, executable_path: str = "chromedriver.exe")
view
: bool: if you want to see the browserdebug
: bool: if the app print infosincognito
: bool: if the browser has to start in incognito modeexecutable_path
: str: the path of the ChromeDriver
Feel free to contribute by adding your own model and make a pull request.