Skip to content

Commit ff13ad4

Browse files
committed
Update reasoning effort level and improve final response logging
1 parent c90e95e commit ff13ad4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

server/api/views/assistant/views.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def search_documents(query: str, user=user) -> str:
223223
MODEL_DEFAULTS = {
224224
"instructions": INSTRUCTIONS,
225225
"model": "gpt-5-nano", # 400,000 token context window
226-
"reasoning": {"effort": "medium", "summary": "auto"},
226+
"reasoning": {"effort": "low", "summary": "auto"},
227227
"tools": tools,
228228
}
229229

@@ -272,9 +272,7 @@ def search_documents(query: str, user=user) -> str:
272272
logger.info("Reasoning completed")
273273
final_response_output_text = response.output_text
274274
final_response_id = response.id
275-
logger.info(
276-
f"Final response length: {len(final_response_output_text)} characters"
277-
)
275+
logger.info(f"Final response: {final_response_output_text}")
278276
break
279277
else:
280278
logger.info("More reasoning required, continuing...")

0 commit comments

Comments
 (0)