Skip to content

Conversation

@mudler
Copy link
Owner

@mudler mudler commented Dec 16, 2025

Description

This PR fixes a shadowing bug when loading model fails and we don't correctly propagate errors to the caller. This causes a nil pointer dereference long the line because if the error is nil it is implied that a client is returned in many other code pieces.

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

@netlify
Copy link

netlify bot commented Dec 16, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit c8a0cea
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/694196096d061d0008052f4e
😎 Deploy Preview https://deploy-preview-7610--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler merged commit 424c95e into master Dec 16, 2025
23 of 28 checks passed
@mudler mudler deleted the fix/propagate-err branch December 16, 2025 17:26
sredman pushed a commit to sredman/LocalAI that referenced this pull request Dec 20, 2025
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Simon Redman <simon@ergotech.com>
@mudler mudler added the bug Something isn't working label Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants