mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
fix(anthropic_text.py): fix linting error
This commit is contained in:
parent
8592a73881
commit
cca89c2061
1 changed files with 3 additions and 3 deletions
|
@ -100,7 +100,7 @@ class AnthropicTextCompletion(BaseLLM):
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
def process_response(
|
def _process_response(
|
||||||
self, model_response: ModelResponse, response, encoding, prompt: str, model: str
|
self, model_response: ModelResponse, response, encoding, prompt: str, model: str
|
||||||
):
|
):
|
||||||
## RESPONSE OBJECT
|
## RESPONSE OBJECT
|
||||||
|
@ -171,7 +171,7 @@ class AnthropicTextCompletion(BaseLLM):
|
||||||
additional_args={"complete_input_dict": data},
|
additional_args={"complete_input_dict": data},
|
||||||
)
|
)
|
||||||
|
|
||||||
response = self.process_response(
|
response = self._process_response(
|
||||||
model_response=model_response,
|
model_response=model_response,
|
||||||
response=response,
|
response=response,
|
||||||
encoding=encoding,
|
encoding=encoding,
|
||||||
|
@ -330,7 +330,7 @@ class AnthropicTextCompletion(BaseLLM):
|
||||||
)
|
)
|
||||||
print_verbose(f"raw model_response: {response.text}")
|
print_verbose(f"raw model_response: {response.text}")
|
||||||
|
|
||||||
response = self.process_response(
|
response = self._process_response(
|
||||||
model_response=model_response,
|
model_response=model_response,
|
||||||
response=response,
|
response=response,
|
||||||
encoding=encoding,
|
encoding=encoding,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue