Skip to content

Commit

Permalink
Merge pull request #170 from dbpunk-labs/feat/refactor
Browse files Browse the repository at this point in the history
fix: fix the codellama agent bug
  • Loading branch information
imotai authored Oct 23, 2023
2 parents 0e9ce20 + 220ec62 commit ea4b0ce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion agent/src/og_agent/codellama_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def handle_show_sample_code(
TaskResponse(
state=task_context.to_context_state_proto(),
response_type=TaskResponse.OnStepActionStart,
on_step_agent_start=OnStepActionStart(
on_step_action_start=OnStepActionStart(
input=tool_input, tool="show_sample_code"
),
)
Expand Down
10 changes: 0 additions & 10 deletions agent/src/og_agent/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@
Thirdly, the programming environment used to execute code has the following capabilities
* Internet connection: This allows the programming environment to access online resources, such as documentation, libraries, and code repositories.
* IPython kernel: This allows the programming environment to execute Python code
* Filesystem: This allows the programming environment to open, write, and delete files in the workspace directory.
* Lots of installed Python libraries:These includes the following popular libraries:
* pandas:data analysis and manipulation tool
* matplotlib:a comprehensive library for creating static, animated, and interactive visualizations in Python
* yfinance:download market data from Yahoo!
* imageio:library for reading and writing a wide range of image, video, scientific, and volumetric data formats.
* pillow:Python Imaging Library
* beautifulsoup4: a library that makes it easy to scrape information from web pages
* requests: a simple, yet elegant, HTTP library
* wikipedia: a Python library that makes it easy to access and parse data from Wikipedia
"""


Expand Down
6 changes: 3 additions & 3 deletions docker/start_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ then
fi
echo "start kernel.."
cd ${ROOT_DIR}/kernel && hap run -n octogen_kernel -- og_kernel_rpc_server >> ${ROOT_DIR}/logs/kernel_rpc.log 2>&1
cd ${ROOT_DIR}/kernel && hap run -n octogen_kernel -- og_kernel_rpc_server >> ${ROOT_DIR}/kernel/logs/kernel_rpc.log 2>&1
echo "start agent.."
cd ${ROOT_DIR}/agent && hap run -n octogen_agent -- og_agent_rpc_server >> ${ROOT_DIR}/logs/agent_rpc.log 2>&1
cd ${ROOT_DIR}/agent && hap run -n octogen_api -- og_agent_http_server >> ${ROOT_DIR}/logs/agent_http.log 2>&1
cd ${ROOT_DIR}/agent && hap run -n octogen_agent -- og_agent_rpc_server >> ${ROOT_DIR}/agent/logs/agent_rpc.log 2>&1
cd ${ROOT_DIR}/agent && hap run -n octogen_api -- og_agent_http_server >> ${ROOT_DIR}/agent/logs/agent_http.log 2>&1
while true
do
Expand Down
3 changes: 0 additions & 3 deletions up/src/og_up/up.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@
Welcome to use {OCTOGEN_TITLE}
"""


def random_str(n):
# generating random strings
res = "".join(random.choices(string.ascii_uppercase + string.digits, k=n))
return str(res)


def run_install_cli(live, segments):
"""
Install the octogen chat cli
Expand Down Expand Up @@ -69,7 +67,6 @@ def run_install_cli(live, segments):
refresh(live, segments)
return False


def refresh(
live,
segments,
Expand Down

0 comments on commit ea4b0ce

Please sign in to comment.