@@ -16,7 +16,7 @@ router = Router(auth=AsyncAuthBearer(), tags=['ml_model']) @router.post('predict-price/', tags=['ml_model/predict-price'], response=PredictPriceSchema) def calculate_predict_price(request, body: PredictPriceInputSchema): payload = body.dict() - content = payload.pop('content') + content = payload.pop('content') if body.model_slug != 'qwen_3_tts' else payload.get('content') json_str = json.dumps(payload, sort_keys=True, separators=(',', ':')) signature = hashlib.sha256(json_str.encode('utf-8')).hexdigest() cache_key = f'predict_price:{signature}'