Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
"imaginePlaceholder": "Imagine...",
"enhancePrompt": "Enhance Prompt",
"duration": "Duration",
"generate": "Generate"
"generate": "Generate",
"thisModelRequiresAsset": "This model requires an asset to be selected"
},
"videoPreview": {
"export": "Export"
Expand Down
3 changes: 2 additions & 1 deletion messages/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
"imaginePlaceholder": "Представьте...",
"enhancePrompt": "Улучшить запрос",
"duration": "Длительность",
"generate": "Сгенерировать"
"generate": "Сгенерировать",
"thisModelRequiresAsset": "Эта модель требует выбора ресурса"
},
"videoPreview": {
"export": "Экспорт"
Expand Down
21 changes: 19 additions & 2 deletions src/components/right-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -999,10 +999,27 @@ export default function RightPanel({
</AccordionContent>
</AccordionItem>
</Accordion>
<div className="flex flex-row gap-2">
<div className="flex flex-col gap-2">
{endpoint?.inputAsset?.some((asset) => {
const assetType = getAssetType(asset);
const assetKey = getAssetKey(asset);
return !generateData[assetKey];
}) && (
<div className="text-xs text-muted-foreground text-center">
{t("thisModelRequiresAsset")}
</div>
)}
<Button
className="w-full"
disabled={enhance.isPending || createJob.isPending}
disabled={
enhance.isPending ||
createJob.isPending ||
endpoint?.inputAsset?.some((asset) => {
const assetType = getAssetType(asset);
const assetKey = getAssetKey(asset);
return !generateData[assetKey];
})
}
onClick={handleOnGenerate}
>
{t("generate")}
Expand Down
16 changes: 13 additions & 3 deletions src/data/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,19 @@ export const useJobCreator = ({

if (provider === "fal") {
console.log("[DEBUG] FAL - submitting with endpointId:", endpointId);
const result = await fal.queue.submit(endpointId, { input });
console.log("[DEBUG] FAL submit result:", result);
return result;
console.log("[DEBUG] FAL - input payload:", JSON.stringify(input, null, 2));
try {
const result = await fal.queue.submit(endpointId, { input });
console.log("[DEBUG] FAL submit result:", result);
return result;
} catch (error: any) {
console.error("[DEBUG] FAL submit ERROR:", error);
console.error("[DEBUG] FAL submit ERROR message:", error?.message);
console.error("[DEBUG] FAL submit ERROR status:", error?.status);
console.error("[DEBUG] FAL submit ERROR body:", error?.body);
console.error("[DEBUG] FAL submit ERROR response:", error?.response);
throw error;
}
}
const runware = await getRunwareClient();
if (!runware) {
Expand Down