From 2848e86dce5d75d6452573ac39a3d3b3070b646c Mon Sep 17 00:00:00 2001 From: Luciano <66913960+lucianosrp@users.noreply.github.com> Date: Wed, 6 Nov 2024 02:25:07 +0100 Subject: [PATCH] Update simplemind/providers/anthropic.py Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- simplemind/providers/anthropic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplemind/providers/anthropic.py b/simplemind/providers/anthropic.py index 117f27f..fbf80e8 100644 --- a/simplemind/providers/anthropic.py +++ b/simplemind/providers/anthropic.py @@ -72,7 +72,7 @@ class Anthropic(BaseProvider): ] response = self.client.messages.create( - system=system_prompt.text, + system=system_prompt.text if system_prompt else None, model=conversation.llm_model or self.DEFAULT_MODEL, messages=messages, **{**self.DEFAULT_KWARGS, **kwargs},