LocalAI/core/schema
Gregory Mariani 4408ed4f88
feat(api): OpenAI video create enpoint integration (#6777)
* feat: add OpenAI-compatible /v1/videos endpoint

- Add VideoEndpoint handler with OpenAI request mapping
- Add MapOpenAIToVideo function to convert OpenAI format to LocalAI VideoRequest
- Add Swagger documentation for API endpoint
- Add Ginkgo unit tests for mapping logic
- Add Ginkgo integration test with embedded fake backend

Signed-off-by: Greg <marianigregory@pm.me>

* Apply suggestion from @mudler

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>

* Apply suggestion from @mudler

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>

* Apply suggestion from @mudler

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>

* Apply suggestion from @mudler

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>

* Apply suggestion from @mudler

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>

* Apply suggestion from @mudler

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>

---------

Signed-off-by: Greg <marianigregory@pm.me>
Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
2025-10-27 10:06:57 +01:00
..
backend.go feat: Add backend gallery (#5607) 2025-06-15 14:56:52 +02:00
elevenlabs.go feat: Centralized Request Processing middleware (#3847) 2025-02-10 12:06:16 +01:00
jina.go feat: Centralized Request Processing middleware (#3847) 2025-02-10 12:06:16 +01:00
localai.go feat(api): OpenAI video create enpoint integration (#6777) 2025-10-27 10:06:57 +01:00
openai.go feat: add reasoning effort and metadata to template (#5981) 2025-08-06 21:56:05 +02:00
prediction.go chore(autogptq): drop archived backend (#5214) 2025-04-19 15:52:29 +02:00
request.go feat: Centralized Request Processing middleware (#3847) 2025-02-10 12:06:16 +01:00
tokenize.go feat: Centralized Request Processing middleware (#3847) 2025-02-10 12:06:16 +01:00
transcription.go feat: Centralized Request Processing middleware (#3847) 2025-02-10 12:06:16 +01:00