fix the lint error

This commit is contained in:
Ding Jiatong 2024-11-15 13:09:21 +08:00 committed by GitHub
parent 75aa0220dd
commit 4c1636807a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -331,7 +331,6 @@ class AnthropicLargeLanguageModel(LargeLanguageModel):
completion_tokens = (response.usage and response.usage.output_tokens) or \
self.get_num_tokens(model, credentials, [assistant_prompt_message])
# transform usage
usage = self._calc_response_usage(model, credentials, prompt_tokens, completion_tokens)