@taskmagic/apps-hugging-face 0.0.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.
Files changed (35) hide show
  1. package/README.md +3 -0
  2. package/package.json +47 -0
  3. package/src/index.d.ts +1 -0
  4. package/src/index.js +64 -0
  5. package/src/index.js.map +1 -0
  6. package/src/lib/actions/chat-completion.d.ts +18 -0
  7. package/src/lib/actions/chat-completion.js +537 -0
  8. package/src/lib/actions/chat-completion.js.map +1 -0
  9. package/src/lib/actions/create-image.d.ts +14 -0
  10. package/src/lib/actions/create-image.js +423 -0
  11. package/src/lib/actions/create-image.js.map +1 -0
  12. package/src/lib/actions/document-question-answering.d.ts +11 -0
  13. package/src/lib/actions/document-question-answering.js +140 -0
  14. package/src/lib/actions/document-question-answering.js.map +1 -0
  15. package/src/lib/actions/image-classification.d.ts +13 -0
  16. package/src/lib/actions/image-classification.js +592 -0
  17. package/src/lib/actions/image-classification.js.map +1 -0
  18. package/src/lib/actions/language-translation.d.ts +11 -0
  19. package/src/lib/actions/language-translation.js +222 -0
  20. package/src/lib/actions/language-translation.js.map +1 -0
  21. package/src/lib/actions/object-detection.d.ts +9 -0
  22. package/src/lib/actions/object-detection.js +464 -0
  23. package/src/lib/actions/object-detection.js.map +1 -0
  24. package/src/lib/actions/text-classification.d.ts +12 -0
  25. package/src/lib/actions/text-classification.js +344 -0
  26. package/src/lib/actions/text-classification.js.map +1 -0
  27. package/src/lib/actions/text-summarization.d.ts +12 -0
  28. package/src/lib/actions/text-summarization.js +420 -0
  29. package/src/lib/actions/text-summarization.js.map +1 -0
  30. package/src/lib/auth.d.ts +1 -0
  31. package/src/lib/auth.js +10 -0
  32. package/src/lib/auth.js.map +1 -0
  33. package/src/lib/common/index.d.ts +36 -0
  34. package/src/lib/common/index.js +78 -0
  35. package/src/lib/common/index.js.map +1 -0
@@ -0,0 +1,537 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chatCompletion = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@taskmagic/pieces-framework");
6
+ const pieces_common_1 = require("@taskmagic/pieces-common");
7
+ const auth_1 = require("../auth");
8
+ const common_1 = require("../common");
9
+ exports.chatCompletion = (0, pieces_framework_1.createAction)({
10
+ name: 'chat_completion',
11
+ auth: auth_1.huggingFaceAuth,
12
+ displayName: 'Chat Completion',
13
+ description: 'Generate assistant replies using chat-style LLMs - perfect for FAQ bots, support agents, and content generation',
14
+ props: {
15
+ useCase: pieces_framework_1.Property.StaticDropdown({
16
+ displayName: 'Use Case',
17
+ description: 'What type of chat assistant are you building?',
18
+ required: true,
19
+ options: {
20
+ disabled: false,
21
+ options: [
22
+ {
23
+ label: 'FAQ & Customer Support',
24
+ value: 'faq',
25
+ },
26
+ {
27
+ label: 'Content Generation & Writing',
28
+ value: 'content',
29
+ },
30
+ {
31
+ label: 'General Conversation',
32
+ value: 'chat',
33
+ },
34
+ {
35
+ label: 'Search All Models',
36
+ value: 'search',
37
+ },
38
+ ],
39
+ },
40
+ defaultValue: 'faq',
41
+ }),
42
+ model: pieces_framework_1.Property.Dropdown({
43
+ displayName: 'Chat Model',
44
+ description: 'Select the best model for your use case',
45
+ required: true,
46
+ refreshers: ['useCase'],
47
+ options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, useCase }) {
48
+ // Define model options based on use case
49
+ const getModelsByUseCase = (type) => {
50
+ switch (type) {
51
+ case 'faq':
52
+ return [
53
+ {
54
+ label: 'Llama-3.2-1B (3.3M downloads) - Fast FAQ responses',
55
+ value: 'meta-llama/Llama-3.2-1B-Instruct',
56
+ },
57
+ {
58
+ label: 'Qwen2.5-1.5B (3M downloads) - Efficient support',
59
+ value: 'Qwen/Qwen2.5-1.5B-Instruct',
60
+ },
61
+ {
62
+ label: 'Gemma-3-1B (2.6M downloads) - Google optimized',
63
+ value: 'google/gemma-3-1b-it',
64
+ },
65
+ {
66
+ label: 'FAQ ChatBot (E-commerce specialist)',
67
+ value: 'Alkyema/FAQ_ChatBot',
68
+ },
69
+ ];
70
+ case 'content':
71
+ return [
72
+ {
73
+ label: 'Llama-3.1-8B (14.2M downloads) - High quality',
74
+ value: 'meta-llama/Llama-3.1-8B-Instruct',
75
+ },
76
+ {
77
+ label: 'Qwen2.5-7B (9.1M downloads) - Great balance',
78
+ value: 'Qwen/Qwen2.5-7B-Instruct',
79
+ },
80
+ {
81
+ label: 'Qwen2.5-14B (12.2M downloads) - Best quality',
82
+ value: 'Qwen/Qwen2.5-14B-Instruct',
83
+ },
84
+ {
85
+ label: 'OpenAI GPT-OSS-20B (3.7M downloads) - Creative',
86
+ value: 'openai/gpt-oss-20b',
87
+ },
88
+ ];
89
+ case 'chat':
90
+ return [
91
+ {
92
+ label: 'Qwen2.5-7B (9.1M downloads) - Best overall',
93
+ value: 'Qwen/Qwen2.5-7B-Instruct',
94
+ },
95
+ {
96
+ label: 'Llama-3.2-1B (3.3M downloads) - Fast responses',
97
+ value: 'meta-llama/Llama-3.2-1B-Instruct',
98
+ },
99
+ {
100
+ label: 'Qwen2.5-1.5B (3M downloads) - Efficient',
101
+ value: 'Qwen/Qwen2.5-1.5B-Instruct',
102
+ },
103
+ {
104
+ label: 'Gemma-3-1B (2.6M downloads) - Reliable',
105
+ value: 'google/gemma-3-1b-it',
106
+ },
107
+ ];
108
+ default:
109
+ return [
110
+ {
111
+ label: 'Qwen2.5-7B (9.1M downloads)',
112
+ value: 'Qwen/Qwen2.5-7B-Instruct',
113
+ },
114
+ ];
115
+ }
116
+ };
117
+ // Return use case-specific models for non-search types
118
+ if (useCase !== 'search') {
119
+ return {
120
+ disabled: false,
121
+ options: getModelsByUseCase(useCase || 'faq'),
122
+ };
123
+ }
124
+ // Handle search mode - load all conversational models
125
+ const popularModels = [
126
+ {
127
+ label: 'Meta Llama-3.1-8B (14.2M downloads)',
128
+ value: 'meta-llama/Llama-3.1-8B-Instruct',
129
+ },
130
+ {
131
+ label: 'Qwen2.5-7B (9.1M downloads)',
132
+ value: 'Qwen/Qwen2.5-7B-Instruct',
133
+ },
134
+ {
135
+ label: 'Llama-3.2-1B (3.3M downloads)',
136
+ value: 'meta-llama/Llama-3.2-1B-Instruct',
137
+ },
138
+ ];
139
+ if (!auth) {
140
+ return {
141
+ disabled: false,
142
+ options: popularModels,
143
+ };
144
+ }
145
+ try {
146
+ const response = yield pieces_common_1.httpClient.sendRequest({
147
+ method: pieces_common_1.HttpMethod.GET,
148
+ url: 'https://huggingface.co/api/models',
149
+ queryParams: {
150
+ filter: 'conversational',
151
+ sort: 'downloads',
152
+ direction: '-1',
153
+ limit: '100',
154
+ },
155
+ });
156
+ const models = response.body;
157
+ const conversationalModels = models
158
+ .filter((model) => model.pipeline_tag === 'conversational' ||
159
+ model.pipeline_tag === 'text-generation')
160
+ .map((model) => {
161
+ var _a;
162
+ return ({
163
+ label: `${model.id} (${((_a = model.downloads) === null || _a === void 0 ? void 0 : _a.toLocaleString()) || 0} downloads)`,
164
+ value: model.id,
165
+ });
166
+ })
167
+ .slice(0, 50);
168
+ const allOptions = [
169
+ ...popularModels,
170
+ ...conversationalModels.filter((model) => !popularModels.some((popular) => popular.value === model.value)),
171
+ ];
172
+ return {
173
+ disabled: false,
174
+ options: allOptions,
175
+ };
176
+ }
177
+ catch (error) {
178
+ return {
179
+ disabled: false,
180
+ options: popularModels,
181
+ };
182
+ }
183
+ }),
184
+ defaultValue: 'meta-llama/Llama-3.2-1B-Instruct',
185
+ }),
186
+ conversationMode: pieces_framework_1.Property.StaticDropdown({
187
+ displayName: 'Conversation Mode',
188
+ description: 'How do you want to build the conversation?',
189
+ required: true,
190
+ options: {
191
+ disabled: false,
192
+ options: [
193
+ {
194
+ label: 'Single Message (Simple Q&A)',
195
+ value: 'single',
196
+ },
197
+ {
198
+ label: 'Multi-turn Conversation',
199
+ value: 'multi',
200
+ },
201
+ {
202
+ label: 'Template-based Response',
203
+ value: 'template',
204
+ },
205
+ ],
206
+ },
207
+ defaultValue: 'single',
208
+ }),
209
+ userMessage: pieces_framework_1.Property.LongText({
210
+ displayName: 'User Message',
211
+ description: 'The user message or question to respond to',
212
+ required: false,
213
+ }),
214
+ systemPrompt: pieces_framework_1.Property.LongText({
215
+ displayName: 'System Prompt (Optional)',
216
+ description: 'Instructions for how the assistant should behave',
217
+ required: false,
218
+ }),
219
+ conversationHistory: pieces_framework_1.Property.Array({
220
+ displayName: 'Conversation History',
221
+ description: 'Previous messages in the conversation (for multi-turn chat)',
222
+ required: false,
223
+ }),
224
+ template: pieces_framework_1.Property.StaticDropdown({
225
+ displayName: 'Response Template',
226
+ description: 'Pre-built templates for common business scenarios',
227
+ required: false,
228
+ options: {
229
+ disabled: false,
230
+ options: [
231
+ {
232
+ label: 'Customer Support Agent',
233
+ value: 'support',
234
+ },
235
+ {
236
+ label: 'FAQ Assistant',
237
+ value: 'faq',
238
+ },
239
+ {
240
+ label: 'Content Writer',
241
+ value: 'writer',
242
+ },
243
+ {
244
+ label: 'Email Responder',
245
+ value: 'email',
246
+ },
247
+ {
248
+ label: 'E-commerce Assistant',
249
+ value: 'ecommerce',
250
+ },
251
+ ],
252
+ },
253
+ }),
254
+ responseLength: pieces_framework_1.Property.StaticDropdown({
255
+ displayName: 'Response Length',
256
+ description: 'How long should the response be?',
257
+ required: false,
258
+ options: {
259
+ disabled: false,
260
+ options: [
261
+ { label: 'Brief (50-100 tokens)', value: 'brief' },
262
+ { label: 'Normal (100-200 tokens)', value: 'normal' },
263
+ { label: 'Detailed (200-400 tokens)', value: 'detailed' },
264
+ { label: 'Custom', value: 'custom' },
265
+ ],
266
+ },
267
+ defaultValue: 'normal',
268
+ }),
269
+ customMaxTokens: pieces_framework_1.Property.Number({
270
+ displayName: 'Custom Max Tokens',
271
+ description: 'Maximum number of tokens to generate',
272
+ required: false,
273
+ }),
274
+ temperature: pieces_framework_1.Property.Number({
275
+ displayName: 'Creativity Level',
276
+ description: 'How creative should responses be? (0.1 = focused, 1.0 = creative)',
277
+ required: false,
278
+ defaultValue: 0.7,
279
+ }),
280
+ topP: pieces_framework_1.Property.Number({
281
+ displayName: 'Response Variety',
282
+ description: 'Controls response diversity (0.1 = focused, 1.0 = varied)',
283
+ required: false,
284
+ defaultValue: 0.9,
285
+ }),
286
+ stopSequences: pieces_framework_1.Property.Array({
287
+ displayName: 'Stop Sequences (Optional)',
288
+ description: 'Text sequences that will stop generation',
289
+ required: false,
290
+ }),
291
+ frequencyPenalty: pieces_framework_1.Property.Number({
292
+ displayName: 'Repetition Penalty',
293
+ description: 'Reduce repetitive responses (-2.0 to 2.0)',
294
+ required: false,
295
+ defaultValue: 0.0,
296
+ }),
297
+ presencePenalty: pieces_framework_1.Property.Number({
298
+ displayName: 'Topic Diversity',
299
+ description: 'Encourage diverse topics (-2.0 to 2.0)',
300
+ required: false,
301
+ defaultValue: 0.0,
302
+ }),
303
+ useCache: pieces_framework_1.Property.Checkbox({
304
+ displayName: 'Use Cache',
305
+ description: 'Use cached responses for identical requests',
306
+ required: false,
307
+ defaultValue: true,
308
+ }),
309
+ waitForModel: pieces_framework_1.Property.Checkbox({
310
+ displayName: 'Wait for Model',
311
+ description: 'Wait for model to load if not immediately available',
312
+ required: false,
313
+ defaultValue: false,
314
+ }),
315
+ },
316
+ run(context) {
317
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
318
+ var _a, _b, _c, _d, _e;
319
+ const { useCase, model, conversationMode, userMessage, systemPrompt, conversationHistory, template, responseLength, customMaxTokens, temperature, topP, stopSequences, frequencyPenalty, presencePenalty, } = context.propsValue;
320
+ const messages = [];
321
+ const systemMessage = getSystemPrompt(template, systemPrompt, useCase);
322
+ if (systemMessage) {
323
+ messages.push({ role: 'system', content: systemMessage });
324
+ }
325
+ switch (conversationMode) {
326
+ case 'single':
327
+ if (!(userMessage === null || userMessage === void 0 ? void 0 : userMessage.trim())) {
328
+ throw new Error('Please provide a user message for single message mode');
329
+ }
330
+ messages.push({ role: 'user', content: userMessage.trim() });
331
+ break;
332
+ case 'multi':
333
+ // Add conversation history
334
+ if (conversationHistory && Array.isArray(conversationHistory)) {
335
+ const historyMessages = conversationHistory
336
+ .filter((msg) => {
337
+ if (!msg || typeof msg !== 'object' || msg === null) {
338
+ return false;
339
+ }
340
+ const msgObj = msg;
341
+ return ('role' in msgObj &&
342
+ 'content' in msgObj &&
343
+ typeof msgObj['role'] === 'string' &&
344
+ typeof msgObj['content'] === 'string');
345
+ })
346
+ .map((msg) => ({
347
+ role: msg['role'],
348
+ content: msg['content'],
349
+ }));
350
+ messages.push(...historyMessages);
351
+ }
352
+ if (userMessage === null || userMessage === void 0 ? void 0 : userMessage.trim()) {
353
+ messages.push({ role: 'user', content: userMessage.trim() });
354
+ }
355
+ break;
356
+ case 'template':
357
+ if (!(userMessage === null || userMessage === void 0 ? void 0 : userMessage.trim())) {
358
+ throw new Error('Please provide a user message for template mode');
359
+ }
360
+ messages.push({ role: 'user', content: userMessage.trim() });
361
+ break;
362
+ default:
363
+ if (!(userMessage === null || userMessage === void 0 ? void 0 : userMessage.trim())) {
364
+ throw new Error('Please provide a user message');
365
+ }
366
+ messages.push({ role: 'user', content: userMessage.trim() });
367
+ }
368
+ if (messages.length === 0) {
369
+ throw new Error('No messages provided for the conversation');
370
+ }
371
+ let maxTokens;
372
+ switch (responseLength) {
373
+ case 'brief':
374
+ maxTokens = 100;
375
+ break;
376
+ case 'normal':
377
+ maxTokens = 200;
378
+ break;
379
+ case 'detailed':
380
+ maxTokens = 400;
381
+ break;
382
+ case 'custom':
383
+ maxTokens = customMaxTokens || 200;
384
+ break;
385
+ default:
386
+ maxTokens = 200;
387
+ }
388
+ const args = {
389
+ model: model,
390
+ messages: messages,
391
+ max_tokens: maxTokens,
392
+ temperature: temperature || 0.7,
393
+ top_p: topP || 0.9,
394
+ stream: false,
395
+ };
396
+ if (stopSequences &&
397
+ Array.isArray(stopSequences) &&
398
+ stopSequences.length > 0) {
399
+ const validStopSequences = stopSequences.filter((seq) => typeof seq === 'string' && seq.trim().length > 0);
400
+ if (validStopSequences.length > 0) {
401
+ args['stop'] = validStopSequences;
402
+ }
403
+ }
404
+ if (frequencyPenalty !== undefined && frequencyPenalty !== 0) {
405
+ args['frequency_penalty'] = frequencyPenalty;
406
+ }
407
+ if (presencePenalty !== undefined && presencePenalty !== 0) {
408
+ args['presence_penalty'] = presencePenalty;
409
+ }
410
+ const chatResult = yield (0, common_1.callChatCompletion)({
411
+ auth: context.auth,
412
+ body: args,
413
+ });
414
+ const assistantMessage = ((_c = (_b = (_a = chatResult.choices) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.message) === null || _c === void 0 ? void 0 : _c.content) || '';
415
+ const finishReason = ((_e = (_d = chatResult.choices) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.finish_reason) || 'unknown';
416
+ const userMessageLength = (userMessage === null || userMessage === void 0 ? void 0 : userMessage.length) || 0;
417
+ const assistantMessageLength = assistantMessage.length;
418
+ const tokenUsage = chatResult.usage;
419
+ return {
420
+ response: assistantMessage,
421
+ conversation: {
422
+ userMessage: userMessage || '',
423
+ assistantMessage: assistantMessage,
424
+ fullConversation: [
425
+ ...messages,
426
+ { role: 'assistant', content: assistantMessage },
427
+ ],
428
+ },
429
+ metadata: {
430
+ model: model,
431
+ useCase: useCase,
432
+ conversationMode: conversationMode,
433
+ template: template || 'none',
434
+ finishReason: finishReason,
435
+ },
436
+ metrics: {
437
+ userMessageLength: userMessageLength,
438
+ responseLength: assistantMessageLength,
439
+ tokensUsed: (tokenUsage === null || tokenUsage === void 0 ? void 0 : tokenUsage.total_tokens) || 0,
440
+ promptTokens: (tokenUsage === null || tokenUsage === void 0 ? void 0 : tokenUsage.prompt_tokens) || 0,
441
+ completionTokens: (tokenUsage === null || tokenUsage === void 0 ? void 0 : tokenUsage.completion_tokens) || 0,
442
+ estimatedCost: calculateEstimatedCost(model, (tokenUsage === null || tokenUsage === void 0 ? void 0 : tokenUsage.total_tokens) || 0),
443
+ },
444
+ businessInsights: {
445
+ useCase: getUseCaseDescription(useCase),
446
+ qualityTips: getQualityTips(assistantMessage, finishReason),
447
+ nextSteps: getNextSteps(conversationMode, finishReason),
448
+ },
449
+ rawResult: chatResult,
450
+ };
451
+ });
452
+ },
453
+ });
454
+ function getSystemPrompt(template, customPrompt, useCase) {
455
+ if (customPrompt === null || customPrompt === void 0 ? void 0 : customPrompt.trim()) {
456
+ return customPrompt.trim();
457
+ }
458
+ const templates = {
459
+ support: "You are a helpful customer support agent. Be empathetic, professional, and solution-focused. Always acknowledge the customer's concern and provide clear, actionable steps to resolve their issue.",
460
+ faq: "You are an FAQ assistant. Provide concise, accurate answers to common questions. If you don't know the answer, politely suggest contacting support or checking documentation.",
461
+ writer: 'You are a professional content writer. Create engaging, well-structured content that is clear, informative, and appropriate for the target audience. Use proper grammar and formatting.',
462
+ email: "You are an email response assistant. Write professional, courteous emails that address the recipient's needs clearly and concisely. Include appropriate greetings and closings.",
463
+ ecommerce: 'You are an e-commerce assistant. Help customers with product information, orders, shipping, and returns. Be knowledgeable about products and policies while maintaining a friendly, sales-oriented approach.',
464
+ };
465
+ if (template && template in templates) {
466
+ return templates[template];
467
+ }
468
+ const defaultPrompts = {
469
+ faq: 'You are a helpful FAQ assistant. Provide clear, concise answers to user questions.',
470
+ content: 'You are a professional content creator. Generate high-quality, engaging content based on user requests.',
471
+ chat: 'You are a helpful and friendly AI assistant. Provide helpful responses while being conversational and engaging.',
472
+ };
473
+ return (defaultPrompts[useCase] ||
474
+ 'You are a helpful AI assistant.');
475
+ }
476
+ function getUseCaseDescription(useCase) {
477
+ const descriptions = {
478
+ faq: 'Perfect for answering frequently asked questions and providing customer support',
479
+ content: 'Ideal for content creation, writing assistance, and creative projects',
480
+ chat: 'Great for general conversation and interactive assistance',
481
+ search: 'Custom model selection for specialized chat requirements',
482
+ };
483
+ return (descriptions[useCase] ||
484
+ 'General purpose chat assistance');
485
+ }
486
+ function getQualityTips(response, finishReason) {
487
+ const tips = [];
488
+ if (response.length < 20) {
489
+ tips.push('⚠️ Response is very short - consider using Normal or Detailed length');
490
+ }
491
+ if (response.length > 1000) {
492
+ tips.push('📝 Very long response - consider using Brief or Normal length for better user experience');
493
+ }
494
+ if (finishReason === 'length') {
495
+ tips.push('✂️ Response was truncated - increase max tokens for complete responses');
496
+ }
497
+ if (finishReason === 'stop') {
498
+ tips.push('🛑 Response stopped at stop sequence - this is expected behavior');
499
+ }
500
+ if (response.includes("I don't know") || response.includes('I cannot')) {
501
+ tips.push('🎯 Consider providing more context or using a template with better instructions');
502
+ }
503
+ if (tips.length === 0) {
504
+ tips.push('✅ Good response quality achieved');
505
+ }
506
+ return tips;
507
+ }
508
+ function getNextSteps(conversationMode, finishReason) {
509
+ const steps = [];
510
+ if (conversationMode === 'single') {
511
+ steps.push('💡 Switch to Multi-turn mode for follow-up conversations');
512
+ }
513
+ if (conversationMode === 'multi') {
514
+ steps.push('🔄 Add this response to conversation history for context');
515
+ }
516
+ if (finishReason === 'length') {
517
+ steps.push('⚙️ Increase max tokens or use Detailed response length');
518
+ }
519
+ steps.push('📊 Monitor token usage for cost optimization');
520
+ steps.push('🎯 Fine-tune temperature and penalties for better responses');
521
+ return steps;
522
+ }
523
+ function calculateEstimatedCost(model, totalTokens) {
524
+ const costPer1M = model.includes('llama-3.1-8b')
525
+ ? 0.6
526
+ : model.includes('qwen')
527
+ ? 0.3
528
+ : model.includes('gemma')
529
+ ? 0.25
530
+ : 0.5;
531
+ const estimatedCost = (totalTokens / 1000000) * costPer1M;
532
+ if (estimatedCost < 0.001) {
533
+ return '< $0.001';
534
+ }
535
+ return `~$${estimatedCost.toFixed(4)}`;
536
+ }
537
+ //# sourceMappingURL=chat-completion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-completion.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/hugging-face/src/lib/actions/chat-completion.ts"],"names":[],"mappings":";;;;AAAA,kEAAqE;AACrE,4DAAkE;AAClE,kCAA0C;AAC1C,sCAA+C;AA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O,KAAK,CAAC;AACf,CAAC;AAED,SAAS,sBAAsB,CAAC,KAAa,EAAE,WAAmB;IAChE,MAAM,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC;QAC9C,CAAC,CAAC,GAAG;QACL,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;YACxB,CAAC,CAAC,GAAG;YACL,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC;gBACzB,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,GAAG,CAAC;IAER,MAAM,aAAa,GAAG,CAAC,WAAW,GAAG,OAAO,CAAC,GAAG,SAAS,CAAC;IAE1D,IAAI,aAAa,GAAG,KAAK,EAAE,CAAC;QAC1B,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,OAAO,KAAK,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;AACzC,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare const createImage: import("@taskmagic/pieces-framework").IAction<import("@taskmagic/pieces-framework").SecretTextProperty<true>, {
2
+ useCase: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, true>;
3
+ model: import("@taskmagic/pieces-framework").DropdownProperty<string, true>;
4
+ prompt: import("@taskmagic/pieces-framework").LongTextProperty<true>;
5
+ aspectRatio: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, false>;
6
+ customWidth: import("@taskmagic/pieces-framework").NumberProperty<false>;
7
+ customHeight: import("@taskmagic/pieces-framework").NumberProperty<false>;
8
+ negativePrompt: import("@taskmagic/pieces-framework").LongTextProperty<false>;
9
+ qualitySettings: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, false>;
10
+ customSteps: import("@taskmagic/pieces-framework").NumberProperty<false>;
11
+ guidanceScale: import("@taskmagic/pieces-framework").NumberProperty<false>;
12
+ seed: import("@taskmagic/pieces-framework").NumberProperty<false>;
13
+ scheduler: import("@taskmagic/pieces-framework").StaticDropdownProperty<string, false>;
14
+ }>;