Fix: Corrected image response handling in frontend and integrated mandatory Wackler Ecosystem logic into system prompts

This commit is contained in:
2026-01-03 14:37:52 +00:00
parent 2b1c5e45df
commit 3b1f2967cb
2 changed files with 52 additions and 6 deletions

View File

@@ -97,6 +97,7 @@ export const translateReportToEnglish = async (reportMarkdown: string): Promise<
return callApi<{ report: string }>('run', 'translate', { reportMarkdown });
};
export const generateConceptImage = async (prompt: string, referenceImagesBase64?: string[]): Promise<{ imageBase64: string }> => {
return callApi<{ imageBase64: string }>('run', 'image', { prompt, referenceImagesBase64 });
export const generateConceptImage = async (prompt: string, referenceImagesBase64?: string[]): Promise<string> => {
const result = await callApi<{ imageBase64: string }>('run', 'image', { prompt, referenceImagesBase64 });
return result.imageBase64;
};