mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Add type hint to function_to_dict and fix typo
Updated type hint for function_to_dict and fixed typo in docstring.
This commit is contained in:
parent
ad7f4411a3
commit
495e6c0a2b
1 changed files with 2 additions and 2 deletions
|
|
@ -5121,9 +5121,9 @@ def json_schema_type(python_type_name: str):
|
|||
return python_to_json_schema_types.get(python_type_name, "string")
|
||||
|
||||
|
||||
def function_to_dict(input_function): # noqa: C901
|
||||
def function_to_dict(input_function) -> dict: # noqa: C901
|
||||
"""Using type hints and numpy-styled docstring,
|
||||
produce a dictionnary usable for OpenAI function calling
|
||||
produce a dictionary usable for OpenAI function calling
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue