Skip to content

Commit 73f214f

Browse files
committed
chore: re-export env vars to langchainjs expected ones
1 parent 2c3908d commit 73f214f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

langchain-js/run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ setup_langchain_integration() {
3737

3838
yarn add --dev jest-junit
3939
export JEST_JUNIT_OUTPUT_NAME=results.xml
40-
40+
# Trim trailing slashes since lanchainjs is doing string manipulationn, not
41+
# using the URI class.
42+
export AZURE_OPENAI_BASE_PATH=$(echo "$$AZURE_OPENAI_ENDPOINT" | sed 's:/*$::')
43+
export AZURE_OPENAI_API_VERSION=$OPENAI_API_VERSION
4144
# optionally enable to debug local atlas in CI.
4245
# export DEBUG=testcontainers*
4346
}

0 commit comments

Comments
 (0)