hf_text-generation-inference/docs/source/basic_tutorials
drbh 06c3d4b1ec
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-04-17 10:41:12 +02:00
..
consuming_tgi.md chore: add pre-commit (#1569) 2024-02-16 11:58:58 +01:00
gated_model_access.md v1.4.0 (#1494) 2024-01-26 19:04:57 +01:00
launcher.md feat: accept list as prompt and use first string (#1702) 2024-04-17 10:41:12 +02:00
non_core_models.md chore: add pre-commit (#1569) 2024-02-16 11:58:58 +01:00
preparing_model.md chore: add pre-commit (#1569) 2024-02-16 11:58:58 +01:00
safety.md Pickle conversion now requires `--trust-remote-code`. (#1704) 2024-04-05 13:32:53 +02:00
using_cli.md chore: add pre-commit (#1569) 2024-02-16 11:58:58 +01:00