Skip to content

Commit 3beb6da

Browse files
committed
Update asyncio.gather to return exceptions.
1 parent 6ae121b commit 3beb6da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readmeai/core/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ async def _batch_prompts(
9595

9696
for batch in self._generate_batches(prompts, batch_size):
9797
batch_responses = await asyncio.gather(
98-
*[self._process_batch(prompt) for prompt in batch]
99-
# , return_exceptions=True
98+
*[self._process_batch(prompt) for prompt in batch],
99+
return_exceptions=True,
100100
)
101101
responses.extend(batch_responses)
102102

@@ -145,7 +145,7 @@ async def _set_prompt_context(
145145
{
146146
"repo": self.config.git.repository,
147147
"dependencies": dependencies,
148-
"files": summaries,
148+
"summaries": summaries,
149149
},
150150
),
151151
(

0 commit comments

Comments
 (0)