LocalAI/core/http/endpoints/openai
mintyleaf 96f8ec0402
feat: add machine tag and inference timings (#4577)
* Add machine tag option, add extraUsage option, grpc-server -> proto -> endpoint extraUsage data is broken for now

Signed-off-by: mintyleaf <mintyleafdev@gmail.com>

* remove redurant timing fields, fix not working timings output

Signed-off-by: mintyleaf <mintyleafdev@gmail.com>

* use middleware for Machine-Tag only if tag is specified

Signed-off-by: mintyleaf <mintyleafdev@gmail.com>

---------

Signed-off-by: mintyleaf <mintyleafdev@gmail.com>
2025-01-17 17:05:58 +01:00
..
assistant.go fix: roll out bluemonday Sanitize more widely (#3794) 2024-10-12 09:45:47 +02:00
assistant_test.go docs(swagger): core more localai/openai endpoints (#2904) 2024-07-18 00:38:41 -04:00
chat.go feat: add machine tag and inference timings (#4577) 2025-01-17 17:05:58 +01:00
completion.go feat: add machine tag and inference timings (#4577) 2025-01-17 17:05:58 +01:00
edit.go feat: add machine tag and inference timings (#4577) 2025-01-17 17:05:58 +01:00
embeddings.go feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00
files.go fix: roll out bluemonday Sanitize more widely (#3794) 2024-10-12 09:45:47 +02:00
files_test.go docs(swagger): core more localai/openai endpoints (#2904) 2024-07-18 00:38:41 -04:00
image.go fix(diffusers): correctly parse height and width request without parametrization (#4082) 2024-11-06 08:53:02 +01:00
inference.go feat: add machine tag and inference timings (#4577) 2025-01-17 17:05:58 +01:00
list.go feat: add machine tag and inference timings (#4577) 2025-01-17 17:05:58 +01:00
request.go chore(refactor): imply modelpath (#4208) 2024-11-20 18:06:35 +01:00
transcription.go feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00