n8n-nodes-github-copilot 3.4.0 → 3.5.1
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/credentials/GitHubApi.credentials.d.ts +8 -8
- package/dist/credentials/GitHubApi.credentials.js +50 -50
- package/dist/credentials/GitHubApiManual.credentials.d.ts +7 -7
- package/dist/credentials/GitHubApiManual.credentials.js +33 -33
- package/dist/nodes/GitHubCopilot/GitHubCopilot.node.d.ts +5 -5
- package/dist/nodes/GitHubCopilot/GitHubCopilot.node.js +324 -324
- package/dist/nodes/GitHubCopilotChatAPI/GitHubCopilotChatAPI.node.d.ts +5 -5
- package/dist/nodes/GitHubCopilotChatAPI/GitHubCopilotChatAPI.node.js +141 -146
- package/dist/nodes/GitHubCopilotChatAPI/nodeProperties.d.ts +2 -2
- package/dist/nodes/GitHubCopilotChatAPI/nodeProperties.js +172 -202
- package/dist/nodes/GitHubCopilotChatAPI/utils/helpers.d.ts +19 -21
- package/dist/nodes/GitHubCopilotChatAPI/utils/helpers.js +130 -131
- package/dist/nodes/GitHubCopilotChatAPI/utils/imageProcessor.d.ts +8 -8
- package/dist/nodes/GitHubCopilotChatAPI/utils/imageProcessor.js +100 -101
- package/dist/nodes/GitHubCopilotChatAPI/utils/index.d.ts +3 -3
- package/dist/nodes/GitHubCopilotChatAPI/utils/index.js +19 -19
- package/dist/nodes/GitHubCopilotChatAPI/utils/mediaDetection.d.ts +14 -14
- package/dist/nodes/GitHubCopilotChatAPI/utils/mediaDetection.js +70 -71
- package/dist/nodes/GitHubCopilotChatAPI/utils/modelCapabilities.d.ts +5 -5
- package/dist/nodes/GitHubCopilotChatAPI/utils/modelCapabilities.js +113 -113
- package/dist/nodes/GitHubCopilotChatAPI/utils/types.d.ts +57 -57
- package/dist/nodes/GitHubCopilotChatAPI/utils/types.js +2 -2
- package/dist/nodes/GitHubCopilotChatModel/GitHubCopilotChatModel.node.d.ts +5 -5
- package/dist/nodes/GitHubCopilotChatModel/GitHubCopilotChatModel.node.js +141 -211
- package/dist/shared/models/GitHubCopilotModels.d.ts +43 -0
- package/dist/shared/models/GitHubCopilotModels.js +218 -0
- package/package.json +5 -4
- package/dist/credentials/N8nApi.credentials.d.ts +0 -7
- package/dist/credentials/N8nApi.credentials.js +0 -31
- package/dist/nodes/GitHubCopilotChatAPI/GitHubCopilotChatAPI.node.backup.d.ts +0 -5
- package/dist/nodes/GitHubCopilotChatAPI/GitHubCopilotChatAPI.node.backup.js +0 -651
- package/dist/nodes/GitHubCopilotChatAPI/utils/audioProcessor.d.ts +0 -11
- package/dist/nodes/GitHubCopilotChatAPI/utils/audioProcessor.js +0 -86
- package/dist/nodes/N8nAiAgent/N8nAiAgent.node.d.ts +0 -5
- package/dist/nodes/N8nAiAgent/N8nAiAgent.node.js +0 -152
|
@@ -1,71 +1,70 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
'image/
|
|
34
|
-
'image/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
'image/
|
|
54
|
-
'image/
|
|
55
|
-
'image/
|
|
56
|
-
'image/
|
|
57
|
-
'image/
|
|
58
|
-
'image/
|
|
59
|
-
'image/
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
function suggestImageConversion(mimeType) {
|
|
65
|
-
const ext = getFileExtensionFromMimeType(mimeType);
|
|
66
|
-
const supportedFormats = ['PNG', 'JPEG', 'GIF', 'WebP'];
|
|
67
|
-
return `Image format ${ext.toUpperCase()} is not supported by GitHub Copilot API. ` +
|
|
68
|
-
`Please convert your image to one of these formats: ${supportedFormats.join(', ')}. ` +
|
|
69
|
-
`Recommended: Convert to PNG or WebP for best compatibility.`;
|
|
70
|
-
}
|
|
71
|
-
exports.suggestImageConversion = suggestImageConversion;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.processMediaFile = processMediaFile;
|
|
4
|
+
exports.isImageMimeType = isImageMimeType;
|
|
5
|
+
exports.validateImageFormat = validateImageFormat;
|
|
6
|
+
exports.getFileExtensionFromMimeType = getFileExtensionFromMimeType;
|
|
7
|
+
exports.suggestImageConversion = suggestImageConversion;
|
|
8
|
+
const index_1 = require("./index");
|
|
9
|
+
async function processMediaFile(context, itemIndex, source, mediaFile, mediaUrl, binaryProperty) {
|
|
10
|
+
try {
|
|
11
|
+
const imageResult = await (0, index_1.processImageFile)(context, itemIndex, source, mediaFile, mediaUrl, binaryProperty);
|
|
12
|
+
const formatValidation = validateImageFormat(imageResult.mimeType);
|
|
13
|
+
if (!formatValidation.isValid) {
|
|
14
|
+
throw new Error(suggestImageConversion(imageResult.mimeType));
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
type: 'image',
|
|
18
|
+
dataUrl: `data:${imageResult.mimeType};base64,${imageResult.data}`,
|
|
19
|
+
description: `Image file: ${imageResult.filename} (${Math.round(imageResult.size / 1024)}KB, ${imageResult.mimeType})`,
|
|
20
|
+
mimeType: imageResult.mimeType,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
catch (error) {
|
|
24
|
+
return {
|
|
25
|
+
type: 'unknown',
|
|
26
|
+
description: `Error processing image file: ${error instanceof Error ? error.message : 'Unknown error'}`,
|
|
27
|
+
mimeType: 'unknown',
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function isImageMimeType(mimeType) {
|
|
32
|
+
const supportedFormats = [
|
|
33
|
+
'image/png',
|
|
34
|
+
'image/jpeg',
|
|
35
|
+
'image/jpg',
|
|
36
|
+
'image/gif',
|
|
37
|
+
'image/webp'
|
|
38
|
+
];
|
|
39
|
+
return supportedFormats.includes(mimeType.toLowerCase());
|
|
40
|
+
}
|
|
41
|
+
function validateImageFormat(mimeType) {
|
|
42
|
+
if (!isImageMimeType(mimeType)) {
|
|
43
|
+
const supportedFormats = ['PNG', 'JPEG', 'GIF', 'WebP'];
|
|
44
|
+
return {
|
|
45
|
+
isValid: false,
|
|
46
|
+
error: `Unsupported image format: ${mimeType}. GitHub Copilot API only supports: ${supportedFormats.join(', ')}`
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
return { isValid: true };
|
|
50
|
+
}
|
|
51
|
+
function getFileExtensionFromMimeType(mimeType) {
|
|
52
|
+
const mimeToExt = {
|
|
53
|
+
'image/png': 'png',
|
|
54
|
+
'image/jpeg': 'jpg',
|
|
55
|
+
'image/jpg': 'jpg',
|
|
56
|
+
'image/gif': 'gif',
|
|
57
|
+
'image/webp': 'webp',
|
|
58
|
+
'image/bmp': 'bmp',
|
|
59
|
+
'image/tiff': 'tiff',
|
|
60
|
+
'image/svg+xml': 'svg',
|
|
61
|
+
};
|
|
62
|
+
return mimeToExt[mimeType.toLowerCase()] || 'unknown';
|
|
63
|
+
}
|
|
64
|
+
function suggestImageConversion(mimeType) {
|
|
65
|
+
const ext = getFileExtensionFromMimeType(mimeType);
|
|
66
|
+
const supportedFormats = ['PNG', 'JPEG', 'GIF', 'WebP'];
|
|
67
|
+
return `Image format ${ext.toUpperCase()} is not supported by GitHub Copilot API. ` +
|
|
68
|
+
`Please convert your image to one of these formats: ${supportedFormats.join(', ')}. ` +
|
|
69
|
+
`Recommended: Convert to PNG or WebP for best compatibility.`;
|
|
70
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModelCapabilities, ModelValidationResult } from './types';
|
|
2
|
-
export declare const MODEL_CAPABILITIES: Record<string, ModelCapabilities>;
|
|
3
|
-
export declare function validateModelCapabilities(model: string, includeImage: boolean, includeAudio: boolean): ModelValidationResult;
|
|
4
|
-
export declare function getSupportedModels(requireImages?: boolean, requireAudio?: boolean): string[];
|
|
5
|
-
export declare function getModelInfo(model: string): ModelCapabilities | null;
|
|
1
|
+
import { ModelCapabilities, ModelValidationResult } from './types';
|
|
2
|
+
export declare const MODEL_CAPABILITIES: Record<string, ModelCapabilities>;
|
|
3
|
+
export declare function validateModelCapabilities(model: string, includeImage: boolean, includeAudio: boolean): ModelValidationResult;
|
|
4
|
+
export declare function getSupportedModels(requireImages?: boolean, requireAudio?: boolean): string[];
|
|
5
|
+
export declare function getModelInfo(model: string): ModelCapabilities | null;
|
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
if (model.includes('
|
|
89
|
-
warnings.push('
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
if (
|
|
104
|
-
return false;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MODEL_CAPABILITIES = void 0;
|
|
4
|
+
exports.validateModelCapabilities = validateModelCapabilities;
|
|
5
|
+
exports.getSupportedModels = getSupportedModels;
|
|
6
|
+
exports.getModelInfo = getModelInfo;
|
|
7
|
+
exports.MODEL_CAPABILITIES = {
|
|
8
|
+
'gpt-5': {
|
|
9
|
+
supportsImages: true,
|
|
10
|
+
supportsAudio: false,
|
|
11
|
+
maxContextTokens: 200000,
|
|
12
|
+
description: 'OpenAI GPT-5 with image support via GitHub Copilot API',
|
|
13
|
+
},
|
|
14
|
+
'gpt-5-mini': {
|
|
15
|
+
supportsImages: true,
|
|
16
|
+
supportsAudio: false,
|
|
17
|
+
maxContextTokens: 128000,
|
|
18
|
+
description: 'OpenAI GPT-5 Mini with image support via GitHub Copilot API',
|
|
19
|
+
},
|
|
20
|
+
'gpt-4.1-copilot': {
|
|
21
|
+
supportsImages: true,
|
|
22
|
+
supportsAudio: false,
|
|
23
|
+
maxContextTokens: 128000,
|
|
24
|
+
description: 'OpenAI GPT-4.1 with image support via GitHub Copilot API',
|
|
25
|
+
},
|
|
26
|
+
'claude-opus-4.1': {
|
|
27
|
+
supportsImages: false,
|
|
28
|
+
supportsAudio: false,
|
|
29
|
+
maxContextTokens: 200000,
|
|
30
|
+
description: 'Anthropic Claude Opus 4.1 - Text only via GitHub Copilot API',
|
|
31
|
+
},
|
|
32
|
+
'claude-3.5-sonnet': {
|
|
33
|
+
supportsImages: false,
|
|
34
|
+
supportsAudio: false,
|
|
35
|
+
maxContextTokens: 200000,
|
|
36
|
+
description: 'Anthropic Claude 3.5 Sonnet - Text only via GitHub Copilot API',
|
|
37
|
+
},
|
|
38
|
+
'gemini-2.5-pro': {
|
|
39
|
+
supportsImages: true,
|
|
40
|
+
supportsAudio: false,
|
|
41
|
+
maxContextTokens: 1000000,
|
|
42
|
+
description: 'Google Gemini 2.5 Pro with image support via GitHub Copilot API',
|
|
43
|
+
},
|
|
44
|
+
'gemini-2.0-flash': {
|
|
45
|
+
supportsImages: true,
|
|
46
|
+
supportsAudio: true,
|
|
47
|
+
maxContextTokens: 1000000,
|
|
48
|
+
description: 'Google Gemini 2.0 Flash with multimodal support via GitHub Copilot API',
|
|
49
|
+
},
|
|
50
|
+
'grok-code-fast-1': {
|
|
51
|
+
supportsImages: false,
|
|
52
|
+
supportsAudio: false,
|
|
53
|
+
maxContextTokens: 128000,
|
|
54
|
+
description: 'xAI Grok Code Fast 1 - Text only via GitHub Copilot API',
|
|
55
|
+
},
|
|
56
|
+
'o3': {
|
|
57
|
+
supportsImages: false,
|
|
58
|
+
supportsAudio: false,
|
|
59
|
+
maxContextTokens: 200000,
|
|
60
|
+
description: 'OpenAI o3 - Text only via GitHub Copilot API',
|
|
61
|
+
},
|
|
62
|
+
'o3-mini': {
|
|
63
|
+
supportsImages: false,
|
|
64
|
+
supportsAudio: false,
|
|
65
|
+
maxContextTokens: 128000,
|
|
66
|
+
description: 'OpenAI o3-mini - Text only via GitHub Copilot API',
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
function validateModelCapabilities(model, includeImage, includeAudio) {
|
|
70
|
+
const capabilities = exports.MODEL_CAPABILITIES[model];
|
|
71
|
+
if (!capabilities) {
|
|
72
|
+
return {
|
|
73
|
+
isValid: false,
|
|
74
|
+
errorMessage: `Unknown model: ${model}. Please check if the model name is correct.`,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
const warnings = [];
|
|
78
|
+
let isValid = true;
|
|
79
|
+
let errorMessage;
|
|
80
|
+
if (includeImage && !capabilities.supportsImages) {
|
|
81
|
+
isValid = false;
|
|
82
|
+
errorMessage = `Model ${model} does not support image input. Please disable image upload or choose a different model (e.g., GPT-5, Gemini 2.5 Pro).`;
|
|
83
|
+
}
|
|
84
|
+
if (includeAudio && !capabilities.supportsAudio) {
|
|
85
|
+
isValid = false;
|
|
86
|
+
errorMessage = `Model ${model} does not support audio input. Please disable audio upload or choose a different model (e.g., GPT-5, Gemini 2.5 Pro).`;
|
|
87
|
+
}
|
|
88
|
+
if (model.includes('claude') && (includeImage || includeAudio)) {
|
|
89
|
+
warnings.push('Claude models typically work best with text-only input via GitHub Copilot API.');
|
|
90
|
+
}
|
|
91
|
+
if (model.includes('grok') && (includeImage || includeAudio)) {
|
|
92
|
+
warnings.push('Grok models are optimized for coding tasks and work best with text input.');
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
isValid,
|
|
96
|
+
errorMessage,
|
|
97
|
+
warnings: warnings.length > 0 ? warnings : undefined,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function getSupportedModels(requireImages = false, requireAudio = false) {
|
|
101
|
+
return Object.entries(exports.MODEL_CAPABILITIES)
|
|
102
|
+
.filter(([, capabilities]) => {
|
|
103
|
+
if (requireImages && !capabilities.supportsImages)
|
|
104
|
+
return false;
|
|
105
|
+
if (requireAudio && !capabilities.supportsAudio)
|
|
106
|
+
return false;
|
|
107
|
+
return true;
|
|
108
|
+
})
|
|
109
|
+
.map(([model]) => model);
|
|
110
|
+
}
|
|
111
|
+
function getModelInfo(model) {
|
|
112
|
+
return exports.MODEL_CAPABILITIES[model] || null;
|
|
113
|
+
}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { IExecuteFunctions } from 'n8n-workflow';
|
|
2
|
-
export interface ChatMessage {
|
|
3
|
-
role: 'system' | 'user' | 'assistant';
|
|
4
|
-
content: string | Array<ChatMessageContent>;
|
|
5
|
-
}
|
|
6
|
-
export interface ChatMessageContent {
|
|
7
|
-
type: string;
|
|
8
|
-
text?: string;
|
|
9
|
-
image_url?: {
|
|
10
|
-
url: string;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface CopilotResponse {
|
|
14
|
-
choices: Array<{
|
|
15
|
-
message: {
|
|
16
|
-
content: string;
|
|
17
|
-
};
|
|
18
|
-
finish_reason: string;
|
|
19
|
-
}>;
|
|
20
|
-
usage?: {
|
|
21
|
-
prompt_tokens: number;
|
|
22
|
-
completion_tokens: number;
|
|
23
|
-
total_tokens: number;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export interface FileProcessOptions {
|
|
27
|
-
context: IExecuteFunctions;
|
|
28
|
-
itemIndex: number;
|
|
29
|
-
source: 'manual' | 'url' | 'binary';
|
|
30
|
-
filePath?: string;
|
|
31
|
-
url?: string;
|
|
32
|
-
binaryProperty?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface ProcessedFileResult {
|
|
35
|
-
data: string;
|
|
36
|
-
mimeType: string;
|
|
37
|
-
filename: string;
|
|
38
|
-
size: number;
|
|
39
|
-
estimatedTokens: number;
|
|
40
|
-
}
|
|
41
|
-
export interface OptimizationOptions {
|
|
42
|
-
maxWidth?: number;
|
|
43
|
-
maxHeight?: number;
|
|
44
|
-
quality?: number;
|
|
45
|
-
maxSizeKB?: number;
|
|
46
|
-
}
|
|
47
|
-
export interface ModelCapabilities {
|
|
48
|
-
supportsImages: boolean;
|
|
49
|
-
supportsAudio: boolean;
|
|
50
|
-
maxContextTokens: number;
|
|
51
|
-
description: string;
|
|
52
|
-
}
|
|
53
|
-
export interface ModelValidationResult {
|
|
54
|
-
isValid: boolean;
|
|
55
|
-
errorMessage?: string;
|
|
56
|
-
warnings?: string[];
|
|
57
|
-
}
|
|
1
|
+
import { IExecuteFunctions } from 'n8n-workflow';
|
|
2
|
+
export interface ChatMessage {
|
|
3
|
+
role: 'system' | 'user' | 'assistant';
|
|
4
|
+
content: string | Array<ChatMessageContent>;
|
|
5
|
+
}
|
|
6
|
+
export interface ChatMessageContent {
|
|
7
|
+
type: string;
|
|
8
|
+
text?: string;
|
|
9
|
+
image_url?: {
|
|
10
|
+
url: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface CopilotResponse {
|
|
14
|
+
choices: Array<{
|
|
15
|
+
message: {
|
|
16
|
+
content: string;
|
|
17
|
+
};
|
|
18
|
+
finish_reason: string;
|
|
19
|
+
}>;
|
|
20
|
+
usage?: {
|
|
21
|
+
prompt_tokens: number;
|
|
22
|
+
completion_tokens: number;
|
|
23
|
+
total_tokens: number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface FileProcessOptions {
|
|
27
|
+
context: IExecuteFunctions;
|
|
28
|
+
itemIndex: number;
|
|
29
|
+
source: 'manual' | 'url' | 'binary';
|
|
30
|
+
filePath?: string;
|
|
31
|
+
url?: string;
|
|
32
|
+
binaryProperty?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ProcessedFileResult {
|
|
35
|
+
data: string;
|
|
36
|
+
mimeType: string;
|
|
37
|
+
filename: string;
|
|
38
|
+
size: number;
|
|
39
|
+
estimatedTokens: number;
|
|
40
|
+
}
|
|
41
|
+
export interface OptimizationOptions {
|
|
42
|
+
maxWidth?: number;
|
|
43
|
+
maxHeight?: number;
|
|
44
|
+
quality?: number;
|
|
45
|
+
maxSizeKB?: number;
|
|
46
|
+
}
|
|
47
|
+
export interface ModelCapabilities {
|
|
48
|
+
supportsImages: boolean;
|
|
49
|
+
supportsAudio: boolean;
|
|
50
|
+
maxContextTokens: number;
|
|
51
|
+
description: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ModelValidationResult {
|
|
54
|
+
isValid: boolean;
|
|
55
|
+
errorMessage?: string;
|
|
56
|
+
warnings?: string[];
|
|
57
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
-
export declare class GitHubCopilotChatModel implements INodeType {
|
|
3
|
-
description: INodeTypeDescription;
|
|
4
|
-
supplyData(this:
|
|
5
|
-
}
|
|
1
|
+
import { INodeType, INodeTypeDescription, ISupplyDataFunctions, SupplyData } from 'n8n-workflow';
|
|
2
|
+
export declare class GitHubCopilotChatModel implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
supplyData(this: ISupplyDataFunctions, itemIndex: number): Promise<SupplyData>;
|
|
5
|
+
}
|