LocalAI/pkg/model
Ettore Di Giacinto 59ef426fbf
feat(model-list): be consistent, skip known files from listing (#2760)
fix(model-list): be consistent, skip known files from listing

This changeset does two things:

- Removes the dependency of listing models from the OpenAI schema.
- Tries to reduce confusion between ListModels() in model loader and in
  the service - now there is only one ListModels which is in services
and does not depend anymore on the OpenAI schema
- The OpenAI-schema functions were moved nearby the OpenAI specific
  endpoints that needs the schema
- Drops the ListModel Service structure as there was no real need for
  it.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2024-07-10 15:28:39 +02:00
..
initializers.go fix(initializer): do select backends that exist (#2694) 2024-07-01 22:50:36 +02:00
loader_test.go rf: centralize base64 image handling (#2595) 2024-06-24 08:34:36 +02:00
loader.go feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00
model_suite_test.go tests: add template tests (#2063) 2024-04-18 10:57:24 +02:00
options.go chore: fix go.mod module (#2635) 2024-06-23 08:24:36 +00:00
process.go rf: centralize base64 image handling (#2595) 2024-06-24 08:34:36 +02:00
watchdog.go