Skip to content

Commit

Permalink
Fix content type (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw authored Jan 9, 2024
1 parent 21cb9f2 commit c7056a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -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/",
Expand Down
4 changes: 2 additions & 2 deletions js/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c7056a8

Please sign in to comment.