Skip to content

Commit

Permalink
Fix type signature for open ai function_call, turns out you need a di…
Browse files Browse the repository at this point in the history
…ct to force a function call
  • Loading branch information
rogeriochaves committed Jul 30, 2023
1 parent a8e8b9e commit 09cc56a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litechain/contrib/llms/open_ai.py
Expand Up @@ -275,7 +275,7 @@ def __init__(
],
model: str,
functions: Optional[List[Dict[str, Any]]] = None,
function_call: Optional[Union[Literal["none", "auto"], str]] = None,
function_call: Optional[Union[Literal["none", "auto"], Dict[str, Any]]] = None,
temperature: Optional[float] = 0,
max_tokens: Optional[int] = None,
timeout: int = 5,
Expand Down

0 comments on commit 09cc56a

Please sign in to comment.