Skip to content

Commit

Permalink
chore: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jul 30, 2024
1 parent dc966c6 commit 298b49f
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions libs/langchain-anthropic/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,13 +427,16 @@ export class ChatAnthropicMessages<
stream: false,
});

const stream = await this.createStreamWithRetry({
...params,
...formattedMessages,
stream: true,
}, {
headers: options.headers,
});
const stream = await this.createStreamWithRetry(
{
...params,
...formattedMessages,
stream: true,
},
{
headers: options.headers,
}
);

for await (const data of stream) {
if (options.signal?.aborted) {
Expand Down

0 comments on commit 298b49f

Please sign in to comment.