text-generation-inference/docs/source/basic_tutorials
drbh 918916939f feat: accept list as prompt and use first string (#1702)
This PR allows the `CompletionRequest.prompt` to be sent as a string or
array of strings. When an array is sent the first value will be used if
it's a string; otherwise the according error will be thrown

Fixes:
https://github.com/huggingface/text-generation-inference/issues/1690
Similar to: https://github.com/vllm-project/vllm/pull/323/files
2024-06-03 15:39:47 +03:00
..
consuming_tgi.md chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
gated_model_access.md v1.4.0 (#1494) 2024-04-22 15:47:42 +03:00
launcher.md feat: accept list as prompt and use first string (#1702) 2024-06-03 15:39:47 +03:00
non_core_models.md chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
preparing_model.md chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
safety.md Pickle conversion now requires --trust-remote-code. (#1704) 2024-04-25 15:09:00 +03:00
using_cli.md chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00