Skip to content
Snippets Groups Projects
Unverified Commit cf11b233 authored by Huu Le's avatar Huu Le Committed by GitHub
Browse files

feat: support using azure code interpreter in create-llama (#158)

parent fd9fb42a
Branches
Tags
No related merge requests found
---
"create-llama": patch
---
Add Azure code interpreter for Python and TS
...@@ -188,6 +188,35 @@ For better results, you can specify the region parameter to get results from a s ...@@ -188,6 +188,35 @@ For better results, you can specify the region parameter to get results from a s
}, },
], ],
}, },
{
display: "Azure Code Interpreter",
name: "azure_code_interpreter.AzureCodeInterpreterToolSpec",
supportedFrameworks: ["fastapi", "nextjs", "express"],
type: ToolType.LLAMAHUB,
dependencies: [
{
name: "llama-index-tools-azure-code-interpreter",
version: "0.2.0",
},
],
envVars: [
{
name: "AZURE_POOL_MANAGEMENT_ENDPOINT",
description:
"Please follow this guideline to create and get the pool management endpoint: https://learn.microsoft.com/azure/container-apps/sessions?tabs=azure-cli",
},
{
name: TOOL_SYSTEM_PROMPT_ENV_VAR,
description: "System prompt for Azure code interpreter tool.",
value: `-You are a Python interpreter that can run any python code in a secure environment.
- The python code runs in a Jupyter notebook. Every time you call the 'interpreter' tool, the python code is executed in a separate cell.
- You are given tasks to complete and you run python code to solve them.
- It's okay to make multiple calls to interpreter tool. If you get an error or the result is not what you expected, you can call the tool again. Don't give up too soon!
- Plot visualizations using matplotlib or any other visualization library directly in the notebook.
- You can install any pip package (if it exists) by running a cell with pip install.`,
},
],
},
]; ];
export const getTool = (toolName: string): Tool | undefined => { export const getTool = (toolName: string): Tool | undefined => {
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"dotenv": "^16.3.1", "dotenv": "^16.3.1",
"duck-duck-scrape": "^2.2.5", "duck-duck-scrape": "^2.2.5",
"express": "^4.18.2", "express": "^4.18.2",
"llamaindex": "0.5.7", "llamaindex": "0.5.8",
"pdf2json": "3.0.5", "pdf2json": "3.0.5",
"ajv": "^8.12.0", "ajv": "^8.12.0",
"@e2b/code-interpreter": "^0.0.5", "@e2b/code-interpreter": "^0.0.5",
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"duck-duck-scrape": "^2.2.5", "duck-duck-scrape": "^2.2.5",
"formdata-node": "^6.0.3", "formdata-node": "^6.0.3",
"got": "^14.4.1", "got": "^14.4.1",
"llamaindex": "0.5.7", "llamaindex": "0.5.8",
"lucide-react": "^0.294.0", "lucide-react": "^0.294.0",
"next": "^14.2.4", "next": "^14.2.4",
"react": "^18.2.0", "react": "^18.2.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment