langsmith 0.3.46-rc.2 → 0.3.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.cjs +3 -3
- package/dist/client.js +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -1981,14 +1981,14 @@ class Client {
|
|
|
1981
1981
|
let path = "/datasets";
|
|
1982
1982
|
// limit to 1 result
|
|
1983
1983
|
const params = new URLSearchParams({ limit: "1" });
|
|
1984
|
-
if (datasetId
|
|
1984
|
+
if (datasetId && datasetName) {
|
|
1985
1985
|
throw new Error("Must provide either datasetName or datasetId, not both");
|
|
1986
1986
|
}
|
|
1987
|
-
else if (datasetId
|
|
1987
|
+
else if (datasetId) {
|
|
1988
1988
|
(0, _uuid_js_1.assertUuid)(datasetId);
|
|
1989
1989
|
path += `/${datasetId}`;
|
|
1990
1990
|
}
|
|
1991
|
-
else if (datasetName
|
|
1991
|
+
else if (datasetName) {
|
|
1992
1992
|
params.append("name", datasetName);
|
|
1993
1993
|
}
|
|
1994
1994
|
else {
|
package/dist/client.js
CHANGED
|
@@ -1943,14 +1943,14 @@ export class Client {
|
|
|
1943
1943
|
let path = "/datasets";
|
|
1944
1944
|
// limit to 1 result
|
|
1945
1945
|
const params = new URLSearchParams({ limit: "1" });
|
|
1946
|
-
if (datasetId
|
|
1946
|
+
if (datasetId && datasetName) {
|
|
1947
1947
|
throw new Error("Must provide either datasetName or datasetId, not both");
|
|
1948
1948
|
}
|
|
1949
|
-
else if (datasetId
|
|
1949
|
+
else if (datasetId) {
|
|
1950
1950
|
assertUuid(datasetId);
|
|
1951
1951
|
path += `/${datasetId}`;
|
|
1952
1952
|
}
|
|
1953
|
-
else if (datasetName
|
|
1953
|
+
else if (datasetName) {
|
|
1954
1954
|
params.append("name", datasetName);
|
|
1955
1955
|
}
|
|
1956
1956
|
else {
|
package/dist/index.cjs
CHANGED
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "overrideFetchImplementation", { enumerable: true
|
|
|
10
10
|
var project_js_1 = require("./utils/project.cjs");
|
|
11
11
|
Object.defineProperty(exports, "getDefaultProjectName", { enumerable: true, get: function () { return project_js_1.getDefaultProjectName; } });
|
|
12
12
|
// Update using yarn bump-version
|
|
13
|
-
exports.__version__ = "0.3.46
|
|
13
|
+
exports.__version__ = "0.3.46";
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export type { Dataset, Example, TracerSession, Run, Feedback, RetrieverOutput, }
|
|
|
3
3
|
export { RunTree, type RunTreeConfig } from "./run_trees.js";
|
|
4
4
|
export { overrideFetchImplementation } from "./singletons/fetch.js";
|
|
5
5
|
export { getDefaultProjectName } from "./utils/project.js";
|
|
6
|
-
export declare const __version__ = "0.3.46
|
|
6
|
+
export declare const __version__ = "0.3.46";
|
package/dist/index.js
CHANGED
|
@@ -3,4 +3,4 @@ export { RunTree } from "./run_trees.js";
|
|
|
3
3
|
export { overrideFetchImplementation } from "./singletons/fetch.js";
|
|
4
4
|
export { getDefaultProjectName } from "./utils/project.js";
|
|
5
5
|
// Update using yarn bump-version
|
|
6
|
-
export const __version__ = "0.3.46
|
|
6
|
+
export const __version__ = "0.3.46";
|