You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Running the code on my own machine, with no code change except change to path for the csv input file, I am getting:
Error code: 400 - {'error': {'message': "Unknown parameter: 'tool_resources'.", 'type': 'invalid_request_error', 'param': 'tool_resources', 'code': 'unknown_parameter'}} on AzureAssistantAgent create.
To Reproduce
Steps to reproduce the behavior:
Running code as is.
Expected behavior
Some valid output, not an error.
Screenshots
If applicable, add screenshots to help explain your problem.
github-actionsbot
changed the title
Bug: Getting http 400 error in assistant_agent_file_manipulation.py
Python: Bug: Getting http 400 error in assistant_agent_file_manipulation.py
Feb 12, 2025
Hello @mrochon, what Azure api version are you using? I am using AZURE_OPENAI_API_VERSION="2024-12-01-preview" and I don't have any 400s, it is running well for me. Looks like your AI model is fine, but please verify the api version. Also, what version of Python are you using? 400s are client-side errors, so there is some issue with your current configuration.
@mrochon we use Pydantic settings, which loads env vars if present. When creating the assistant, we get a hold of the necessary settings. You can always override via the constructor, if necessary.
I will pick up a work item soon to improve the docs about which api versions and models are needed to run the assistants. Azure OpenAI is tricky because of all of the api versions.
Describe the bug
Running the code on my own machine, with no code change except change to path for the csv input file, I am getting:
Error code: 400 - {'error': {'message': "Unknown parameter: 'tool_resources'.", 'type': 'invalid_request_error', 'param': 'tool_resources', 'code': 'unknown_parameter'}} on AzureAssistantAgent create.
To Reproduce
Steps to reproduce the behavior:
Running code as is.
Expected behavior
Some valid output, not an error.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: