Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Module "openai.types.beta.threads.run" has no attribute "ToolAssistantToolsFunction" #1242

Closed
1 task done
Wendong-Fan opened this issue Mar 18, 2024 · 2 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@Wendong-Fan
Copy link

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

Hi there, i was using old version 1.2.3, seems in the new version 1.14.0 ToolAssistantToolsFunction has been removed, but I need this function to validate openai tool schema. Thanks in advance!

To Reproduce

from openai.types.beta.threads.run import ToolAssistantToolsFunction

Code snippets

No response

OS

macOS

Python version

Python v 3.10

Library version

openai v1.14.0

@pstern-sl
Copy link
Collaborator

I believe this has been renamed FunctionToolCall. Is that the type you need?

@Wendong-Fan
Copy link
Author

Hey @pstern-sl , thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants