forked from Archives/langchain
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:
parent
b3c49e94a0
commit
7492060525
@ -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…
Reference in New Issue
Block a user