Skip to content

Commit

Permalink
Remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Jan 2, 2025
1 parent 353653e commit c030ba1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion libs/langchain-cerebras/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ export class ChatCerebras
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const choice = (choices as any)[0];
const content = choice?.delta?.content ?? "";
console.log(rest.usage);
let usage: UsageMetadata | undefined;
if (rest.usage !== undefined) {
usage = {
Expand Down
2 changes: 1 addition & 1 deletion libs/langchain-cerebras/src/tests/chat_models.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,5 +280,5 @@ test("json mode", async () => {
response_format: { type: "json_object" },
});

expect(JSON.parse(res.content)).toEqual({ result: 4 });
expect(JSON.parse(res.content as string)).toEqual({ result: 4 });
});

0 comments on commit c030ba1

Please sign in to comment.