@n8n/n8n-nodes-langchain 2.18.2 → 2.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node-definitions/.nodes-hash +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/index.schema.js +32 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/index.ts +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_audio/index.schema.js +22 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_audio/index.ts +15 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_audio/operation_analyze.schema.js +34 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_audio/operation_analyze.ts +69 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_audio/operation_transcribe.schema.js +33 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_audio/operation_transcribe.ts +66 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_document/index.schema.js +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_document/index.ts +10 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_document/operation_analyze.schema.js +34 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_document/operation_analyze.ts +69 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file/index.schema.js +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file/index.ts +10 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file/operation_upload.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file/operation_upload.ts +43 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file_search/index.schema.js +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file_search/index.ts +21 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file_search/operation_create_store.schema.js +28 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file_search/operation_create_store.ts +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file_search/operation_delete_store.schema.js +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file_search/operation_delete_store.ts +35 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file_search/operation_list_stores.schema.js +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file_search/operation_list_stores.ts +35 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file_search/operation_upload_to_store.schema.js +32 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_file_search/operation_upload_to_store.ts +51 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_image/index.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_image/index.ts +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_image/operation_analyze.schema.js +34 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_image/operation_analyze.ts +69 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_image/operation_edit.schema.js +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_image/operation_edit.ts +61 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_image/operation_generate.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_image/operation_generate.ts +51 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_text/index.schema.js +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_text/index.ts +10 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_text/operation_message.schema.js +33 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_text/operation_message.ts +153 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_video/index.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_video/index.ts +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_video/operation_analyze.schema.js +34 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_video/operation_analyze.ts +69 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_video/operation_download.schema.js +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_video/operation_download.ts +41 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_video/operation_generate.schema.js +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/googleGemini/v12/resource_video/operation_generate.ts +68 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatGoogleGemini/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatGoogleGemini/v11.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatGoogleGemini/v11.ts +69 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v2/resource_image/operation_edit.schema.js +6 -6
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v21/resource_image/operation_edit.schema.js +6 -6
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v21/resource_image/operation_edit.ts +6 -6
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_image/operation_edit.schema.js +6 -6
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_image/operation_edit.ts +6 -6
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/index.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/index.ts +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_audio/index.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_audio/index.ts +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_audio/operation_generate.schema.js +32 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_audio/operation_generate.ts +60 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_audio/operation_transcribe.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_audio/operation_transcribe.ts +46 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_audio/operation_translate.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_audio/operation_translate.ts +43 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_conversation/index.schema.js +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_conversation/index.ts +21 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_conversation/operation_create.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_conversation/operation_create.ts +54 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_conversation/operation_get.schema.js +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_conversation/operation_get.ts +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_conversation/operation_remove.schema.js +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_conversation/operation_remove.ts +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_conversation/operation_update.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_conversation/operation_update.ts +36 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_file/index.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_file/index.ts +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_file/operation_delete_file.schema.js +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_file/operation_delete_file.ts +33 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_file/operation_list.schema.js +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_file/operation_list.ts +37 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_file/operation_upload.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_file/operation_upload.ts +43 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_image/index.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_image/index.ts +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_image/operation_analyze.schema.js +35 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_image/operation_analyze.ts +74 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_image/operation_edit.schema.js +39 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_image/operation_edit.ts +117 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_image/operation_generate.schema.js +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_image/operation_generate.ts +89 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_text/index.schema.js +22 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_text/index.ts +15 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_text/operation_classify.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_text/operation_classify.ts +36 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_text/operation_response.schema.js +34 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_text/operation_response.ts +317 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_video/index.schema.js +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_video/index.ts +10 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_video/operation_generate.schema.js +33 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_video/operation_generate.ts +67 -0
- package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.js +65 -48
- package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/descriptions.js +3 -0
- package/dist/nodes/vendors/GoogleGemini/actions/descriptions.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.js +9 -1
- package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/text/message.operation.js +6 -1
- package/dist/nodes/vendors/GoogleGemini/actions/text/message.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/versionDescription.js +2 -2
- package/dist/nodes/vendors/GoogleGemini/actions/versionDescription.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/methods/listSearch.js +3 -0
- package/dist/nodes/vendors/GoogleGemini/methods/listSearch.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/OpenAi.node.js +2 -1
- package/dist/nodes/vendors/OpenAi/OpenAi.node.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/methods/listSearch.js +18 -1
- package/dist/nodes/vendors/OpenAi/methods/listSearch.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/OpenAiV2.node.js +1 -1
- package/dist/nodes/vendors/OpenAi/v2/OpenAiV2.node.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/image/edit.operation.js +261 -10
- package/dist/nodes/vendors/OpenAi/v2/actions/image/edit.operation.js.map +1 -1
- package/dist/typecheck.tsbuildinfo +1 -1
- package/dist/types/nodes.json +4 -4
- package/package.json +6 -6
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAI Node - Version 2.3
|
|
3
|
+
* Discriminator: resource=text, operation=response
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
openAiApi: CredentialReference;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Generate a model response with GPT 3, 4, 5, etc. using Responses API */
|
|
12
|
+
export type LcOpenAiV23TextResponseParams = {
|
|
13
|
+
resource: 'text';
|
|
14
|
+
operation: 'response';
|
|
15
|
+
/**
|
|
16
|
+
* Model
|
|
17
|
+
* @searchListMethod modelSearch
|
|
18
|
+
* @default {"mode":"list","value":""}
|
|
19
|
+
*/
|
|
20
|
+
modelId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
21
|
+
/**
|
|
22
|
+
* Messages
|
|
23
|
+
* @default {"values":[{"type":"text"}]}
|
|
24
|
+
*/
|
|
25
|
+
responses?: {
|
|
26
|
+
/** Message
|
|
27
|
+
*/
|
|
28
|
+
values?: Array<{
|
|
29
|
+
/** Type
|
|
30
|
+
* @default text
|
|
31
|
+
*/
|
|
32
|
+
type?: 'text' | 'image' | 'file' | Expression<string>;
|
|
33
|
+
/** Role in shaping the model's response, it tells the model how it should behave and interact with the user
|
|
34
|
+
* @default user
|
|
35
|
+
*/
|
|
36
|
+
role?: 'user' | 'assistant' | 'system' | Expression<string>;
|
|
37
|
+
/** The content of the message to be send
|
|
38
|
+
* @displayOptions.show { type: ["text"] }
|
|
39
|
+
*/
|
|
40
|
+
content?: string | Expression<string> | PlaceholderValue;
|
|
41
|
+
/** Image Type
|
|
42
|
+
* @displayOptions.show { type: ["image"] }
|
|
43
|
+
* @default url
|
|
44
|
+
*/
|
|
45
|
+
imageType?: 'url' | 'fileId' | 'base64' | Expression<string>;
|
|
46
|
+
/** URL of the image to be sent
|
|
47
|
+
* @displayOptions.show { type: ["image"], imageType: ["url"] }
|
|
48
|
+
*/
|
|
49
|
+
imageUrl?: string | Expression<string> | PlaceholderValue;
|
|
50
|
+
/** Name of the binary property which contains the image(s)
|
|
51
|
+
* @hint The name of the input field containing the binary file data to be processed
|
|
52
|
+
* @displayOptions.show { type: ["image"], imageType: ["base64"] }
|
|
53
|
+
* @default data
|
|
54
|
+
*/
|
|
55
|
+
binaryPropertyName?: string | Expression<string> | PlaceholderValue;
|
|
56
|
+
/** ID of the file to be sent
|
|
57
|
+
* @displayOptions.show { type: ["image"], imageType: ["fileId"] }
|
|
58
|
+
*/
|
|
59
|
+
fileId?: string | Expression<string> | PlaceholderValue;
|
|
60
|
+
/** The detail level of the image to be sent to the model
|
|
61
|
+
* @displayOptions.show { type: ["image"] }
|
|
62
|
+
* @default auto
|
|
63
|
+
*/
|
|
64
|
+
imageDetail?: 'auto' | 'low' | 'high' | Expression<string>;
|
|
65
|
+
/** File Type
|
|
66
|
+
* @displayOptions.show { type: ["file"] }
|
|
67
|
+
* @default url
|
|
68
|
+
*/
|
|
69
|
+
fileType?: 'url' | 'fileId' | 'base64' | Expression<string>;
|
|
70
|
+
/** URL of the file to be sent. Accepts base64 encoded files as well.
|
|
71
|
+
* @displayOptions.show { type: ["file"], fileType: ["url"] }
|
|
72
|
+
*/
|
|
73
|
+
fileUrl?: string | Expression<string> | PlaceholderValue;
|
|
74
|
+
/** ID of the file to be sent
|
|
75
|
+
* @displayOptions.show { type: ["file"], fileType: ["fileId"] }
|
|
76
|
+
*/
|
|
77
|
+
fileId?: string | Expression<string> | PlaceholderValue;
|
|
78
|
+
/** Name of the binary property which contains the file
|
|
79
|
+
* @hint The name of the input field containing the binary file data to be processed
|
|
80
|
+
* @displayOptions.show { type: ["file"], fileType: ["base64"] }
|
|
81
|
+
* @default data
|
|
82
|
+
*/
|
|
83
|
+
binaryPropertyName?: string | Expression<string> | PlaceholderValue;
|
|
84
|
+
/** File Name
|
|
85
|
+
* @displayOptions.show { type: ["file"], fileType: ["base64"] }
|
|
86
|
+
*/
|
|
87
|
+
fileName?: string | Expression<string> | PlaceholderValue;
|
|
88
|
+
}>;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Whether to return a simplified version of the response instead of the raw data
|
|
92
|
+
* @default true
|
|
93
|
+
*/
|
|
94
|
+
simplify?: boolean | Expression<boolean>;
|
|
95
|
+
/**
|
|
96
|
+
* Hide Tools
|
|
97
|
+
* @displayOptions.show { modelId: ["gpt-3.5-turbo-16k-0613", "dall-e-3", "text-embedding-3-large", "dall-e-2", "whisper-1", "tts-1-hd-1106", "tts-1-hd", "gpt-4-0314", "text-embedding-3-small", "gpt-4-32k-0314", "gpt-3.5-turbo-0301", "gpt-4-vision-preview", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-instruct-0914", "tts-1", "davinci-002", "gpt-3.5-turbo-instruct", "babbage-002", "tts-1-1106", "text-embedding-ada-002"] }
|
|
98
|
+
* @default hide
|
|
99
|
+
*/
|
|
100
|
+
hideTools?: unknown;
|
|
101
|
+
/**
|
|
102
|
+
* Built-in Tools
|
|
103
|
+
* @default {}
|
|
104
|
+
*/
|
|
105
|
+
builtInTools?: {
|
|
106
|
+
/** Web Search
|
|
107
|
+
* @default {"searchContextSize":"medium"}
|
|
108
|
+
*/
|
|
109
|
+
webSearch?: {
|
|
110
|
+
/** High level guidance for the amount of context window space to use for the search
|
|
111
|
+
* @default medium
|
|
112
|
+
*/
|
|
113
|
+
searchContextSize?: 'low' | 'medium' | 'high' | Expression<string>;
|
|
114
|
+
/** Comma-separated list of domains to search. Only domains in this list will be searched.
|
|
115
|
+
*/
|
|
116
|
+
allowedDomains?: string | Expression<string> | PlaceholderValue;
|
|
117
|
+
/** Country
|
|
118
|
+
*/
|
|
119
|
+
country?: string | Expression<string> | PlaceholderValue;
|
|
120
|
+
/** City
|
|
121
|
+
*/
|
|
122
|
+
city?: string | Expression<string> | PlaceholderValue;
|
|
123
|
+
/** Region
|
|
124
|
+
*/
|
|
125
|
+
region?: string | Expression<string> | PlaceholderValue;
|
|
126
|
+
};
|
|
127
|
+
/** File Search
|
|
128
|
+
* @default {"vectorStoreIds":"[]"}
|
|
129
|
+
*/
|
|
130
|
+
fileSearch?: {
|
|
131
|
+
/** The vector store IDs to use for the file search. Vector stores are managed via OpenAI Dashboard.
|
|
132
|
+
* @default []
|
|
133
|
+
*/
|
|
134
|
+
vectorStoreIds?: IDataObject | string | Expression<string>;
|
|
135
|
+
/** Filters
|
|
136
|
+
* @default {}
|
|
137
|
+
*/
|
|
138
|
+
filters?: IDataObject | string | Expression<string>;
|
|
139
|
+
/** Max Results
|
|
140
|
+
* @default 1
|
|
141
|
+
*/
|
|
142
|
+
maxResults?: number | Expression<number>;
|
|
143
|
+
};
|
|
144
|
+
/** Whether to allow the model to execute code in a sandboxed environment
|
|
145
|
+
* @default true
|
|
146
|
+
*/
|
|
147
|
+
codeInterpreter?: boolean | Expression<boolean>;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Options
|
|
151
|
+
* @default {}
|
|
152
|
+
*/
|
|
153
|
+
options?: {
|
|
154
|
+
/** The conversation that this response belongs to. Input items and output items from this response are automatically added to this conversation after this response completes.
|
|
155
|
+
*/
|
|
156
|
+
conversationId?: string | Expression<string> | PlaceholderValue;
|
|
157
|
+
/** Specify additional output data to include in the model response
|
|
158
|
+
* @default []
|
|
159
|
+
*/
|
|
160
|
+
include?: Array<'code_interpreter_call.outputs' | 'computer_call_output.output.image_url' | 'file_search_call.results' | 'message.input_image.image_url' | 'message.output_text.logprobs' | 'reasoning.encrypted_content' | 'web_search_call.action.sources'>;
|
|
161
|
+
/** Instructions for the model to follow
|
|
162
|
+
*/
|
|
163
|
+
instructions?: string | Expression<string> | PlaceholderValue;
|
|
164
|
+
/** The maximum number of tokens to generate in the completion. Most models have a context length of 2048 tokens (except for the newest models, which support 32,768).
|
|
165
|
+
* @default 16
|
|
166
|
+
*/
|
|
167
|
+
maxTokens?: number | Expression<number>;
|
|
168
|
+
/** The maximum number of tool iteration cycles the LLM will run before stopping. A single iteration can contain multiple tool calls. Set to 0 for no limit.
|
|
169
|
+
* @default 15
|
|
170
|
+
*/
|
|
171
|
+
maxToolsIterations?: number | Expression<number>;
|
|
172
|
+
/** The maximum number of total calls to built-in tools that can be processed in a response. This maximum number applies across all built-in tool calls, not per individual tool. Any further attempts to call a tool by the model will be ignored.
|
|
173
|
+
* @default 15
|
|
174
|
+
*/
|
|
175
|
+
maxToolCalls?: number | Expression<number>;
|
|
176
|
+
/** Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
|
|
177
|
+
* @default {}
|
|
178
|
+
*/
|
|
179
|
+
metadata?: IDataObject | string | Expression<string>;
|
|
180
|
+
/** Whether to allow parallel tool calls. If true, the model can call multiple tools at once.
|
|
181
|
+
* @default false
|
|
182
|
+
*/
|
|
183
|
+
parallelToolCalls?: boolean | Expression<boolean>;
|
|
184
|
+
/** The ID of the previous response to continue from. Cannot be used in conjunction with Conversation ID.
|
|
185
|
+
*/
|
|
186
|
+
previousResponseId?: string | Expression<string> | PlaceholderValue;
|
|
187
|
+
/** Configure the reusable prompt template configured via OpenAI Dashboard. <a href="https://platform.openai.com/docs/guides/prompt-engineering#reusable-prompts">Learn more</a>.
|
|
188
|
+
* @default {"promptOptions":[{"promptId":""}]}
|
|
189
|
+
*/
|
|
190
|
+
promptConfig?: {
|
|
191
|
+
/** Prompt
|
|
192
|
+
*/
|
|
193
|
+
promptOptions?: {
|
|
194
|
+
/** The unique identifier of the prompt template to use
|
|
195
|
+
*/
|
|
196
|
+
promptId?: string | Expression<string> | PlaceholderValue;
|
|
197
|
+
/** Optional version of the prompt template
|
|
198
|
+
*/
|
|
199
|
+
version?: string | Expression<string> | PlaceholderValue;
|
|
200
|
+
/** Variables to be substituted into the prompt template
|
|
201
|
+
* @default {}
|
|
202
|
+
*/
|
|
203
|
+
variables?: IDataObject | string | Expression<string>;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
/** Used by OpenAI to cache responses for similar requests to optimize your cache hit rates
|
|
207
|
+
*/
|
|
208
|
+
promptCacheKey?: string | Expression<string> | PlaceholderValue;
|
|
209
|
+
/** Reasoning
|
|
210
|
+
* @default {"reasoningOptions":[{"effort":"medium","summary":"none"}]}
|
|
211
|
+
*/
|
|
212
|
+
reasoning?: {
|
|
213
|
+
/** Reasoning
|
|
214
|
+
*/
|
|
215
|
+
reasoningOptions?: {
|
|
216
|
+
/** Effort
|
|
217
|
+
* @default medium
|
|
218
|
+
*/
|
|
219
|
+
effort?: 'low' | 'medium' | 'high' | Expression<string>;
|
|
220
|
+
/** A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process.
|
|
221
|
+
* @default auto
|
|
222
|
+
*/
|
|
223
|
+
summary?: 'none' | 'auto' | 'concise' | 'detailed' | Expression<string>;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
/** A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies. The IDs should be a string that uniquely identifies each user.
|
|
227
|
+
*/
|
|
228
|
+
safetyIdentifier?: string | Expression<string> | PlaceholderValue;
|
|
229
|
+
/** The service tier to use for the request
|
|
230
|
+
* @default auto
|
|
231
|
+
*/
|
|
232
|
+
serviceTier?: 'auto' | 'flex' | 'default' | 'priority' | Expression<string>;
|
|
233
|
+
/** Whether to store the generated model response for later retrieval via API
|
|
234
|
+
* @default true
|
|
235
|
+
*/
|
|
236
|
+
store?: boolean | Expression<boolean>;
|
|
237
|
+
/** Output Format
|
|
238
|
+
* @default {"textOptions":[{"type":"text"}]}
|
|
239
|
+
*/
|
|
240
|
+
textFormat?: {
|
|
241
|
+
/** Text
|
|
242
|
+
*/
|
|
243
|
+
textOptions?: {
|
|
244
|
+
/** Type
|
|
245
|
+
*/
|
|
246
|
+
type?: 'text' | 'json_schema' | 'json_object' | Expression<string>;
|
|
247
|
+
/** Verbosity
|
|
248
|
+
* @default medium
|
|
249
|
+
*/
|
|
250
|
+
verbosity?: 'low' | 'medium' | 'high' | Expression<string>;
|
|
251
|
+
/** The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
252
|
+
* @displayOptions.show { type: ["json_schema"] }
|
|
253
|
+
* @default my_schema
|
|
254
|
+
*/
|
|
255
|
+
name?: string | Expression<string> | PlaceholderValue;
|
|
256
|
+
/** The schema of the response format
|
|
257
|
+
* @displayOptions.show { type: ["json_schema"] }
|
|
258
|
+
*/
|
|
259
|
+
schema?: IDataObject | string | Expression<string>;
|
|
260
|
+
/** The description of the response format
|
|
261
|
+
* @displayOptions.show { type: ["json_schema"] }
|
|
262
|
+
*/
|
|
263
|
+
description?: string | Expression<string> | PlaceholderValue;
|
|
264
|
+
/** Whether to require that the AI will always generate responses that match the provided JSON Schema
|
|
265
|
+
* @displayOptions.show { type: ["json_schema"] }
|
|
266
|
+
* @default false
|
|
267
|
+
*/
|
|
268
|
+
strict?: boolean | Expression<boolean>;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
/** An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability
|
|
272
|
+
* @default 0
|
|
273
|
+
*/
|
|
274
|
+
topLogprobs?: number | Expression<number>;
|
|
275
|
+
/** What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both
|
|
276
|
+
* @default 1
|
|
277
|
+
*/
|
|
278
|
+
temperature?: number | Expression<number>;
|
|
279
|
+
/** An alternative to sampling with temperature, controls diversity via nucleus sampling: 0.5 means half of all likelihood-weighted options are considered. We generally recommend altering this or temperature but not both.
|
|
280
|
+
* @default 1
|
|
281
|
+
*/
|
|
282
|
+
topP?: number | Expression<number>;
|
|
283
|
+
/** Whether to truncate the input to the model's context window size. When disabled will throw a 400 error instead.
|
|
284
|
+
* @default false
|
|
285
|
+
*/
|
|
286
|
+
truncation?: boolean | Expression<boolean>;
|
|
287
|
+
/** Background Mode
|
|
288
|
+
* @default {"values":[{"backgroundMode":true}]}
|
|
289
|
+
*/
|
|
290
|
+
backgroundMode?: {
|
|
291
|
+
/** Bakground
|
|
292
|
+
*/
|
|
293
|
+
values?: {
|
|
294
|
+
/** Whether to run the model in background mode. If true, the model will run in background mode.
|
|
295
|
+
* @default false
|
|
296
|
+
*/
|
|
297
|
+
enabled?: boolean | Expression<boolean>;
|
|
298
|
+
/** The timeout for the background mode in seconds. If 0, the timeout is infinite.
|
|
299
|
+
* @default 300
|
|
300
|
+
*/
|
|
301
|
+
timeout?: number | Expression<number>;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
export interface LcOpenAiV23TextResponseSubnodeConfig {
|
|
308
|
+
tools?: ToolInstance[];
|
|
309
|
+
memory?: MemoryInstance;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export type LcOpenAiV23TextResponseNode = {
|
|
313
|
+
type: '@n8n/n8n-nodes-langchain.openAi';
|
|
314
|
+
version: 2.3;
|
|
315
|
+
credentials?: Credentials;
|
|
316
|
+
config: NodeConfig<LcOpenAiV23TextResponseParams> & { subnodes?: LcOpenAiV23TextResponseSubnodeConfig };
|
|
317
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_video/index.schema.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAI - Video Resource - Zod Schema Factory
|
|
3
|
+
* Exports a factory that unions all operation schemas for this resource.
|
|
4
|
+
*
|
|
5
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
6
|
+
* by the schema-validator, not imported from external files.
|
|
7
|
+
*
|
|
8
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const getGenerateSchema = require('./operation_generate.schema');
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema(helpers) {
|
|
14
|
+
const { parameters, z } = helpers;
|
|
15
|
+
// Apply operation default if not set
|
|
16
|
+
const effectiveParams = parameters.operation === undefined ? { ...parameters, operation: 'generate' } : parameters;
|
|
17
|
+
return getGenerateSchema({ ...helpers, parameters: effectiveParams });
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAI - Video Resource
|
|
3
|
+
* Re-exports all operation types for this resource.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { LcOpenAiV23VideoGenerateNode } from './operation_generate';
|
|
7
|
+
|
|
8
|
+
export * from './operation_generate';
|
|
9
|
+
|
|
10
|
+
export type LcOpenAiV23VideoNode = LcOpenAiV23VideoGenerateNode;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAI Node - Version 2.3 - Zod Schema
|
|
3
|
+
* Discriminator: resource=video, operation=generate
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, toolInstanceSchema, memoryInstanceSchema }) {
|
|
14
|
+
|
|
15
|
+
// Static subnode schema
|
|
16
|
+
const subnodesSchema = z.object({
|
|
17
|
+
tools: z.array(toolInstanceSchema).optional(),
|
|
18
|
+
memory: memoryInstanceSchema.optional(),
|
|
19
|
+
}).strict();
|
|
20
|
+
|
|
21
|
+
return z.object({
|
|
22
|
+
parameters: z.object({
|
|
23
|
+
resource: z.literal('video'),
|
|
24
|
+
operation: z.literal('generate').default('generate'),
|
|
25
|
+
modelId: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(),
|
|
26
|
+
prompt: stringOrExpression.optional(),
|
|
27
|
+
seconds: numberOrExpression.optional(),
|
|
28
|
+
size: z.union([z.literal('720x1280'), z.literal('1280x720'), z.literal('1024x1792'), z.literal('1792x1024'), expressionSchema]).optional(),
|
|
29
|
+
options: z.object({ binaryPropertyNameReference: stringOrExpression.optional(), waitTime: numberOrExpression.optional(), fileName: stringOrExpression.optional() }).optional(),
|
|
30
|
+
}).optional(),
|
|
31
|
+
subnodes: subnodesSchema.optional(),
|
|
32
|
+
});
|
|
33
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAI Node - Version 2.3
|
|
3
|
+
* Discriminator: resource=video, operation=generate
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
openAiApi: CredentialReference;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Creates audio from a text prompt */
|
|
12
|
+
export type LcOpenAiV23VideoGenerateParams = {
|
|
13
|
+
resource: 'video';
|
|
14
|
+
operation: 'generate';
|
|
15
|
+
/**
|
|
16
|
+
* Model
|
|
17
|
+
* @searchListMethod videoModelSearch
|
|
18
|
+
* @default {"mode":"list","value":""}
|
|
19
|
+
*/
|
|
20
|
+
modelId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
21
|
+
/**
|
|
22
|
+
* The prompt to generate a video from
|
|
23
|
+
* @default A video of a cat playing with a ball
|
|
24
|
+
*/
|
|
25
|
+
prompt?: string | Expression<string> | PlaceholderValue;
|
|
26
|
+
/**
|
|
27
|
+
* Clip duration in seconds
|
|
28
|
+
* @default 4
|
|
29
|
+
*/
|
|
30
|
+
seconds?: number | Expression<number>;
|
|
31
|
+
/**
|
|
32
|
+
* Output resolution formatted as width x height. 1024x1792 and 1792x1024 are only supported by Sora 2 Pro.
|
|
33
|
+
* @default 1280x720
|
|
34
|
+
*/
|
|
35
|
+
size?: '720x1280' | '1280x720' | '1024x1792' | '1792x1024' | Expression<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Options
|
|
38
|
+
* @default {}
|
|
39
|
+
*/
|
|
40
|
+
options?: {
|
|
41
|
+
/** Optional image reference that guides generation
|
|
42
|
+
* @default data
|
|
43
|
+
*/
|
|
44
|
+
binaryPropertyNameReference?: string | Expression<string> | PlaceholderValue;
|
|
45
|
+
/** Time to wait for the video to be generated in seconds
|
|
46
|
+
* @default 300
|
|
47
|
+
*/
|
|
48
|
+
waitTime?: number | Expression<number>;
|
|
49
|
+
/** Output Field Name
|
|
50
|
+
* @hint The name of the output field to put the binary file data in
|
|
51
|
+
* @default data
|
|
52
|
+
*/
|
|
53
|
+
fileName?: string | Expression<string> | PlaceholderValue;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export interface LcOpenAiV23VideoGenerateSubnodeConfig {
|
|
58
|
+
tools?: ToolInstance[];
|
|
59
|
+
memory?: MemoryInstance;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type LcOpenAiV23VideoGenerateNode = {
|
|
63
|
+
type: '@n8n/n8n-nodes-langchain.openAi';
|
|
64
|
+
version: 2.3;
|
|
65
|
+
credentials?: Credentials;
|
|
66
|
+
config: NodeConfig<LcOpenAiV23VideoGenerateParams> & { subnodes?: LcOpenAiV23VideoGenerateSubnodeConfig };
|
|
67
|
+
};
|
|
@@ -11,6 +11,59 @@ function errorDescriptionMapper(error) {
|
|
|
11
11
|
}
|
|
12
12
|
return error.description ?? 'Unknown error';
|
|
13
13
|
}
|
|
14
|
+
const modelRLC = {
|
|
15
|
+
displayName: 'Model',
|
|
16
|
+
name: 'modelName',
|
|
17
|
+
type: 'options',
|
|
18
|
+
description: 'The model which will generate the completion. <a href="https://developers.generativeai.google/api/rest/generativelanguage/models/list">Learn more</a>.',
|
|
19
|
+
typeOptions: {
|
|
20
|
+
loadOptions: {
|
|
21
|
+
routing: {
|
|
22
|
+
request: {
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '/v1beta/models',
|
|
25
|
+
},
|
|
26
|
+
output: {
|
|
27
|
+
postReceive: [
|
|
28
|
+
{
|
|
29
|
+
type: 'rootProperty',
|
|
30
|
+
properties: {
|
|
31
|
+
property: 'models',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: 'filter',
|
|
36
|
+
properties: {
|
|
37
|
+
pass: "={{ !$responseItem.name.includes('embedding') }}",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: 'setKeyValue',
|
|
42
|
+
properties: {
|
|
43
|
+
name: '={{$responseItem.name}}',
|
|
44
|
+
value: '={{$responseItem.name}}',
|
|
45
|
+
description: '={{$responseItem.description}}',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
type: 'sort',
|
|
50
|
+
properties: {
|
|
51
|
+
key: 'name',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
routing: {
|
|
60
|
+
send: {
|
|
61
|
+
type: 'body',
|
|
62
|
+
property: 'model',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
default: 'models/gemini-2.5-flash',
|
|
66
|
+
};
|
|
14
67
|
class LmChatGoogleGemini {
|
|
15
68
|
constructor() {
|
|
16
69
|
this.description = {
|
|
@@ -18,7 +71,7 @@ class LmChatGoogleGemini {
|
|
|
18
71
|
name: 'lmChatGoogleGemini',
|
|
19
72
|
icon: 'file:google.svg',
|
|
20
73
|
group: ['transform'],
|
|
21
|
-
version: 1,
|
|
74
|
+
version: [1, 1.1],
|
|
22
75
|
description: 'Chat Model Google Gemini',
|
|
23
76
|
defaults: {
|
|
24
77
|
name: 'Google Gemini Chat Model',
|
|
@@ -53,57 +106,21 @@ class LmChatGoogleGemini {
|
|
|
53
106
|
properties: [
|
|
54
107
|
(0, ai_utilities_1.getConnectionHintNoticeField)([n8n_workflow_1.NodeConnectionTypes.AiChain, n8n_workflow_1.NodeConnectionTypes.AiAgent]),
|
|
55
108
|
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
typeOptions: {
|
|
61
|
-
loadOptions: {
|
|
62
|
-
routing: {
|
|
63
|
-
request: {
|
|
64
|
-
method: 'GET',
|
|
65
|
-
url: '/v1beta/models',
|
|
66
|
-
},
|
|
67
|
-
output: {
|
|
68
|
-
postReceive: [
|
|
69
|
-
{
|
|
70
|
-
type: 'rootProperty',
|
|
71
|
-
properties: {
|
|
72
|
-
property: 'models',
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
type: 'filter',
|
|
77
|
-
properties: {
|
|
78
|
-
pass: "={{ !$responseItem.name.includes('embedding') }}",
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
type: 'setKeyValue',
|
|
83
|
-
properties: {
|
|
84
|
-
name: '={{$responseItem.name}}',
|
|
85
|
-
value: '={{$responseItem.name}}',
|
|
86
|
-
description: '={{$responseItem.description}}',
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
type: 'sort',
|
|
91
|
-
properties: {
|
|
92
|
-
key: 'name',
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
},
|
|
109
|
+
...modelRLC,
|
|
110
|
+
displayOptions: {
|
|
111
|
+
show: {
|
|
112
|
+
'@version': [{ _cnd: { eq: 1 } }],
|
|
98
113
|
},
|
|
99
114
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
...modelRLC,
|
|
118
|
+
default: 'models/gemini-3-flash-preview',
|
|
119
|
+
displayOptions: {
|
|
120
|
+
show: {
|
|
121
|
+
'@version': [{ _cnd: { gte: 1.1 } }],
|
|
104
122
|
},
|
|
105
123
|
},
|
|
106
|
-
default: 'models/gemini-2.5-flash',
|
|
107
124
|
},
|
|
108
125
|
(0, additional_options_1.getAdditionalOptions)({ supportsThinkingBudget: false }),
|
|
109
126
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LmChatGoogleGemini.node.js","sourceRoot":"","sources":["../../../../nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.ts"],"names":[],"mappings":";;;AACA,0DAAiE;AACjE,+CAAmD;
|
|
1
|
+
{"version":3,"file":"LmChatGoogleGemini.node.js","sourceRoot":"","sources":["../../../../nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.ts"],"names":[],"mappings":";;;AACA,0DAAiE;AACjE,+CAAmD;AAUnD,4EAA2E;AAC3E,oDAI2B;AAE3B,SAAS,sBAAsB,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,UAAU,CAA6B,SAAiB;QAC7D,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;QAE/D,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,CAAW,CAAC;QAC1E,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE;YAC3D,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,GAAG;YAChB,IAAI,EAAE,EAAE;YACR,IAAI,EAAE,GAAG;SACT,CAKA,CAAC;QAEF,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAC3C,+BAA+B,EAC/B,SAAS,EACT,IAAI,CACe,CAAC;QAErB,MAAM,KAAK,GAAG,IAAI,qCAAsB,CAAC;YACxC,MAAM,EAAE,WAAW,CAAC,MAAgB;YACpC,OAAO,EAAE,WAAW,CAAC,IAAc;YACnC,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,eAAe,EAAE,OAAO,CAAC,eAAe;YACxC,cAAc;YACd,SAAS,EAAE,CAAC,IAAI,4BAAa,CAAC,IAAI,EAAE,EAAE,sBAAsB,EAAE,CAAC,CAAC;YAChE,eAAe,EAAE,IAAA,6CAA8B,EAAC,IAAI,CAAC;SACrD,CAAC,CAAC;QAEH,OAAO;YACN,QAAQ,EAAE,KAAK;SACf,CAAC;IACH,CAAC;CACD;AAzGD,gDAyGC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../../../../../nodes/vendors/GoogleGemini/actions/descriptions.ts"],"names":[],"mappings":";;;AAEO,MAAM,QAAQ,GAAG,CAAC,gBAAwB,EAAmB,EAAE,CAAC,CAAC;IACvE,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;IACpC,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACN;YACC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE;gBACZ,gBAAgB;gBAChB,UAAU,EAAE,IAAI;aAChB;SACD;QACD;YACC,WAAW,EAAE,IAAI;YACjB,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8BAA8B;SAC3C;KACD;CACD,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../../../../../nodes/vendors/GoogleGemini/actions/descriptions.ts"],"names":[],"mappings":";;;AAEO,MAAM,QAAQ,GAAG,CAAC,gBAAwB,EAAmB,EAAE,CAAC,CAAC;IACvE,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;IACpC,WAAW,EAAE;QACZ,oBAAoB,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC;KAC/C;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACN;YACC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE;gBACZ,gBAAgB;gBAChB,UAAU,EAAE,IAAI;aAChB;SACD;QACD;YACC,WAAW,EAAE,IAAI;YACjB,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8BAA8B;SAC3C;KACD;CACD,CAAC,CAAC;AA1BU,QAAA,QAAQ,YA0BlB"}
|
|
@@ -8,7 +8,15 @@ const utils_1 = require("../../helpers/utils");
|
|
|
8
8
|
const transport_1 = require("../../transport");
|
|
9
9
|
const descriptions_1 = require("../descriptions");
|
|
10
10
|
const properties = [
|
|
11
|
-
|
|
11
|
+
{
|
|
12
|
+
...(0, descriptions_1.modelRLC)('imageGenerationModelSearch'),
|
|
13
|
+
displayOptions: { show: { '@version': [{ _cnd: { lt: 1.2 } }] } },
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
...(0, descriptions_1.modelRLC)('imageGenerationModelSearch'),
|
|
17
|
+
default: { mode: 'list', value: 'models/gemini-3.1-flash-image-preview' },
|
|
18
|
+
displayOptions: { show: { '@version': [{ _cnd: { gte: 1.2 } }] } },
|
|
19
|
+
},
|
|
12
20
|
{
|
|
13
21
|
displayName: 'Prompt',
|
|
14
22
|
name: 'prompt',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.operation.js","sourceRoot":"","sources":["../../../../../../nodes/vendors/GoogleGemini/actions/image/generate.operation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"generate.operation.js","sourceRoot":"","sources":["../../../../../../nodes/vendors/GoogleGemini/actions/image/generate.operation.ts"],"names":[],"mappings":";;;AAwEA,0BA4FC;AAnKD,+CAAwE;AAExE,yDAKkC;AAClC,+CAA8D;AAC9D,+CAA6C;AAC7C,kDAA2C;AAE3C,MAAM,UAAU,GAAsB;IACrC;QACC,GAAG,IAAA,uBAAQ,EAAC,4BAA4B,CAAC;QACzC,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;KACjE;IACD;QACC,GAAG,IAAA,uBAAQ,EAAC,4BAA4B,CAAC;QACzC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,uCAAuC,EAAE;QACzE,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG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