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`.
master
northern-64bit 11 months ago committed by GitHub
parent b3c49e94a0
commit 7492060525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save