mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 20:16:52 +00:00
formatting
This commit is contained in:
@@ -1874,7 +1874,8 @@ class BaseChatOpenAI(BaseChatModel):
|
|||||||
tool_name = convert_to_openai_tool(schema)["function"]["name"]
|
tool_name = convert_to_openai_tool(schema)["function"]["name"]
|
||||||
base_url = (
|
base_url = (
|
||||||
getattr(self, "openai_api_base", "")
|
getattr(self, "openai_api_base", "")
|
||||||
or getattr(self, "api_base", "") or ""
|
or getattr(self, "api_base", "")
|
||||||
|
or ""
|
||||||
).lower()
|
).lower()
|
||||||
# The Azure-Hosted Models routes to this function
|
# The Azure-Hosted Models routes to this function
|
||||||
# so we need to set the tool_choice to required
|
# so we need to set the tool_choice to required
|
||||||
|
Reference in New Issue
Block a user