From 5cdf620f087f2e162f0d237f5208ad318341e4a0 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 26 Jul 2023 21:19:57 +0800 Subject: [PATCH] remove title --- openai_function_call/function_calls.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/openai_function_call/function_calls.py b/openai_function_call/function_calls.py index 116bee3..42208bc 100644 --- a/openai_function_call/function_calls.py +++ b/openai_function_call/function_calls.py @@ -74,7 +74,6 @@ class openai_function: parameters["required"] = sorted( parameters["properties"] ) # bug workaround see lc - _remove_a_key(parameters, "title") _remove_a_key(parameters, "additionalProperties") self.openai_schema = { "name": self.func.__name__, @@ -132,7 +131,6 @@ class OpenAISchema(BaseModel): k: v for k, v in schema.items() if k not in ("title", "description") } parameters["required"] = sorted(parameters["properties"]) - _remove_a_key(parameters, "title") if "description" not in schema: schema[