open-webui / pipelines

Pipelines: Versatile, UI-Agnostic OpenAI-Compatible Plugin Framework
MIT License
997 stars 316 forks source link

Redundant code in litellm_manifold_pipeline.py #330

Open willdady opened 6 days ago

willdady commented 6 days ago

User 'user' key is set in the payload but then immediately deleted via the pop.

payload = {**body, "model": model_id, "user": body["user"]["id"]}
payload.pop("chat_id", None)
payload.pop("user", None)
payload.pop("title", None)