chore: update previous_response_id comment

This commit is contained in:
Paul Kompfner
2026-03-18 15:06:54 -04:00
committed by Mark Backman
parent c66a5a8ede
commit ea89819ece

View File

@@ -80,18 +80,16 @@ class OpenAIResponsesLLMAdapter(BaseLLMAdapter[OpenAIResponsesLLMInvocationParam
# OpenAILLMService (system_instruction + empty messages) need the # OpenAILLMService (system_instruction + empty messages) need the
# instructions converted to an initial developer message. # instructions converted to an initial developer message.
# #
# NOTE: if/when we support `previous_response_id`, we'll need to revisit # NOTE: if/when we support `previous_response_id` and/or
# this logic, as it'll be legit to provide instructions without input # `conversation_id`, we'll need to revisit this logic, as it'll
# items if `previous_response_id` is provided. Though...OpenAI's docs + # be legit to provide instructions without input items. Worth
# ChatGPT suggests that `previous_response_id` is primarily for # noting that OpenAI's docs suggest these parameters are primarily
# development convenience, not performance (other than minor bandwidth # for development convenience rather than performance (the model
# savings from not transferring the full context), as the model still # still processes the full context), and come with the tradeoff
# processes the full context from the previous response. The tradeoff # of requiring OpenAI-side 30-day conversation storage, which may
# of using `previous_response_id` is that it requires enabling OpenAI-side # not be desirable for many users. But it could give folks an easy
# 30-day conversation storage (meaning we couldn't do `store=False` # way to store/switch between conversations without needing to
# in the API call), which may not be desirable for all users. So, # manage that storage themselves.
# my guess is we won't need to support `previous_response_id` in the
# immediate future.
if not input_items: if not input_items:
params["input"] = [{"role": "developer", "content": system_instruction}] params["input"] = [{"role": "developer", "content": system_instruction}]
else: else: