Skip to content

Commit

Permalink
Fix mishap
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Nov 17, 2024
1 parent 33f4c0b commit 8d46ee1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
import discord
from discord.ext import commands
from discord.ext.commands.view import StringView
from openai import AsyncOpenAI
from openai import NOT_GIVEN, AsyncOpenAI
from openai.types import FunctionDefinition
import datetime as dt
from configuration import configuration
from core import Help, cooldown
from plugins.help_message import Help as HelpCog
from somsiad import Somsiad
import tiktoken
from utilities import AI_ALLOWED_SERVER_IDS, human_amount_of_time, word_number_form
from utilities import AI_ALLOWED_SERVER_IDS, human_amount_of_time
from unidecode import unidecode


Expand Down Expand Up @@ -245,7 +245,7 @@ async def hey(self, ctx: commands.Context):
user=str(ctx.author.id),
tools=[{"function": f, "type": "function"} for f in self._all_available_commands_as_tools]
if iterations_left
else [],
else NOT_GIVEN,
)
iteration_choice = iteration_result.choices[0]
if iteration_choice.finish_reason == "tool_calls":
Expand Down

0 comments on commit 8d46ee1

Please sign in to comment.