mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 22:50:18 +00:00
remove title
This commit is contained in:
@@ -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[
|
||||
|
||||
Reference in New Issue
Block a user