fix: app model config detached in completion thread (#1366)

This commit is contained in:
takatost 2023-10-17 21:18:08 +08:00 committed by GitHub
parent 07285e5f8b
commit c039f4af83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,7 +142,7 @@ class CompletionService:
'flask_app': current_app._get_current_object(),
'generate_task_id': generate_task_id,
'detached_app_model': app_model,
'app_model_config': app_model_config,
'app_model_config': app_model_config.copy(),
'query': query,
'inputs': inputs,
'detached_user': user,
@ -284,7 +284,7 @@ class CompletionService:
'flask_app': current_app._get_current_object(),
'generate_task_id': generate_task_id,
'detached_app_model': app_model,
'app_model_config': app_model_config,
'app_model_config': app_model_config.copy(),
'query': message.query,
'inputs': message.inputs,
'detached_user': user,