Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing function for testing langchainjs #466

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/run-upstream
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test_client_faas
test_client_cloudevents
test_client_fastify
test_client_pino
test_client_langchain
test_client_langchainjs
"

readonly EXPRESS_REVISION="${EXPRESS_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show express version)}"
Expand All @@ -45,8 +45,8 @@ readonly CLOUDEVENTS_REVISION="v${CLOUDEVENTS_REVISION:-$(docker run --rm "${IMA
readonly CLOUDEVENTS_REPO="https://github.com/cloudevents/sdk-javascript.git"
readonly FASTIFY_REVISION="v${FASTIFY_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show fastify version)}"
readonly FASTIFY_REPO="https://github.com/fastify/fastify.git"
readonly LANGCHAIN_REVISION=v"${LANGCHAIN_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show langchain version)}"
readonly LANGCHAIN_REPO="https://github.com/langchain-ai/langchainjs"
readonly LANGCHAINJS_REVISION="${LANGCHAINJS_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show langchain version)}"
readonly LANGCHAINJS_REPO="https://github.com/langchain-ai/langchainjs.git"

# Since we built the candidate image locally, we don't want S2I attempt to pull
# it from a registry
Expand Down
6 changes: 6 additions & 0 deletions test/test-lib-nodejs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,12 @@ function test_client_cloudevents() {
echo "Running CloudEvents client test"
test_running_client_js cloudevents
}

function test_client_langchainjs() {
echo "Running langchainjs client test"
test_running_client_js langchainjs
}

function test_client_fastify() {
if [[ "${VERSION}" == *"minimal"* ]]; then
VERSION=$(echo "${VERSION}" | cut -d "-" -f 1)
Expand Down
Loading