mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
* fix(cli): quote the Claude Code apiKeyHelper for cmd.exe on Windows lite up and lite login --config-claude wrote the helper command with POSIX shlex quoting, so a backslashed Windows install path came out wrapped in single quotes that cmd.exe and PowerShell take literally. Quote every token with the cmd.exe rules already used for agent shims when running on Windows, and keep the POSIX output unchanged elsewhere. Resolves LIT-6627 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(cli): split the Windows apiKeyHelper with cmd.exe and C runtime rules The invocation test pulled tokens back out with a regex, which cannot see the doubled quotes or the percent guard quote_for_cmd emits. Model the two parsers that read the helper on Windows instead and check argv round trips for backslashed, spaced, metacharacter, percent and quoted tokens --------- Co-authored-by: yassin <yassin@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| conftest.py | ||
| test_chat.py | ||
| test_client.py | ||
| test_credentials.py | ||
| test_http_client.py | ||
| test_http_commands.py | ||
| test_keys.py | ||
| test_model_groups.py | ||
| test_models.py | ||
| test_teams.py | ||
| test_users.py | ||