Skip to content

Commit

Permalink
Fix #1666 (#1678)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenGr authored Dec 22, 2023
1 parent 1285f54 commit 4572a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bertopic/representation/_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def extract_topics(self,
response = completions_with_backoff(self.client, model=self.model, prompt=prompt, **self.generator_kwargs)
else:
response = self.client.completions.create(model=self.model, prompt=prompt, **self.generator_kwargs)
label = response.choices[0].message.content.strip()
label = response.choices[0].text.strip()

updated_topics[topic] = [(label, 1)]

Expand Down

0 comments on commit 4572a99

Please sign in to comment.