Skip to content

Commit 5546609

Browse files
douglas-reidDouglas Reid
andauthored
stop creating unnecessary temporary files (#587)
Co-authored-by: Douglas Reid <[email protected]>
1 parent beee58d commit 5546609

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/steamship/agents/llms/openai.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ def chat(self, messages: List[Block], tools: Optional[List[Tool]], **kwargs) ->
122122
file_id = messages[0].file_id
123123
block_indices = [b.index_in_file for b in messages]
124124
block_indices.sort()
125-
logging.info(f"OpenAI ChatComplete block_indices [{block_indices}]")
125+
logging.debug(f"OpenAI ChatComplete block_indices [{block_indices}]")
126126
generate_task = self.generator.generate(
127127
input_file_id=file_id,
128128
input_file_block_index_list=block_indices,
129129
options=options,
130-
append_output_to_file=True,
130+
# append_output_to_file=True, # not needed unless streaming. these can be ephemeral.
131131
)
132132
generate_task.wait() # wait
133133
return generate_task.output.blocks

0 commit comments

Comments
 (0)