Skip to content
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

Cerebras AI Profile #1431

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions interpreter/terminal_interface/profiles/defaults/cerebras.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"""
This is an Open Interpreter profile to use Cerebras.

Please set the CEREBRAS_API_KEY environment variable.

See https://inference-docs.cerebras.ai/introduction for more information.
"""

from interpreter import interpreter
import os

# LLM settings
interpreter.llm.api_base = "https://api.cerebras.ai/v1"
interpreter.llm.model = "openai/llama3.1-70b" # or "openai/Llama-3.1-8B"
interpreter.llm.api_key = os.environ.get("CEREBRAS_API_KEY")
interpreter.llm.supports_functions = False
interpreter.llm.supports_vision = False
interpreter.llm.max_tokens = 4096
interpreter.llm.context_window = 8192


# Computer settings
interpreter.computer.import_computer_api = False

# Misc settings
interpreter.offline = False
interpreter.auto_run = False

# Custom Instructions
interpreter.custom_instructions = f"""

"""
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ packages = [
{include = "interpreter"},
{include = "scripts"},
]
version = "0.3.8" # Use "-rc1", "-rc2", etc. for pre-release versions
version = "0.3.9" # Use "-rc1", "-rc2", etc. for pre-release versions
description = "Let language models run code"
authors = ["Killian Lucas <[email protected]>"]
readme = "README.md"
Expand Down
Loading