Skip to content

Commit

Permalink
chore: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jun 13, 2024
1 parent 592dba9 commit e413a3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions langchain-core/src/language_models/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ export abstract class BaseChatModel<
parsed: RunOutput;
}
> {
if (!("bindTools" in this) || typeof this.bindTools !== "function") {
if (typeof this.bindTools !== "function") {
throw new Error(
`Chat model must implement ".bindTools()" to use withStructuredOutput.`
);
Expand Down Expand Up @@ -897,4 +897,4 @@ export abstract class SimpleChatModel<
],
};
}
}
}

0 comments on commit e413a3c

Please sign in to comment.