toolhouse-python-code-interpreter

command
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 7 Imported by: 0

README

python-code-interpreter

This is an example of using pegwings-go to create a chat completion using the llama-3.1-70B-8192-tool-use-preview model.

It interacts with the Toolhouse API to run the code interpreter.

Usage

Make sure you have a groq key set in the environment variable GROQ_KEY. Also, make sure you have a toolhouse api key set in the environment variable TOOLHOUSE_API_KEY.

export GROQ_KEY=your-groq-key
export TOOLHOUSE_API_KEY=your-toolhouse-api-key
go run .

Documentation

Overview

Package main shows an example of using the toolhouse go package.

It shows how one can add the python code interpreter to their toolhouse tools and use it to execute groq powered llms's code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL