Hi, I am using openai==1.28.1
and while creating assistant I am getting BadRequestError: Error code: 400 - {'error': {'message': "Unknown parameter: 'tool_resources'.", 'type': 'invalid_request_error', 'param': 'tool_resources', 'code': 'unknown_parameter'}}
I want to know does Azure support tool_resources functionality which Assistant v2 supports is there a code demo for it. I am taking references from Source source Below is the code which is throwing me error when I am trying tool_resource:
assistant = client.beta.assistants.create(
instructions='''My Instruction''',
model="My model deployment name",
tools=[{"type": "code_interpreter"}],
tool_resources={"code_interpreter": {"file_ids": [file.id]}}
)
Below is the code I am getting error TypeError: Assistants.create() got an unexpected keyword argument 'tool_choice'
assistant = client.beta.assistants.create(
instructions='''My Instruction''',
model="My model deployment name",
tools=[{"type": "code_interpreter"}],
tool_choice={"code_interpreter": {"file_ids": [file.id]}}
)