This commit is contained in:
Cyberes 2024-11-16 13:45:07 -07:00
parent 564bbe073d
commit 11a2cb6966
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ 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,