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: