Use LLMs for Free.
Project description
FREE_LLMs
🤔 What is Free_LLMs?
Free LLMs is a framework that allows you to use a browser-based interface for large language models such as ChatGPT in an API-like style for FREE!!!. It provides an easier way to interact with browser-based LLMs and nothing else. All ownership belongs to the original owners of the respective LLMs.
Quick Install
With pip:
pip install free_llms
Models-Supported:
Model | Supported |
---|---|
ChatGPT | ✅ |
Preplexity ai | ✅ |
Mistral | ✅ |
Groq | Work in Progress |
ChatGPT
from free_llms.models import GPTChrome
driver_config = [] # pass in selnium driver config except for the following ["--disable-gpu", f"--window-size=1920,1080"]
with GPTChrome(driver_config=driver_config,
email = 'email',
password = 'password') as session: # A single session started with ChartGPT
data = session.send_prompt("""Write an SQL Query which shows how to get third highest salary
""") # First Message
data1 = session.send_prompt('Now convert it into python') # Second message
print(session.messages) # Messages in the current session in pair of <Human,AI>
Preplexity AI
from free_llms.models import PreplexityChrome
driver_config = [] # pass in selnium driver config except for the following ["--disable-gpu", f"--window-size=1920,1080"]
with PreplexityChrome(driver_config=driver_config,
email = '', # for preplexity we do not need email
password = '',# for preplexity we do not need password
) as session: # A single session started with Preplexity
data = session.send_prompt("""Make the following sentence correct:
I did went to Lahore.
""") # First Message
data = session.send_prompt("""Who is george hotz?""") # Second Message, right now each message is independent in preplexity ai
print(session.messages) # Messages in the current session in pair of <Human,AI>
Mistral
from free_llms.models import MistralChrome
driver_config = [] # pass in selnium driver config except for the following ["--disable-gpu", f"--window-size=1920,1080"]
with MistralChrome(driver_config=driver_config,
email = '21110290@lums.edu.pk', # Mistral Email
password = '',# Mistral Password
) as session: # A single session started with Mistral
session.send_prompt('Write a short long horro story of 100 woirds')
session.send_prompt('Make it funny')
print(session.messages)
Note:
- Free_LLMs only uses a
Patched Chrome Driver
as it's main driver. The driver can be found here
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
free_llms-0.1.1.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for free_llms-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fee9c2551ab580db5c38cf79f002fe1dd9efd27508499a8f66c764a4ba5ebd0 |
|
MD5 | b01c462053a6710a124c1ea0b5bf55c0 |
|
BLAKE2b-256 | 973fe2c74b13ac9a3c8a5e651db1a4418a3d1c4cc85ebae909cca7da77527f0c |