Skip to content

Python: Bug: ‎Python's SessionsPythonTool is using wrong REST data and endpoints for Azure Container Apps Sessions #6934

@colincmac

Description

@colincmac

Describe the bug
The request and response bodies for interacting with the ACA serverless code interpreter sessions is incorrect.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the sample workbook 'azure_python_code_interpreter_function_calling'
  2. Try using the file upload and/or code execution functions
  3. See errors

Expected behavior
To be able to execute code interpreter sessions in ACA

Platform

  • OS: Windows
  • IDE: Visual Studio, VS Code
  • Language: Python
  • Source: main branch

Additional context
REST API specifications: https://learn.microsoft.com/en-us/azure/container-apps/sessions-code-interpreter

For example:
The File Upload API endpoint should be files/upload not python/uploadFile. It also returns a list of files, rather than a single file metadata. method:

I believe all endpoints and data are incorrect, but haven't tested the all of the plugin's functions.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpythonPull requests for the Python Semantic Kernel

Type

No type

Projects

Status

Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions