Skip to content

Commit

Permalink
make LANGSMITH_PROJECT work (#1404)
Browse files Browse the repository at this point in the history
  • Loading branch information
isahers1 authored Jan 9, 2025
1 parent d6c66dd commit c36cf67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/src/run_trees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
import {
RuntimeEnvironment,
getEnvironmentVariable,
getLangSmithEnvironmentVariable,
getRuntimeEnvironment,
} from "./utils/env.js";
import { Client } from "./client.js";
Expand Down Expand Up @@ -231,7 +232,7 @@ export class RunTree implements BaseRun {
id: uuid.v4(),
run_type: "chain",
project_name:
getEnvironmentVariable("LANGCHAIN_PROJECT") ??
getLangSmithEnvironmentVariable("PROJECT") ??
getEnvironmentVariable("LANGCHAIN_SESSION") ?? // TODO: Deprecate
"default",
child_runs: [],
Expand Down

0 comments on commit c36cf67

Please sign in to comment.