text-generation-inference/router/src
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
..
config.rs Adding Llava-Next (Llava 1.6) with full support. (#1709) 2024-04-09 21:32:00 +02:00
health.rs Outlines guided generation (#1539) 2024-02-15 10:28:10 +01:00
infer.rs feat: improve tools to include name and add tests (#1693) 2024-04-16 09:02:46 -04:00
lib.rs feat: accept list as prompt and use first string (#1702) 2024-04-17 10:41:12 +02:00
main.rs feat: accept list as prompt and use first string (#1702) 2024-04-17 10:41:12 +02:00
queue.rs Improve the defaults for the launcher (#1727) 2024-04-12 14:20:31 +02:00
server.rs feat: accept list as prompt and use first string (#1702) 2024-04-17 10:41:12 +02:00
validation.rs Improve the defaults for the launcher (#1727) 2024-04-12 14:20:31 +02:00