MaartenGr / MaartenGr/BERTopic
openai incompatible issues with Bertopic
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.8k
- Forks
- 920
- Avg merge
- 22h 24m
- Merged PRs (30d)
- 5
Description
prompt = """
I have a topic that contains the following documents:
[DOCUMENTS]
The topic is described by the following keywords: [KEYWORDS]
Based on the information above, extract a short but highly descriptive topic label of at most 5 words. Make sure it is in the following format:
topic:
"""
openai_model = OpenAI(model="gpt-3.5-turbo", exponential_backoff=True, chat=True, prompt=prompt)
All representation models
representation_model = {
"OpenAI": openai_model, # Uncomment if you will use OpenAI
}
topics, probs = model.fit_transform(smaller_docs_list)
Getting following error message:
You tried to access openai.ChatCompletion,
but this is no longer supported in openai>=1.0.0 - see the
When I downgrade opneai to 0.38, this error went away.
However, the execution timed out after 600 seconds.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the OpenAI representation-model setup shown in the issue and the fit_transform call, then compare the reported openai.ChatCompletion error with the behavior after downgrading openai. Done should mean the shown integration no longer raises the compatibility error and its execution behavior is understood.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100