mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 03:26:17 +00:00
formatting
This commit is contained in:
@@ -1874,7 +1874,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 ""
|
||||
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
|
||||
|
Reference in New Issue
Block a user