LocalAI/core/http/endpoints/openai
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
..
assistant_test.go rf: centralize base64 image handling (#2595) 2024-06-24 08:34:36 +02:00
assistant.go feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00
chat.go feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00
completion.go feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00
edit.go feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00
embeddings.go feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00
files_test.go chore: fix go.mod module (#2635) 2024-06-23 08:24:36 +00:00
files.go docs(swagger): enhance coverage of APIs (#2753) 2024-07-09 23:09:49 +02:00
image.go feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00
inference.go chore: fix go.mod module (#2635) 2024-06-23 08:24:36 +00:00
list.go feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00
request.go feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00
transcription.go feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00