We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56057ab commit 5b991c7Copy full SHA for 5b991c7
function_schema/core.py
@@ -12,7 +12,7 @@ def get_function_schema(
12
func: typing.Annotated[typing.Callable, "The function to get the schema for"],
13
format: typing.Annotated[
14
typing.Optional[str], SchemaFormat, "The format of the schema to return"
15
- ] = SchemaFormat.openai,
+ ] = "openai",
16
) -> typing.Annotated[dict[str, typing.Any], "The JSON schema for the given function"]:
17
"""
18
Returns a JSON schema for the given function.
0 commit comments