Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Jul 14, 2024
1 parent 5fa9a78 commit d9c3a2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion langchain-core/src/tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export class DynamicTool<
* @deprecated Use .invoke() instead. Will be removed in 0.3.0.
*/
async call(
arg: string | undefined | z.input<this["schema"]>,
arg: string | undefined | z.input<this["schema"]> | ToolCall,
configArg?: RunnableConfig | Callbacks
): Promise<RunOutput> {
const config = parseCallbackConfigArg(configArg);
Expand Down
3 changes: 2 additions & 1 deletion libs/langchain-openai/src/tools/dalle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ export class DallEAPIWrapper extends Tool {
fields?.responseFormat !== undefined &&
["url", "b64_json"].includes(fields.responseFormat)
) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any no-param-reassign
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line no-param-reassign
fields.dallEResponseFormat = fields.responseFormat as any;

Check failure on line 119 in libs/langchain-openai/src/tools/dalle.ts

View workflow job for this annotation

GitHub Actions / Check linting

Unexpected any. Specify a different type
// eslint-disable-next-line no-param-reassign
fields.responseFormat = "content";
Expand Down

0 comments on commit d9c3a2e

Please sign in to comment.