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
52 changed files
with
884 additions
and
357 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
# AUTO DEV INSTALL | ||
|
||
export PATH="$HOME/.rye/shims:$PATH" | ||
|
||
cd /app | ||
echo "ACTIVATE: activate .venv" | ||
source .venv/bin/activate | ||
|
||
pwd | ||
eval "$(pyenv init -)" | ||
pip install -e . |
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,4 @@ | ||
#!/bin/bash | ||
|
||
eval "$(pyenv init -)" | ||
pip install -r requirements.txt |
Empty file.
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,7 @@ | ||
#!/bin/bash | ||
|
||
# This is for GuiAgentLoopCore | ||
|
||
eval "$(pyenv init -)" | ||
cd GuiAgentLoopCore | ||
pip install -e . |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Submodule llm_docker_setting_pub
updated
7 files
+0 −9 | docker/.dockerignore | |
+6 −0 | docker/.dockerignore.sample | |
+101 −22 | docker/Dockerfile | |
+12 −0 | docker/docker-compose.vnc.yml | |
+34 −26 | docker/docker-compose.yml | |
+39 −0 | script/docker_compose.sh | |
+4 −2 | script/docker_replace.sh |
Oops, something went wrong.