File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
libs/partners/deepseek/langchain_deepseek Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ def with_structured_output(
339
339
method: The method for steering model generation, one of:
340
340
341
341
- "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>`_.
343
343
- "json_mode":
344
344
Uses DeepSeek's `JSON mode feature <https://api-docs.deepseek.com/guides/json_mode>`_.
345
345
@@ -355,6 +355,13 @@ def with_structured_output(
355
355
will be caught and returned as well. The final output is always a dict
356
356
with keys "raw", "parsed", and "parsing_error".
357
357
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
+
358
365
kwargs: Additional keyword args aren't supported.
359
366
360
367
Returns:
You can’t perform that action at this time.
0 commit comments