Azure-Samples / azureai-assistant-tool

The Azure AI Assistant Tool is experimental Python application and middleware designed to simplify the development, experimentation, testing, and debugging of OpenAI assistants.
MIT License
117 stars 51 forks source link

Assistants.create() got an unexpected keyword argument 'file_ids' #15

Closed amy-why-msft closed 6 months ago

amy-why-msft commented 6 months ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

clone the repo, create a new virtual python environment, follow the steps to install the tool

Any log messages given by the failure

2024-04-22 12:46:21,767 - ERROR - _create_assistant - Failed to create new assistant with name: amytest: Assistants.create() got an unexpected keyword argument 'file_ids' 2024-04-22 12:46:21,767 - ERROR - _init_assistant_client - Failed to initialize assistant instance: Failed to create new assistant with name: amytest: Assistants.create() got an unexpected keyword argument 'file_ids'

Expected/desired behavior

be able to create a new assistant.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Windows 11

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

amy-why-msft commented 6 months ago

This is due to latest OpenAI updates and tool probably installs the latest openai library and that causes issue pip install openai==1.20.0 resolves the issue

jhakulin commented 6 months ago

@amy-why-msft Thank you! That is correct, currently the wheel takes the latest openai library when installed and that has v2 version of the api, which causes the break.

We are working on to update the wheel using v2 API.

jhakulin commented 6 months ago

New version 0.3.0-alpha has been released for V2 api support. https://github.com/Azure-Samples/azureai-assistant-tool/releases/tag/v0.3.0-alpha