Skip to content

Commit cd78dc1

Browse files
committed
Fix
1 parent 08571f8 commit cd78dc1

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

apps/sim/blocks/blocks/quiver.ts

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -190,25 +190,25 @@ export const QuiverBlock: BlockConfig<QuiverSvgResponse> = {
190190
const normalizedImage = normalizeFileInput(image, { single: true })
191191

192192
return {
193-
...rest,
194-
...(normalizedRefs && { references: normalizedRefs }),
195-
...(normalizedImage && { image: normalizedImage }),
196-
...(rest.n && { n: Number(rest.n) }),
197-
...(rest.temperature && { temperature: Number(rest.temperature) }),
198-
...(topP && { top_p: Number(topP) }),
199-
...(maxOutputTokens && { max_output_tokens: Number(maxOutputTokens) }),
200-
...(presencePenalty && { presence_penalty: Number(presencePenalty) }),
201-
...(targetSize && { target_size: Number(targetSize) }),
202-
...(autoCrop === 'true' && { auto_crop: true }),
193+
...(rest as Record<string, unknown>),
194+
...(normalizedRefs ? { references: normalizedRefs } : {}),
195+
...(normalizedImage ? { image: normalizedImage } : {}),
196+
...(rest.n ? { n: Number(rest.n) } : {}),
197+
...(rest.temperature ? { temperature: Number(rest.temperature) } : {}),
198+
...(topP ? { top_p: Number(topP) } : {}),
199+
...(maxOutputTokens ? { max_output_tokens: Number(maxOutputTokens) } : {}),
200+
...(presencePenalty ? { presence_penalty: Number(presencePenalty) } : {}),
201+
...(targetSize ? { target_size: Number(targetSize) } : {}),
202+
...(autoCrop === 'true' ? { auto_crop: true } : {}),
203203
}
204204
},
205205
},
206206
},
207207
inputs: {
208-
prompt: { type: 'string', required: false },
209-
instructions: { type: 'string', required: false },
210-
references: { type: 'file', required: false },
211-
image: { type: 'file', required: false },
208+
prompt: { type: 'string' },
209+
instructions: { type: 'string' },
210+
references: { type: 'file' },
211+
image: { type: 'file' },
212212
},
213213
outputs: {
214214
file: {
@@ -230,22 +230,10 @@ export const QuiverBlock: BlockConfig<QuiverSvgResponse> = {
230230
usage: {
231231
type: 'json',
232232
description: 'Token usage statistics',
233-
properties: {
234-
totalTokens: { type: 'number', description: 'Total tokens used' },
235-
inputTokens: { type: 'number', description: 'Input tokens used' },
236-
outputTokens: { type: 'number', description: 'Output tokens used' },
237-
},
238233
},
239234
models: {
240235
type: 'json',
241236
description: 'List of available models (list_models operation only)',
242-
optional: true,
243-
properties: {
244-
id: { type: 'string', description: 'Model identifier' },
245-
name: { type: 'string', description: 'Human-readable model name' },
246-
description: { type: 'string', description: 'Model capabilities summary' },
247-
supportedOperations: { type: 'json', description: 'Available operations' },
248-
},
249237
},
250238
},
251239
}

0 commit comments

Comments
 (0)