|
@@ -2088,7 +2088,7 @@ class GeminiAttributeService:
|
|
|
'error': 'No response from AI',
|
|
'error': 'No response from AI',
|
|
|
'fallback_suggestions': self._generate_fallback_suggestions(limited_issues)
|
|
'fallback_suggestions': self._generate_fallback_suggestions(limited_issues)
|
|
|
}
|
|
}
|
|
|
- time.sleep(6)
|
|
|
|
|
|
|
+ time.sleep(30)
|
|
|
return result
|
|
return result
|
|
|
|
|
|
|
|
if not response.candidates:
|
|
if not response.candidates:
|
|
@@ -2097,7 +2097,7 @@ class GeminiAttributeService:
|
|
|
'error': 'No candidates in response',
|
|
'error': 'No candidates in response',
|
|
|
'fallback_suggestions': self._generate_fallback_suggestions(limited_issues)
|
|
'fallback_suggestions': self._generate_fallback_suggestions(limited_issues)
|
|
|
}
|
|
}
|
|
|
- time.sleep(6)
|
|
|
|
|
|
|
+ time.sleep(30)
|
|
|
return result
|
|
return result
|
|
|
|
|
|
|
|
candidate = response.candidates[0]
|
|
candidate = response.candidates[0]
|
|
@@ -2129,7 +2129,7 @@ class GeminiAttributeService:
|
|
|
'finish_reason': finish_reason,
|
|
'finish_reason': finish_reason,
|
|
|
'fallback_suggestions': self._generate_fallback_suggestions(limited_issues)
|
|
'fallback_suggestions': self._generate_fallback_suggestions(limited_issues)
|
|
|
}
|
|
}
|
|
|
- time.sleep(6)
|
|
|
|
|
|
|
+ time.sleep(30)
|
|
|
return result
|
|
return result
|
|
|
|
|
|
|
|
# Parse successful response
|
|
# Parse successful response
|
|
@@ -2143,7 +2143,7 @@ class GeminiAttributeService:
|
|
|
logger.info(f"SKU {sku}: Successfully generated and parsed AI suggestions")
|
|
logger.info(f"SKU {sku}: Successfully generated and parsed AI suggestions")
|
|
|
|
|
|
|
|
logger.debug(f"SKU {sku}: Sleeping 6 seconds to respect API rate limits")
|
|
logger.debug(f"SKU {sku}: Sleeping 6 seconds to respect API rate limits")
|
|
|
- time.sleep(6)
|
|
|
|
|
|
|
+ time.sleep(30)
|
|
|
|
|
|
|
|
return suggestions
|
|
return suggestions
|
|
|
|
|
|