Skip to content

Commit 45d3c8f

Browse files
committed
smol fixes
1 parent 97a2536 commit 45d3c8f

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

packages/core/src/models.ts

-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ export const models: Models = {
107107
[ModelClass.EMBEDDING]: "llama-3.1-8b-instant",
108108
},
109109
},
110-
// TODO: Remove LLAMACLOUD and just use Together
111110
[ModelProviderName.LLAMACLOUD]: {
112111
settings: {
113112
stop: [],

packages/plugin-image-generation/src/index.ts

+7-11
Original file line numberDiff line numberDiff line change
@@ -128,25 +128,21 @@ const imageGeneration: Action = {
128128
prompt: imagePrompt,
129129
width: options.width || 1024,
130130
height: options.height || 1024,
131-
...(options.count !== undefined
132-
? { count: options.count || 1 }
133-
: {}),
134-
...(options.negativePrompt !== undefined
131+
...(options.count != null ? { count: options.count || 1 } : {}),
132+
...(options.negativePrompt != null
135133
? { negativePrompt: options.negativePrompt }
136134
: {}),
137-
...(options.numIterations !== undefined
135+
...(options.numIterations != null
138136
? { numIterations: options.numIterations }
139137
: {}),
140-
...(options.guidanceScale !== undefined
138+
...(options.guidanceScale != null
141139
? { guidanceScale: options.guidanceScale }
142140
: {}),
143-
...(options.seed !== undefined ? { seed: options.seed } : {}),
144-
...(options.modelId !== undefined
141+
...(options.seed != null ? { seed: options.seed } : {}),
142+
...(options.modelId != null
145143
? { modelId: options.modelId }
146144
: {}),
147-
...(options.jobId !== undefined
148-
? { jobId: options.jobId }
149-
: {}),
145+
...(options.jobId != null ? { jobId: options.jobId } : {}),
150146
},
151147
runtime
152148
);

0 commit comments

Comments
 (0)