mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 22:50:18 +00:00
@@ -133,6 +133,12 @@ class OpenAISchema(BaseModel):
|
||||
}
|
||||
parameters["required"] = sorted(parameters["properties"])
|
||||
_remove_a_key(parameters, "title")
|
||||
|
||||
if "description" not in schema:
|
||||
schema[
|
||||
"description"
|
||||
] = f"Correctly extracted `{cls.__name__}` with all the required parameters with correct types"
|
||||
|
||||
return {
|
||||
"name": schema["title"],
|
||||
"description": schema["description"],
|
||||
|
||||
Reference in New Issue
Block a user