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
Trying a simple import (from bertopic import BERTopic) breaks due to a difference between the old openai API (when the bertopic/backend/_openai was originally written) and the current openai API (version 1.33.0).
I implemented a fix in my own branch of the code here:
A PR would be appreciated! Do note though that it needs to take the same structure as the representation model, so passing the entire client and not the API key.
Trying a simple import (from bertopic import BERTopic) breaks due to a difference between the old openai API (when the bertopic/backend/_openai was originally written) and the current openai API (version 1.33.0).
I implemented a fix in my own branch of the code here:
https://github.com/abeusher/BERTopic/blob/bugfix/new_openai_api/bertopic/backend/_openai.py
I am happy to provide a pull request when you are ready.
The text was updated successfully, but these errors were encountered: