litellm/tests/test_litellm/llms/openai/completion
Cesar Garcia a8282839e8
fix(text_completion): support token IDs (list of integers) as prompt (#18011)
* fix(text_completion): support token IDs (list of integers) as prompt

Add support for passing token IDs (list of integers) to the text_completion
endpoint for OpenAI-compatible providers (openai, azure, vllm, etc.).

Fixes #17118

* test(text_completion): replace live test with mock test for token IDs

Move token IDs test from local_testing to test_litellm with mocks
per PR review feedback.
2026-01-12 17:33:24 +05:30
..
test_text_completion_guardrail_handler.py fix(unified_guardrail.py): support during_call event type for unified guardrails (#17514) 2025-12-04 22:06:13 -08:00
test_text_completion_token_ids.py fix(text_completion): support token IDs (list of integers) as prompt (#18011) 2026-01-12 17:33:24 +05:30