Skip to content

Commit 5b991c7

Browse files
committed
change default value for format parameter to 'openai'
1 parent 56057ab commit 5b991c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

function_schema/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def get_function_schema(
1212
func: typing.Annotated[typing.Callable, "The function to get the schema for"],
1313
format: typing.Annotated[
1414
typing.Optional[str], SchemaFormat, "The format of the schema to return"
15-
] = SchemaFormat.openai,
15+
] = "openai",
1616
) -> typing.Annotated[dict[str, typing.Any], "The JSON schema for the given function"]:
1717
"""
1818
Returns a JSON schema for the given function.

0 commit comments

Comments
 (0)