commit
571a079622
|
@ -23,7 +23,7 @@ const aiEvaluateImageToStar = async (req, res) => {
|
||||||
// .catch(error => {
|
// .catch(error => {
|
||||||
// console.error('Error:', error);
|
// console.error('Error:', error);
|
||||||
// });
|
// });
|
||||||
console.log(screenshotUrl.data.filePath)
|
// console.log(screenshotUrl.data.filePath)
|
||||||
const openAiPayload = {
|
const openAiPayload = {
|
||||||
model: 'gpt-4o-mini',
|
model: 'gpt-4o-mini',
|
||||||
messages: [
|
messages: [
|
||||||
|
|
|
@ -41,6 +41,7 @@ const saveGalleryImage = async (req, res) => {
|
||||||
throw new Error('Image upload failed: ' + uploadResponse.statusText);
|
throw new Error('Image upload failed: ' + uploadResponse.statusText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Extract and store the uploaded image URL from the response
|
// Extract and store the uploaded image URL from the response
|
||||||
const screenshotUrl = uploadResponse.data.urls[0];
|
const screenshotUrl = uploadResponse.data.urls[0];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue