From 0f516bd95e68765c7c919043b2321fe44a3de180 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 2 Jun 2024 16:59:43 -0700 Subject: [PATCH] fix: anthropic --- .../pipelines/providers/anthropic_manifold_pipeline.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/pipelines/providers/anthropic_manifold_pipeline.py b/examples/pipelines/providers/anthropic_manifold_pipeline.py index 1cfcb14..34965e8 100644 --- a/examples/pipelines/providers/anthropic_manifold_pipeline.py +++ b/examples/pipelines/providers/anthropic_manifold_pipeline.py @@ -63,6 +63,13 @@ class Pipeline: self, user_message: str, model_id: str, messages: List[dict], body: dict ) -> Union[str, Generator, Iterator]: try: + if "user" in body: + del body["user"] + if "chat_id" in body: + del body["chat_id"] + if "title" in body: + del body["title"] + if body.get("stream", False): return self.stream_response(model_id, messages, body) else: