Skip to content

Commit

Permalink
feat: use python and custom code tools over http
Browse files Browse the repository at this point in the history
* update to work with updated bee-agent-framework which
  uses http instead of grpc for python and custom tools

Signed-off-by: Mark Sturdevant <mark.sturdevant@ibm.com>
  • Loading branch information
markstur committed Jan 9, 2025
1 parent 9298ea0 commit 2336a6c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ LLM_BACKEND="ollama"
# VERTEXAI_PROJECT=""

# Tools
CODE_INTERPRETER_URL="http://127.0.0.1:50051"
CODE_INTERPRETER_URL="http://127.0.0.1:50081"

# Framework related
BEE_FRAMEWORK_LOG_PRETTY=true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ The [Bee Code Interpreter](https://github.com/i-am-bee/bee-code-interpreter) is

> [!NOTE]
>
> Code Interpreter runs on `http://127.0.0.1:50051`.
> Code Interpreter runs on `http://127.0.0.1:50081`.
## 🔎 Observability

Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ services:
- ./infra/bee-code-interpreter.yaml:/var/lib/rancher/k3s/server/manifests/bee-code-interpreter.yaml
ports:
- "50051:30051"
- "50081:30081"
healthcheck:
test: "kubectl get pod code-interpreter | grep Running"
interval: 10s
Expand Down
6 changes: 6 additions & 0 deletions infra/bee-code-interpreter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ spec:
image: icr.io/i-am-bee/bee-code-interpreter:0.0.28
ports:
- containerPort: 50051
- containerPort: 8000
env:
- name: APP_EXECUTOR_IMAGE
value: icr.io/i-am-bee/bee-code-executor:0.0.28
Expand All @@ -64,5 +65,10 @@ spec:
- port: 50051
targetPort: 50051
nodePort: 30051
name: grpc
- port: 50081
targetPort: 8000
nodePort: 30081
name: http
selector:
app: code-interpreter

0 comments on commit 2336a6c

Please sign in to comment.