Skip to content

Commit

Permalink
Fix typo in docstring of format_tool_to_openai_function (langchain-ai…
Browse files Browse the repository at this point in the history
…#6479)

Fixes typo "open AI" to "OpenAI" in docstring of
`format_tool_to_openai_function` in
`langchain/tools/convert_to_openai.py`.
  • Loading branch information
northern-64bit authored and kacperlukawski committed Jun 29, 2023
1 parent a7d738e commit 954d642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain/tools/convert_to_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class FunctionDescription(TypedDict):


def format_tool_to_openai_function(tool: BaseTool) -> FunctionDescription:
"""Format tool into the open AI function API."""
"""Format tool into the OpenAI function API."""
if isinstance(tool, StructuredTool):
schema_ = tool.args_schema.schema()
# Bug with required missing for structured tools.
Expand Down

0 comments on commit 954d642

Please sign in to comment.