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