Skip to content

Commit 9d4d258

Browse files
ZhangShenaoccurme
andauthored
[Doc] Improve api doc for DeepSeek (#31655)
- Add param in api doc - Fix word spelling --------- Co-authored-by: Chester Curme <[email protected]>
1 parent 22e6d90 commit 9d4d258

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

libs/partners/deepseek/langchain_deepseek/chat_models.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def with_structured_output(
339339
method: The method for steering model generation, one of:
340340
341341
- "function_calling":
342-
Uses DeekSeek's `tool-calling features <https://api-docs.deepseek.com/guides/function_calling>`_.
342+
Uses DeepSeek's `tool-calling features <https://api-docs.deepseek.com/guides/function_calling>`_.
343343
- "json_mode":
344344
Uses DeepSeek's `JSON mode feature <https://api-docs.deepseek.com/guides/json_mode>`_.
345345
@@ -355,6 +355,13 @@ def with_structured_output(
355355
will be caught and returned as well. The final output is always a dict
356356
with keys "raw", "parsed", and "parsing_error".
357357
358+
strict:
359+
Whether to enable strict schema adherence when generating the function
360+
call. This parameter is included for compatibility with other chat
361+
models, and if specified will be passed to the Chat Completions API
362+
in accordance with the OpenAI API specification. However, the DeepSeek
363+
API may ignore the parameter.
364+
358365
kwargs: Additional keyword args aren't supported.
359366
360367
Returns:

0 commit comments

Comments
 (0)