File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,9 @@ async def query_endpoint_handler(
174174 """
175175 check_configuration_loaded (configuration )
176176
177- llama_stack_config = configuration .llama_stack_configuration
177+ # log Llama Stack configuration, but without sensitive information
178+ llama_stack_config = configuration .llama_stack_configuration .model_copy ()
179+ llama_stack_config .api_key = "********"
178180 logger .info ("LLama stack config: %s" , llama_stack_config )
179181
180182 user_id , _ , token = auth
Original file line number Diff line number Diff line change @@ -541,7 +541,9 @@ async def streaming_query_endpoint_handler( # pylint: disable=too-many-locals
541541
542542 check_configuration_loaded (configuration )
543543
544- llama_stack_config = configuration .llama_stack_configuration
544+ # log Llama Stack configuration, but without sensitive information
545+ llama_stack_config = configuration .llama_stack_configuration .model_copy ()
546+ llama_stack_config .api_key = "********"
545547 logger .info ("LLama stack config: %s" , llama_stack_config )
546548
547549 user_id , _user_name , token = auth
You can’t perform that action at this time.
0 commit comments