mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-03 18:24:10 +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:
|
if stop is not None:
|
||||||
kwargs["stop"] = stop
|
kwargs["stop"] = stop
|
||||||
|
|
||||||
return {
|
payload = {
|
||||||
"messages": [_convert_message_to_dict(m) for m in messages],
|
"messages": [_convert_message_to_dict(m) for m in messages],
|
||||||
**self._default_params,
|
**self._default_params,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
}
|
}
|
||||||
|
return self._filter_disabled_params(**payload)
|
||||||
|
|
||||||
def _create_chat_result(
|
def _create_chat_result(
|
||||||
self,
|
self,
|
||||||
|
Loading…
Reference in New Issue
Block a user