增加影院用户隔离

main
rogersun 4 days ago
parent 7ebbcd48a2
commit 513f62a67b
  1. 3
      ai/utils/show_prompt.py
  2. 3
      ai/views.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'
}

@ -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)

Loading…
Cancel
Save