hf_text-generation-inference/clients/python/text_generation
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
..
__init__.py chore: sync text-generation version from 0.3.0 to 0.6.0 with pyproject.toml (#950) 2023-09-06 15:20:32 +02:00
client.py feat: update client to 0.7 (#1667) 2024-03-22 17:10:56 +01:00
errors.py feat(clients): Python client (#103) 2023-03-07 18:52:22 +01:00
inference_api.py fix(python-client): add auth headers to is supported requests (#234) 2023-04-25 13:55:26 +02:00
types.py feat: accept list as prompt and use first string (#1702) 2024-04-17 10:41:12 +02:00