refactor: Update function signatures across multiple files to improve readability by adding context parameters and enhancing code structure

This commit is contained in:
wizardchen
2025-11-28 16:17:52 +08:00
parent 135e33eca4
commit eb8bfddfd1
89 changed files with 1453 additions and 522 deletions
+2 -1
View File
@@ -186,7 +186,8 @@ func (s *OllamaService) EnsureModelAvailable(ctx context.Context, modelName stri
available, err := s.IsModelAvailable(ctx, modelName)
if err != nil {
if s.isOptional {
logger.GetLogger(ctx).Warnf("Failed to check model %s availability, but Ollama is set as optional", modelName)
logger.GetLogger(ctx).
Warnf("Failed to check model %s availability, but Ollama is set as optional", modelName)
return nil
}
return err