diff --git a/js/package.json b/js/package.json index 8b8264da2..8876cd2cd 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "langsmith", - "version": "0.0.54", + "version": "0.0.55", "description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.", "files": [ "dist/", diff --git a/js/src/client.ts b/js/src/client.ts index ae09e55f1..1b7c4fff9 100644 --- a/js/src/client.ts +++ b/js/src/client.ts @@ -317,9 +317,9 @@ export class Client { while (true) { const response = await this.caller.call(fetch, `${this.apiUrl}${path}`, { method: requestMethod, - headers: this.headers, + headers: { ...this.headers, "Content-Type": "application/json" }, signal: AbortSignal.timeout(this.timeout_ms), - body: JSON.stringify(bodyParams), + body: JSON.stringify(body), }); const responseBody = await response.json(); if (!responseBody) {