Fix: Corrected image response handling in frontend and integrated mandatory Wackler Ecosystem logic into system prompts
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user