Fix typo in docstring of format_tool_to_openai_function (#6479)

Fixes typo "open AI" to "OpenAI" in docstring of
`format_tool_to_openai_function` in
`langchain/tools/convert_to_openai.py`.
This commit is contained in:
northern-64bit 2023-06-21 03:42:30 +02:00 committed by GitHub
parent b3c49e94a0
commit 7492060525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.