forked from shroominic/codeinterpreter-api
-
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
Showing
34 changed files
with
867 additions
and
348 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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "llm_docker_setting_pub"] | ||
path = llm_docker_setting_pub | ||
url = https://github.com/nobu007/llm_docker_setting_pub.git | ||
[submodule "GuiAgentLoopCore"] | ||
path = GuiAgentLoopCore | ||
url = https://github.com/nobu007/GuiAgentLoopCore.git |
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,15 @@ | ||
repos: | ||
# Using this mirror lets us use mypyc-compiled black, which is 2x faster | ||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: 23.10.1 | ||
hooks: | ||
- id: black | ||
# It is recommended to specify the latest version of Python | ||
# supported by your project here, or alternatively use | ||
# pre-commit's default_language_version, see | ||
# https://pre-commit.com/#top_level-default_language_version | ||
language_version: python3.11 | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort |
Submodule GuiAgentLoopCore
added at
f92616
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,27 +1,2 @@ | ||
# AUTO DEV SETUP | ||
|
||
# check if rye is installed | ||
if ! command -v rye &>/dev/null; then | ||
echo "rye could not be found: installing now ..." | ||
curl -sSf https://rye-up.com/get | RYE_INSTALL_OPTION="--yes" bash | ||
echo "Check the rye docs for more info: https://rye-up.com/" | ||
fi | ||
|
||
export PATH="$HOME/.rye/shims:$PATH" | ||
|
||
cd /app | ||
source "$HOME/.rye/env" | ||
echo 'source "$HOME/.rye/env"' >> ~/.bashrc | ||
echo 'source "$HOME/.rye/env"' >> ~/.profile | ||
|
||
|
||
echo "SYNC: setup .venv" | ||
rye sync | ||
|
||
rye add pytest pre-commit | ||
|
||
echo "ACTIVATE: activate .venv" | ||
source .venv/bin/activate | ||
|
||
echo "SETUP: install pre-commit hooks" | ||
pre-commit install |
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,7 +1,5 @@ | ||
from codeinterpreterapi import CodeInterpreterSession | ||
|
||
with CodeInterpreterSession(model="claude-2") as session: | ||
result = session.generate_response( | ||
"Plot the nvidea stock vs microsoft stock over the last 6 months." | ||
) | ||
with CodeInterpreterSession(model="claude-3-haiku-20240307") as session: | ||
result = session.generate_response("Plot the nvidea stock vs microsoft stock over the last 6 months.") | ||
result.show() |
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
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
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
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
Oops, something went wrong.