mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-26 06:03:19 +00:00
test(spend-logs): cover plain string parts in the latest user message
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
3193c37588
commit
9407b95b02
1 changed files with 4 additions and 0 deletions
|
|
@ -6724,6 +6724,10 @@ def _stored_request_body(body: Mapping[str, object]) -> dict[str, str]:
|
|||
),
|
||||
({"input": [{"role": "user", "content": "q"}, {"type": "function_call_output", "output": "out"}]}, {}),
|
||||
({"messages": [{"role": "user", "content": "q"}, {"role": "assistant", "content": "prefill"}]}, {}),
|
||||
(
|
||||
{"messages": [{"role": "user", "content": ["plain part", {"type": "text", "text": "block part"}]}]},
|
||||
{"latest_user_message": "plain part\nblock part"},
|
||||
),
|
||||
(
|
||||
{"messages": [{"role": "user", "content": [{"type": []}, {"type": {}}, {"type": "text", "text": "latest"}]}]},
|
||||
{"latest_user_message": "latest"},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue