Skip to content

Commit

Permalink
fix: anthropic
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed Jun 2, 2024
1 parent c2f5200 commit 0f516bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/pipelines/providers/anthropic_manifold_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ def pipe(
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:
Expand Down

0 comments on commit 0f516bd

Please sign in to comment.