-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
889807f
commit 4854627
Showing
5 changed files
with
98 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,12 +33,14 @@ pip install free_llms | |
```python | ||
|
||
from free_llms.models import GPTChrome | ||
driver_config = ["--disable-gpu", "--window-size=1920,1080"] # pass in selnium driver config | ||
with GPTChrome(driver_config,'[email protected]','') as session: # A single session started with ChatGPT. Put in your email and password for ChatGPT account. | ||
data = session.send_prompt('Tell me a horror story in 150 words') # First Message | ||
data1 = session.send_prompt('Now make it funny') # Second message | ||
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> | ||
|
||
``` | ||
|
||
## Note: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
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 protected]', | ||
password = '') as session: # A single session started with ChartGPT | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
DEFAULT_WINDOW_SIZE = (1920,1080) | ||
DRIVERS_DEFAULT_CONFIG = ["--disable-gpu", f"--window-size={DEFAULT_WINDOW_SIZE[0]},{DEFAULT_WINDOW_SIZE[1]}"] | ||
DEFAULT_WINDOW_SIZE = (1920, 1080) | ||
DRIVERS_DEFAULT_CONFIG = ["--disable-gpu", f"--window-size={DEFAULT_WINDOW_SIZE[0]},{DEFAULT_WINDOW_SIZE[1]}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters