fix the the Google AI token was not masked with asterisks in startup logs
This commit is contained in:
@@ -202,6 +202,10 @@ func getConfigWithoutSensitiveData(config *settings.Config) *settings.Config {
|
|||||||
if clonedConfig.ReceiptImageRecognitionLLMConfig.LMStudioToken != "" {
|
if clonedConfig.ReceiptImageRecognitionLLMConfig.LMStudioToken != "" {
|
||||||
clonedConfig.ReceiptImageRecognitionLLMConfig.LMStudioToken = "****"
|
clonedConfig.ReceiptImageRecognitionLLMConfig.LMStudioToken = "****"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if clonedConfig.ReceiptImageRecognitionLLMConfig.GoogleAIAPIKey != "" {
|
||||||
|
clonedConfig.ReceiptImageRecognitionLLMConfig.GoogleAIAPIKey = "****"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if clonedConfig.OAuth2ClientSecret != "" {
|
if clonedConfig.OAuth2ClientSecret != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user