fix: resolve missing serialized kwargs in PatchedChatDeepSeek (#2025)

* add tests

* fix ci

* fix ci
This commit is contained in:
Xun
2026-04-09 16:07:16 +08:00
committed by GitHub
parent 823f3af98c
commit 1b74d84590
4 changed files with 444 additions and 0 deletions
@@ -48,6 +48,10 @@ class CodexChatModel(BaseChatModel):
model_config = {"arbitrary_types_allowed": True}
@classmethod
def is_lc_serializable(cls) -> bool:
return True
@property
def _llm_type(self) -> str:
return "codex-responses"
@@ -23,6 +23,14 @@ class PatchedChatDeepSeek(ChatDeepSeek):
request payload.
"""
@classmethod
def is_lc_serializable(cls) -> bool:
return True
@property
def lc_secrets(self) -> dict[str, str]:
return {"api_key": "DEEPSEEK_API_KEY", "openai_api_key": "DEEPSEEK_API_KEY"}
def _get_request_payload(
self,
input_: LanguageModelInput,