-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Groq Support #1238
Open
fire17
wants to merge
4
commits into
OpenInterpreter:main
Choose a base branch
from
fire17:groq
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Added Groq Support #1238
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
ac118a3
Added Groq Support - groq api integration now fits well into oi flow,…
fire17 553cb51
Used black and isort (not sure if looks better but following CONTRIBU…
fire17 66e8784
Added proper usage docs
fire17 33300f1
Included workaround in docs incase anyone runs into this issue
fire17 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
title: Groq | ||
--- | ||
|
||
To use Open Interpreter with a model from Groq, simply run: | ||
|
||
<CodeGroup> | ||
|
||
```bash Terminal | ||
interpreter --model groq/mixtral-8x7b-32768 | ||
``` | ||
|
||
```python Python | ||
from interpreter import interpreter | ||
|
||
interpreter.llm.model = "groq/mixtral-8x7b-32768" | ||
interpreter.chat() | ||
``` | ||
|
||
</CodeGroup> | ||
|
||
# Supported Models | ||
|
||
We support any model on [Groq's models page:](https://console.groq.com/docs/models) | ||
|
||
<CodeGroup> | ||
|
||
```bash Terminal | ||
interpreter --model groq/mixtral-8x7b-32768 | ||
interpreter --model groq/llama3-8b-8192 | ||
interpreter --model groq/llama3-70b-8192 | ||
interpreter --model groq/gemma-7b-it | ||
``` | ||
|
||
```python Python | ||
interpreter.llm.model = "groq/mixtral-8x7b-32768" | ||
interpreter.llm.model = "groq/llama3-8b-8192" | ||
interpreter.llm.model = "groq/llama3-70b-8192" | ||
interpreter.llm.model = "groq/gemma-7b-it" | ||
``` | ||
|
||
</CodeGroup> | ||
|
||
# Required Environment Variables | ||
|
||
Run `export GROQ_API_KEY='<your-key-here>'` or place it in your rc file and re-source | ||
Set the following environment variables [(click here to learn how)](https://chat.openai.com/share/1062cdd8-62a1-4aa8-8ec9-eca45645971a) to use these models. | ||
|
||
| Environment Variable | Description | Where to Find | | ||
| -------------------- | ---------------------------------------------------- | ------------------------------------------------------------------- | | ||
| `GROQ_API_KEY` | The API key for authenticating to Groq's services. | [Groq Account Page](https://console.groq.com/keys) | | ||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should be deleted before merging to
main
branch