Skip to content

Commit a4dfc7b

Browse files
committed
Try setting reasoning effort to "minimal".
1 parent df0128b commit a4dfc7b

File tree

1 file changed

+2
-0
lines changed
  • python_components/document_inference/document_inference

1 file changed

+2
-0
lines changed

python_components/document_inference/document_inference/helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def document_inference_summary(
158158
attachments=attachments,
159159
schema=DocumentSummarySchema.model_json_schema(),
160160
stream=False,
161+
reasoning_effort="minimal"
161162
)
162163
response_json = json.loads(response.text())
163164
logger.info("Inference complete. Validating response.")
@@ -183,6 +184,7 @@ def document_inference_recommendation(
183184
attachments=attachments,
184185
schema=DocumentRecommendation.model_json_schema(),
185186
stream=False,
187+
reasoning_effort="minimal"
186188
)
187189
response_json = json.loads(response.text())
188190
logger.info("Inference complete. Validating response.")

0 commit comments

Comments
 (0)