From 9d4d2581622499894f0824dc7ad5f0ca49fa8b95 Mon Sep 17 00:00:00 2001 From: ZhangShenao <15201440436@163.com> Date: Sat, 21 Jun 2025 03:47:54 +0800 Subject: [PATCH] [Doc] Improve api doc for DeepSeek (#31655) - Add param in api doc - Fix word spelling --------- Co-authored-by: Chester Curme --- libs/partners/deepseek/langchain_deepseek/chat_models.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libs/partners/deepseek/langchain_deepseek/chat_models.py b/libs/partners/deepseek/langchain_deepseek/chat_models.py index 155b192c19a..38cb095e90c 100644 --- a/libs/partners/deepseek/langchain_deepseek/chat_models.py +++ b/libs/partners/deepseek/langchain_deepseek/chat_models.py @@ -339,7 +339,7 @@ class ChatDeepSeek(BaseChatOpenAI): method: The method for steering model generation, one of: - "function_calling": - Uses DeekSeek's `tool-calling features `_. + Uses DeepSeek's `tool-calling features `_. - "json_mode": Uses DeepSeek's `JSON mode feature `_. @@ -355,6 +355,13 @@ class ChatDeepSeek(BaseChatOpenAI): will be caught and returned as well. The final output is always a dict with keys "raw", "parsed", and "parsing_error". + strict: + Whether to enable strict schema adherence when generating the function + call. This parameter is included for compatibility with other chat + models, and if specified will be passed to the Chat Completions API + in accordance with the OpenAI API specification. However, the DeepSeek + API may ignore the parameter. + kwargs: Additional keyword args aren't supported. Returns: