mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-29 22:46:27 +00:00
[lint]
This commit is contained in:
parent
41000c029a
commit
d75d2d43e9
@ -1873,7 +1873,8 @@ class BaseChatOpenAI(BaseChatModel):
|
||||
|
||||
tool_name = convert_to_openai_tool(schema)["function"]["name"]
|
||||
base_url = (
|
||||
getattr(self, "openai_api_base", "") or getattr(self, "api_base", "") or ""
|
||||
getattr(self, "openai_api_base", "")
|
||||
or getattr(self, "api_base", "") or ""
|
||||
).lower()
|
||||
# The Azure-Hosted Models routes to this function
|
||||
# so we need to set the tool_choice to required
|
||||
|
Loading…
Reference in New Issue
Block a user