From 1a6353592b54fdb912c515be72ff70a6793511de Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sat, 16 Nov 2024 13:45:56 -0700 Subject: [PATCH] t --- matrix_gpt/generate_clients/anthropic.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/matrix_gpt/generate_clients/anthropic.py b/matrix_gpt/generate_clients/anthropic.py index be28c10..9b81959 100644 --- a/matrix_gpt/generate_clients/anthropic.py +++ b/matrix_gpt/generate_clients/anthropic.py @@ -58,12 +58,11 @@ class AnthropicApiClient(ApiClient): }) async def generate(self, command_info: CommandInfo, matrix_gpt_data: str = None): - print(self.context) r = await self._create_client(command_info.api_base).messages.create( model=command_info.model, max_tokens=None if command_info.max_tokens == 0 else command_info.max_tokens, temperature=command_info.temperature, - system='' if not command_info.system_prompt else command_info.system_prompt, + system=None if not command_info.system_prompt else command_info.system_prompt, messages=self.context ) return r.content[0].text, None