From 5746d289ab7c78384133013ff21efee89eef23c4 Mon Sep 17 00:00:00 2001 From: isaac hershenson Date: Tue, 10 Dec 2024 17:39:08 -0800 Subject: [PATCH] fmt --- js/src/client.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/js/src/client.ts b/js/src/client.ts index 5725d9acd..8126eac97 100644 --- a/js/src/client.ts +++ b/js/src/client.ts @@ -769,7 +769,9 @@ export class Client implements LangSmithTracingClientInterface { private async _getMultiPartSupport(): Promise { const serverInfo = await this._ensureServerInfo(); - return serverInfo.instance_flags?.dataset_examples_multipart_enabled ?? false; + return ( + serverInfo.instance_flags?.dataset_examples_multipart_enabled ?? false + ); } private drainAutoBatchQueue(batchSizeLimit: number) { @@ -2731,7 +2733,8 @@ export class Client implements LangSmithTracingClientInterface { const { attachment_urls, ...rest } = rawExample; const example: Example = rest; if (attachment_urls) { - const attachmentsArray = Object.entries(attachment_urls).map(([key, value]) => { + const attachmentsArray = Object.entries(attachment_urls).map( + ([key, value]) => { async function* fetchReader() { const response = await fetch(value.presigned_url); yield* IterableReadableStream.fromReadableStream(response.body!); @@ -2743,7 +2746,8 @@ export class Client implements LangSmithTracingClientInterface { reader: IterableReadableStream.fromAsyncGenerator(fetchReader()), }, }; - }); + } + ); // add attachments back to the example example.attachments = attachmentsArray.reduce((acc, { key, value }) => { if (value.reader != null) { @@ -2839,7 +2843,8 @@ export class Client implements LangSmithTracingClientInterface { const { attachment_urls, ...rest } = rawExample; const example: Example = rest; if (attachment_urls) { - const attachmentsArray = Object.entries(attachment_urls).map(([key, value]) => { + const attachmentsArray = Object.entries(attachment_urls).map( + ([key, value]) => { async function* fetchReader() { const response = await fetch(value.presigned_url); yield* IterableReadableStream.fromReadableStream( @@ -2855,7 +2860,8 @@ export class Client implements LangSmithTracingClientInterface { ), }, }; - }); + } + ); // add attachments back to the example example.attachments = attachmentsArray.reduce( (acc, { key, value }) => {