3b23dccd5c
- Added tenantService to modelService for retrieving WeKnoraCloud credentials when not provided in model parameters. - Implemented resolveWeKnoraCloudCredentials method to automatically fetch AppID and AppSecret from tenant configuration. - Updated GetEmbeddingModel, GetEmbeddingModelForTenant, GetRerankModel, and GetChatModel methods to utilize the new credential resolution logic. - Modified ModelParameters to encrypt and decrypt both APIKey and AppSecret for improved security during database operations. This update streamlines credential management for WeKnoraCloud models, enhancing security and usability.