Skip to content

Commit ea4b0ce

Browse files
authored
Merge pull request #170 from dbpunk-labs/feat/refactor
fix: fix the codellama agent bug
2 parents 0e9ce20 + 220ec62 commit ea4b0ce

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

agent/src/og_agent/codellama_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def handle_show_sample_code(
7070
TaskResponse(
7171
state=task_context.to_context_state_proto(),
7272
response_type=TaskResponse.OnStepActionStart,
73-
on_step_agent_start=OnStepActionStart(
73+
on_step_action_start=OnStepActionStart(
7474
input=tool_input, tool="show_sample_code"
7575
),
7676
)

agent/src/og_agent/prompt.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@
1919
Thirdly, the programming environment used to execute code has the following capabilities
2020
* Internet connection: This allows the programming environment to access online resources, such as documentation, libraries, and code repositories.
2121
* IPython kernel: This allows the programming environment to execute Python code
22-
* Filesystem: This allows the programming environment to open, write, and delete files in the workspace directory.
23-
* Lots of installed Python libraries:These includes the following popular libraries:
24-
* pandas:data analysis and manipulation tool
25-
* matplotlib:a comprehensive library for creating static, animated, and interactive visualizations in Python
26-
* yfinance:download market data from Yahoo!
27-
* imageio:library for reading and writing a wide range of image, video, scientific, and volumetric data formats.
28-
* pillow:Python Imaging Library
29-
* beautifulsoup4: a library that makes it easy to scrape information from web pages
30-
* requests: a simple, yet elegant, HTTP library
31-
* wikipedia: a Python library that makes it easy to access and parse data from Wikipedia
3222
"""
3323

3424

docker/start_all.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ then
4343
fi
4444
4545
echo "start kernel.."
46-
cd ${ROOT_DIR}/kernel && hap run -n octogen_kernel -- og_kernel_rpc_server >> ${ROOT_DIR}/logs/kernel_rpc.log 2>&1
46+
cd ${ROOT_DIR}/kernel && hap run -n octogen_kernel -- og_kernel_rpc_server >> ${ROOT_DIR}/kernel/logs/kernel_rpc.log 2>&1
4747
4848
echo "start agent.."
49-
cd ${ROOT_DIR}/agent && hap run -n octogen_agent -- og_agent_rpc_server >> ${ROOT_DIR}/logs/agent_rpc.log 2>&1
50-
cd ${ROOT_DIR}/agent && hap run -n octogen_api -- og_agent_http_server >> ${ROOT_DIR}/logs/agent_http.log 2>&1
49+
cd ${ROOT_DIR}/agent && hap run -n octogen_agent -- og_agent_rpc_server >> ${ROOT_DIR}/agent/logs/agent_rpc.log 2>&1
50+
cd ${ROOT_DIR}/agent && hap run -n octogen_api -- og_agent_http_server >> ${ROOT_DIR}/agent/logs/agent_http.log 2>&1
5151
5252
while true
5353
do

up/src/og_up/up.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,11 @@
3535
Welcome to use {OCTOGEN_TITLE}
3636
"""
3737

38-
3938
def random_str(n):
4039
# generating random strings
4140
res = "".join(random.choices(string.ascii_uppercase + string.digits, k=n))
4241
return str(res)
4342

44-
4543
def run_install_cli(live, segments):
4644
"""
4745
Install the octogen chat cli
@@ -69,7 +67,6 @@ def run_install_cli(live, segments):
6967
refresh(live, segments)
7068
return False
7169

72-
7370
def refresh(
7471
live,
7572
segments,

0 commit comments

Comments
 (0)