Azure / Azure/AI-in-a-Box

[BUG] Issue with No module named 'openai.types.beta.threads.messages

Open
#125 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
596
Forks
197
PR merge metrics
No merged PRs in 30d

Description

**Solution Accelerators**
This repository contains multiple solution accelerators. Please tell us which ones are involved in your report. (Replace the space in between square brackets with an x)
- [x] Cognitive Services Landing Zone
- [ ] Semantic Kernel Bot
- [ ] Azure ML Operationalization
- [ ] Edge AI

**Describe the bug**
No module named 'openai.types.beta.threads.messages

**To Reproduce**
Steps to reproduce the behavior:
1. Go to /Users/wanmeng/repository/AI-in-a-Box/gen-ai/Assistants/notebooks/sales_copilot/two_agent_copilot_proxy.ipynb
2. Run the 'import' code
4. See error
---> [13](https://file+.vscode-resource.vscode-cdn.net/Users/wanmeng/repository/AI-in-a-Box/gen-ai/Assistants/notebooks/sales_copilot/~/repository/AI-in-a-Box/gen-ai/Assistants/notebooks/sales_copilot/AssistantAgent.py:13) from openai.types.beta.threads.messages import MessageFile
[14](https://file+.vscode-resource.vscode-cdn.net/Users/wanmeng/repository/AI-in-a-Box/gen-ai/Assistants/notebooks/sales_copilot/~/repository/AI-in-a-Box/gen-ai/Assistants/notebooks/sales_copilot/AssistantAgent.py:14) from openai.types import FileObject
[15](https://file+.vscode-resource.vscode-cdn.net/Users/wanmeng/repository/AI-in-a-Box/gen-ai/Assistants/notebooks/sales_copilot/~/repository/AI-in-a-Box/gen-ai/Assistants/notebooks/sales_copilot/AssistantAgent.py:15) from PIL import Image

ModuleNotFoundError: No module named 'openai.types.beta.threads.messages'

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.
image

**Please complete the following information:**
- OS: [e.g. Windows] MacOS
- Browser [e.g. chrome, safari]
- Version [e.g. 22] Python=3.12

**Additional context**
Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open gen-ai/Assistants/notebooks/sales_copilot/two_agent_copilot_proxy.ipynb and the referenced AssistantAgent.py, especially line 13. Reproduce the import failure with Python 3.12 and inspect the project's dependency setup. Done means the notebook's import code runs without the reported ModuleNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
ai
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.