From a4214a3a9c64c65ad9537438d1acf8a4106439bb Mon Sep 17 00:00:00 2001 From: Angus Jelinek Date: Tue, 28 Jan 2025 19:53:45 -0800 Subject: [PATCH 1/2] Use ingest multipart --- js/package.json | 2 +- js/src/client.ts | 2 +- js/src/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/package.json b/js/package.json index 7c9300862..96cbe1ed9 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "langsmith", - "version": "0.3.3", + "version": "0.3.4-rc.0", "description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.", "packageManager": "yarn@1.22.19", "files": [ diff --git a/js/src/client.ts b/js/src/client.ts index 83c428e85..f938fdb38 100644 --- a/js/src/client.ts +++ b/js/src/client.ts @@ -1231,7 +1231,7 @@ export class Client implements LangSmithTracingClientInterface { const res = await this.batchIngestCaller.call( _getFetchImplementation(), - `${this.apiUrl}/runs/multipart`, + `${this.apiUrl}/v1/runs/multipart`, { method: "POST", headers: { diff --git a/js/src/index.ts b/js/src/index.ts index 1d05820cb..bad418f75 100644 --- a/js/src/index.ts +++ b/js/src/index.ts @@ -18,4 +18,4 @@ export { RunTree, type RunTreeConfig } from "./run_trees.js"; export { overrideFetchImplementation } from "./singletons/fetch.js"; // Update using yarn bump-version -export const __version__ = "0.3.3"; +export const __version__ = "0.3.4-rc.0"; From 79e06f9962d9be8e02f16e11c5196411f5973a97 Mon Sep 17 00:00:00 2001 From: Angus Jelinek Date: Tue, 28 Jan 2025 20:02:20 -0800 Subject: [PATCH 2/2] move test to v1 multipart ep --- js/src/tests/batch_client.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/tests/batch_client.test.ts b/js/src/tests/batch_client.test.ts index 5c40ac1ae..2a0f3e329 100644 --- a/js/src/tests/batch_client.test.ts +++ b/js/src/tests/batch_client.test.ts @@ -86,7 +86,7 @@ describe.each(ENDPOINT_TYPES)( const expectedTraceURL = endpointType === "batch" ? "https://api.smith.langchain.com/runs/batch" - : "https://api.smith.langchain.com/runs/multipart"; + : "https://api.smith.langchain.com/v1/runs/multipart"; it("should create a batched run with the given input", async () => { const client = new Client({ apiKey: "test-api-key",