Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul authored Aug 2, 2024
1 parent 2dd0efa commit f38e2e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libs/langchain-baidu-qianfan/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ declare interface BaiduQianfanChatInput {
/**
* Model name to use. Available options are: ERNIE-Bot, ERNIE-Lite-8K, ERNIE-Bot-4
* Alias for `model`
* @default "ERNIE-Lite-8K"
* @default "ERNIE-Bot-turbo"
*/
modelName: string;
/** Model name to use. Available options are: ERNIE-Bot, ERNIE-Lite-8K, ERNIE-Bot-4
* @default "ERNIE-Lite-8K"
* @default "ERNIE-Bot-turbo"
*/
model: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test("invoke", async () => {
});
const message = new HumanMessage("北京天气");
const res = await chat.invoke([message]);
console.log(res.content);
// console.log(res.content);
expect(res.content.length).toBeGreaterThan(10);
});

Expand All @@ -20,6 +20,6 @@ test("invokeWithStream", async () => {
});
const message = new HumanMessage("等额本金和等额本息有什么区别?");
const res = await chat.invoke([message]);
console.log({ res });
// console.log({ res });
expect(res.content.length).toBeGreaterThan(10);
});

0 comments on commit f38e2e5

Please sign in to comment.