mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
Revert "Fix model arg for compact request (#29091)"
This reverts commit a2d5b60f17.
This commit is contained in:
parent
a2d5b60f17
commit
1533cdf51b
1 changed files with 1 additions and 6 deletions
|
|
@ -119,14 +119,9 @@ class LiteLLMCompletionTransformationHandler:
|
|||
# breakpoint()
|
||||
compacted = False
|
||||
if context_management:
|
||||
model = litellm_completion_request.get("model", "")
|
||||
provider = litellm_completion_request.get("custom_llm_provider", "")
|
||||
if provider:
|
||||
model = provider + "/" + model
|
||||
|
||||
litellm_completion_request["messages"], compacted = (
|
||||
await LiteLLMCompletionResponsesConfig._transform_context_management(
|
||||
model=model,
|
||||
model=litellm_completion_request.get("model", ""),
|
||||
input=litellm_completion_request.get("messages", []),
|
||||
context_management=context_management,
|
||||
**kwargs,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue