Merge pull request 'tmp' (#21) from tmp into master

Reviewed-on: #21
suvo-patch-1
Subhodip Ghosh 2025-02-04 11:17:58 +00:00
commit 571a079622
2 changed files with 2 additions and 1 deletions

View File

@ -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: [

View File

@ -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];