LocalAI/core/http/endpoints/openai
Ettore Di Giacinto 8d45670e41
fix(openai): consistently return stop reason (#4771)
We were not returning a stop reason when no tool was actually called
(even if specified).

Fixes: https://github.com/mudler/LocalAI/issues/4716

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-02-06 12:41:08 +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 fix(openai): consistently return stop reason (#4771) 2025-02-06 12:41:08 +01:00
completion.go chore(docs): extra-Usage and Machine-Tag docs (#4627) 2025-01-18 08:58:38 +01:00
edit.go chore(docs): extra-Usage and Machine-Tag docs (#4627) 2025-01-18 08:58:38 +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 chore(stablediffusion-ncn): drop in favor of ggml implementation (#4652) 2025-01-22 19:34:16 +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(stablediffusion-ncn): drop in favor of ggml implementation (#4652) 2025-01-22 19:34:16 +01:00
transcription.go feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00