Skip to content

Commit

Permalink
chore: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jul 17, 2024
1 parent a5be894 commit c5427f3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion libs/langchain-cohere/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ export class ChatCohere<

invocationParams(options: this["ParsedCallOptions"]) {
if (options.tool_choice) {
throw new Error("'tool_choice' call option is not supported by ChatCohere.")
throw new Error(
"'tool_choice' call option is not supported by ChatCohere."
);
}

const params = {
Expand Down
4 changes: 3 additions & 1 deletion libs/langchain-community/src/chat_models/bedrock/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ export class BedrockChat

override invocationParams(options?: this["ParsedCallOptions"]) {
if (options?.tool_choice) {
throw new Error("'tool_choice' call option is not supported by BedrockChat.")
throw new Error(
"'tool_choice' call option is not supported by BedrockChat."
);
}

const callOptionTools = formatTools(options?.tools ?? []);
Expand Down
4 changes: 3 additions & 1 deletion libs/langchain-google-common/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,9 @@ export abstract class ChatGoogleBase<AuthOptions>
*/
override invocationParams(options?: this["ParsedCallOptions"]) {
if (options?.tool_choice) {
throw new Error(`'tool_choice' call option is not supported by ${this.getName()}.`);
throw new Error(
`'tool_choice' call option is not supported by ${this.getName()}.`
);
}

return copyAIModelParams(this, options);
Expand Down
2 changes: 1 addition & 1 deletion libs/langchain-google-common/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { BaseLLMParams } from "@langchain/core/language_models/llms";
import { StructuredToolInterface } from "@langchain/core/tools";
import type { JsonStream } from "./utils/stream.js";
import type { BaseChatModelCallOptions } from "@langchain/core/language_models/chat_models";
import type { JsonStream } from "./utils/stream.js";

/**
* Parameters needed to setup the client connection.
Expand Down
4 changes: 3 additions & 1 deletion libs/langchain-google-genai/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,9 @@ export class ChatGoogleGenerativeAI
options?: this["ParsedCallOptions"]
): Omit<GenerateContentRequest, "contents"> {
if (options?.tool_choice) {
throw new Error("'tool_choice' call option is not supported by ChatGoogleGenerativeAI.")
throw new Error(
"'tool_choice' call option is not supported by ChatGoogleGenerativeAI."
);
}

const tools = options?.tools as
Expand Down

0 comments on commit c5427f3

Please sign in to comment.