LocalAI/core/http
Prajwal S Nayak 4d98dd9ce7
feat(image): support response_type in the OpenAI API request (#2347)
* Change response_format type to string to match OpenAI Spec

Signed-off-by: prajwal <prajwalnayak7@gmail.com>

* updated response_type type to interface

Signed-off-by: prajwal <prajwalnayak7@gmail.com>

* feat: correctly parse generic struct

Signed-off-by: mudler <mudler@localai.io>

* add tests

Signed-off-by: mudler <mudler@localai.io>

---------

Signed-off-by: prajwal <prajwalnayak7@gmail.com>
Signed-off-by: mudler <mudler@localai.io>
Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
Co-authored-by: mudler <mudler@localai.io>
2024-05-29 14:40:54 +02:00
..
ctx Revert #1963 (#2056) 2024-04-17 23:33:49 +02:00
elements fix(ux): fix small glitches (#2265) 2024-05-08 19:34:33 +02:00
endpoints feat(image): support response_type in the OpenAI API request (#2347) 2024-05-29 14:40:54 +02:00
routes feat(ui): display number of available models for installation (#2298) 2024-05-12 14:24:36 +02:00
static feat(webui): statically embed js/css assets (#2348) 2024-05-19 18:24:27 +02:00
views feat(webui): statically embed js/css assets (#2348) 2024-05-19 18:24:27 +02:00
app_test.go test: check the response URL during image gen in app_test.go (#2248) 2024-05-05 18:46:33 +00:00
app.go UI: flag trust_remote_code to users // favicon support (#2253) 2024-05-07 08:39:23 +02:00
http_suite_test.go fix: rename fiber entrypoint from http/api to http/app (#2096) 2024-04-21 22:39:28 +02:00
render.go fix: use bluemonday as recommended by blackfriday (#2142) 2024-04-26 10:34:50 +02:00