Skip to content

Commit

Permalink
fix: app model config detached in completion thread (#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
takatost authored Oct 17, 2023
1 parent 07285e5 commit c039f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/services/completion_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def completion(cls, app_model: App, user: Union[Account | EndUser], args: Any,
'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,
Expand Down Expand Up @@ -284,7 +284,7 @@ def generate_more_like_this(cls, app_model: App, user: Union[Account | EndUser],
'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,
Expand Down

0 comments on commit c039f4a

Please sign in to comment.