litellm/tests/test_litellm/llms/watsonx
Shivam Rawat c7efa77de3
fix(watsonx): wrap string embedding input in array for WatsonX API (#30897)
* fix(watsonx): wrap string embedding input in array for WatsonX API

WatsonX text/embeddings expects inputs as []string; OpenAI clients often send a single string.

Co-authored-by: Cursor <cursoragent@cursor.com>

* style(watsonx): format watsonx embed transformation for black

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(watsonx): avoid UP006 in embed transformation strict lint gate

Use list[str] and branch-based input normalization instead of List and cast
so the watsonx embedding change does not add strict ruff UP006 violations.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Shivam Rawat <shivamrawat@Shivams-MacBook-Pro.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-20 15:50:44 -07:00
..
audio_transcription chore: allow passing scope id for watsonx inferencing (#18959) 2026-01-14 03:47:20 +05:30
embed fix(watsonx): wrap string embedding input in array for WatsonX API (#30897) 2026-06-20 15:50:44 -07:00
passthrough Litellm OSS Staging 010626 (#29422) 2026-06-01 21:42:51 -07:00
rerank style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
__init__.py [Feat] Add audio transcriptions for WatsonX (#17160) 2025-11-26 14:15:49 -08:00
test_watsonx.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_watsonx_common_utils.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00