Skip to content

Commit 6390139

Browse files
authored
Use original options when retrying (#1422)
Fix #271962
1 parent c077cda commit 6390139

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/extension/prompt/node/chatMLFetcher.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ export class ChatMLFetcherImpl extends AbstractChatMLFetcher {
200200

201201
// Retry with augmented messages
202202
const retryResult = await this.fetchMany({
203+
...opts,
203204
debugName: 'retry-' + debugName,
204205
messages: augmentedMessages,
205206
finishedCb,
@@ -271,6 +272,7 @@ export class ChatMLFetcherImpl extends AbstractChatMLFetcher {
271272

272273
// Retry with other fetchers
273274
const retryResult = await this.fetchMany({
275+
...opts,
274276
debugName: 'retry-error-' + debugName,
275277
messages,
276278
finishedCb,

0 commit comments

Comments
 (0)