diff --git a/ai/utils/show_prompt.py b/ai/utils/show_prompt.py index 20f3e88..8171d36 100644 --- a/ai/utils/show_prompt.py +++ b/ai/utils/show_prompt.py @@ -251,7 +251,8 @@ class ShowAI: ], stream=False, reasoning_effort="high", - extra_body={"thinking": {"type": "enabled"}}, + extra_body={"thinking": {"type": "enabled"}, + "user_id": self.cinema.zz_code}, response_format={ 'type': 'json_object' } diff --git a/ai/views.py b/ai/views.py index 9cf0fcb..bbe4aab 100644 --- a/ai/views.py +++ b/ai/views.py @@ -77,7 +77,6 @@ def report(request): Q(zz_code=zz_code) & Q(show_date=show_date) & Q(prompt_version=test)).order_by('-id').first() - print('last_ai_data.pk',last_ai_data.pk) if not last_ai_data: result_dict = { 'status': 'Failure', @@ -182,7 +181,7 @@ def manual_test(request): cinema_code = request.POST.get('cinema_code') show_date = request.POST.get('show_date') prompt = request.POST.get('prompt') - print(cinema_code, show_date, prompt) + print('manual_test-request-params', cinema_code, show_date, prompt) result = show_manual_process(cinema_code, show_date, prompt)