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

Release 0.0.196 #3366

Merged
merged 2 commits into from
Nov 22, 2023
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
2 changes: 1 addition & 1 deletion langchain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langchain",
"version": "0.0.195",
"version": "0.0.196",
"description": "Typescript bindings for langchain",
"type": "module",
"engines": {
Expand Down
36 changes: 18 additions & 18 deletions langchain/src/chat_models/tests/chatbedrock.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ import { test, expect } from "@jest/globals";
import { BedrockChat } from "../bedrock/web.js";
import { HumanMessage } from "../../schema/index.js";

void testChatModel(
"Test Bedrock chat model: Llama2 13B v1",
"us-east-1",
"meta.llama2-13b-chat-v1",
"What is your name?"
);
void testChatStreamingModel(
"Test Bedrock streaming chat model: Llama2 13B v1",
"us-east-1",
"meta.llama2-13b-chat-v1",
"What is your name and something about yourself?"
);
// void testChatModel(
// "Test Bedrock chat model: Llama2 13B v1",
// "us-east-1",
// "meta.llama2-13b-chat-v1",
// "What is your name?"
// );
// void testChatStreamingModel(
// "Test Bedrock streaming chat model: Llama2 13B v1",
// "us-east-1",
// "meta.llama2-13b-chat-v1",
// "What is your name and something about yourself?"
// );

void testChatModel(
"Test Bedrock chat model: Claude-v2",
Expand All @@ -37,12 +37,12 @@ void testChatHandleLLMNewToken(
"anthropic.claude-v2",
"What is your name and something about yourself?"
);
void testChatHandleLLMNewToken(
"Test Bedrock chat model HandleLLMNewToken: Llama2 13B v1",
"us-east-1",
"meta.llama2-13b-chat-v1",
"What is your name and something about yourself?"
);
// void testChatHandleLLMNewToken(
// "Test Bedrock chat model HandleLLMNewToken: Llama2 13B v1",
// "us-east-1",
// "meta.llama2-13b-chat-v1",
// "What is your name and something about yourself?"
// );

/**
* Tests a BedrockChat model
Expand Down
4 changes: 2 additions & 2 deletions langchain/src/llms/tests/bedrock.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test("Test Bedrock LLM: AI21", async () => {
console.log(res);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is flagging the change in the PR for maintainers to review because it skips a test case that accesses an environment variable via process.env.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is flagging the change in the PR for maintainers to review because it skips a test case that accesses an environment variable via process.env.

});

test("Test Bedrock LLM: Meta Llama2", async () => {
test.skip("Test Bedrock LLM: Meta Llama2", async () => {
const region = process.env.BEDROCK_AWS_REGION!;
const model = "meta.llama2-13b-chat-v1";
const prompt = "Human: What is your name?";
Expand All @@ -50,7 +50,7 @@ test("Test Bedrock LLM: Meta Llama2", async () => {
console.log(res);
});

test("Test Bedrock LLM streaming: Meta Llama2", async () => {
test.skip("Test Bedrock LLM streaming: Meta Llama2", async () => {
const region = process.env.BEDROCK_AWS_REGION!;
const model = "meta.llama2-13b-chat-v1";
const prompt = "What is your name?";
Expand Down