refactor: add sensitive to prompt_queue
This commit is contained in:
+5
-1
@@ -334,8 +334,12 @@ async def post_prompt(json_data):
|
||||
extra_data["client_id"] = json_data["client_id"]
|
||||
if valid[0]:
|
||||
outputs_to_execute = valid[2]
|
||||
sensitive = {}
|
||||
for sensitive_val in execution.SENSITIVE_EXTRA_DATA_KEYS:
|
||||
if sensitive_val in extra_data:
|
||||
sensitive[sensitive_val] = extra_data.pop(sensitive_val)
|
||||
prompt_server.prompt_queue.put(
|
||||
(number, prompt_id, prompt, extra_data, outputs_to_execute)
|
||||
(number, prompt_id, prompt, extra_data, outputs_to_execute, sensitive)
|
||||
)
|
||||
response = {
|
||||
"prompt_id": prompt_id,
|
||||
|
||||
Reference in New Issue
Block a user