-
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.
Merge pull request #7 from keenborder786/claude_feat
Claude feat
- Loading branch information
Showing
3 changed files
with
126 additions
and
3 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 |
---|---|---|
|
@@ -25,7 +25,7 @@ pip install free_llms | |
| ChatGPT | ✅ | | ||
| Preplexity ai | ✅ | | ||
| Mistral | ✅ | | ||
| Groq | Work in Progress | | ||
| Claude | ✅ | | ||
|
||
|
||
|
||
|
@@ -79,6 +79,24 @@ with MistralChrome(driver_config=driver_config, | |
print(session.messages) | ||
``` | ||
|
||
|
||
## Claude | ||
|
||
```python | ||
from free_llms.models import ClaudeChrome | ||
driver_config = [] # pass in selnium driver config except for the following ["--disable-gpu", f"--window-size=1920,1080"] | ||
with ClaudeChrome(driver_config=driver_config, | ||
email = '[email protected]', | ||
password = '', # password not needed for ClaudeChrome | ||
) as session: # A single session started with ClaudeChrome | ||
# once you login, you will get a code at your email which you need to type in | ||
session.send_prompt('What is silicon valley?') | ||
session.send_prompt('How many seasons it had?') | ||
print(session.messages) | ||
|
||
``` | ||
|
||
|
||
## Note: | ||
|
||
- Free_LLMs only uses a `Patched Chrome Driver` as it's main driver. The driver can be found [here](https://github.com/ultrafunkamsterdam/undetected-chromedriver/tree/master) |
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