LocalAI icon indicating copy to clipboard operation
LocalAI copied to clipboard

refactor: Minor improvements to BackendConfigLoader

Open dave-gray101 opened this issue 9 months ago • 1 comments

some minor renames and refactorings within BackendConfigLoader:

  • make things more consistent in receiver variable naming
  • remove underused code to centralize things
  • drop public exports where possible
  • rename things for clarity - some of these are a bit long but the goal was to require less contextual information to know what is being loaded or read.

Description

This PR fixes a couple annoyances I had with backend_config_loader.go

Notes for Reviewers Should be no functional changes, existing tests appear sufficient to cover what I'm touching here.

Signed commits

  • [X] Yes, I signed my commits.

dave-gray101 avatar May 19 '24 22:05 dave-gray101