Skip to content

Commit 653c16f

Browse files
committed
fix: rename adapter to visionAdapter in PluginOptions and update usage in BulkAiFlowPlugin
1 parent 8e58c3a commit 653c16f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
102102
Image URLs:`;
103103

104104
//send prompt to OpenAI and get response
105-
const chatResponse = await this.options.adapter.generate({ prompt, inputFileUrls: attachmentFiles });
105+
const chatResponse = await this.options.visionAdapter.generate({ prompt, inputFileUrls: attachmentFiles });
106106

107107
const resp: any = (chatResponse as any).response;
108108
const topLevelError = (chatResponse as any).error;

types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ImageVisionAdapter, AdminUser, IAdminForth, StorageAdapter } from "admi
33

44
export interface PluginOptions {
55
actionName: string,
6-
adapter: ImageVisionAdapter,
6+
visionAdapter: ImageVisionAdapter,
77
outputFields: Record<string, string>[],
88
attachFiles?: ({ record }: {
99
record: any,

0 commit comments

Comments
 (0)