mudler / LocalAI

:robot: The free, Open Source alternative to OpenAI, Claude and others. Self-hosted and local-first. Drop-in replacement for OpenAI, running on consumer-grade hardware. No GPU required. Runs gguf, transformers, diffusers and many more models architectures. Features: Generate Text, Audio, Video, Images, Voice Cloning, Distributed, P2P inference
https://localai.io
MIT License
26.56k stars 1.98k forks source link

chore(api): return values from schema #4153

Closed mudler closed 2 weeks ago

mudler commented 2 weeks ago

Description

This pull request includes several changes to improve the handling and representation of system information models. This is mainly done to the fact that we don't want to marshal the model.Model struct that has a Mutex, which makes swagger choke during generation of the documentation.

We create here a schema.Model which is used to return the results instead of consuming directly model.Model

Notes for Reviewers

Bumped into this as part of #3722

Signed commits

netlify[bot] commented 2 weeks ago

Deploy Preview for localai ready!

Name Link
Latest commit 2ecbb0367837ebbaff82256f95386061f42160e3
Latest deploy log https://app.netlify.com/sites/localai/deploys/6735dc8c78e00100082f9ed2
Deploy Preview https://deploy-preview-4153--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 site configuration.