Skip to content

Commit

Permalink
[#57] make functions optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jekalmin committed Dec 24, 2023
1 parent 6dc8810 commit 5ff596b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/extended_openai_conversation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ async def query(
DEFAULT_MAX_FUNCTION_CALLS_PER_CONVERSATION,
):
function_call = "none"
if len(functions) == 0:
functions = None
function_call = None

model_key = self.entry.options.get(
CONF_MODEL_KEY, get_default_model_key(api_base)
Expand Down

0 comments on commit 5ff596b

Please sign in to comment.