Skip to content

Commit

Permalink
fix link indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kav-K committed Nov 6, 2023
1 parent 8415183 commit 9f31310
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gpt3discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from models.openai_model import Model


__version__ = "12.0.1"
__version__ = "12.0.2"


PID_FILE = Path("bot.pid")
Expand Down
2 changes: 1 addition & 1 deletion models/index_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ async def set_link_index(
response = await ctx.respond(embed=EmbedStatics.build_index_progress_embed())
try:
# Check if the link contains youtube in it
index = await self.index_link(link)
index, _ = await self.index_link(link)

await self.usage_service.update_usage(
token_counter.total_embedding_token_count, "embedding"
Expand Down

0 comments on commit 9f31310

Please sign in to comment.