mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-02 01:23:07 +00:00
openai[patch]: always filter disabled params
This commit is contained in:
parent
9b848491c8
commit
01ebdde0e8
@ -700,11 +700,12 @@ class BaseChatOpenAI(BaseChatModel):
|
||||
if stop is not None:
|
||||
kwargs["stop"] = stop
|
||||
|
||||
return {
|
||||
payload = {
|
||||
"messages": [_convert_message_to_dict(m) for m in messages],
|
||||
**self._default_params,
|
||||
**kwargs,
|
||||
}
|
||||
return self._filter_disabled_params(**payload)
|
||||
|
||||
def _create_chat_result(
|
||||
self,
|
||||
|
Loading…
Reference in New Issue
Block a user