feat: add anthropic claude-2.1 support (#1591)

This commit is contained in:
takatost
2023-11-22 01:46:19 +08:00
committed by GitHub
parent d6a6697891
commit 4a55d5729d
5 changed files with 45 additions and 13 deletions

View File

@@ -31,12 +31,12 @@ def mock_chat_generate_invalid(messages: List[BaseMessage],
run_manager: Optional[CallbackManagerForLLMRun] = None,
**kwargs: Any):
raise anthropic.APIStatusError('Invalid credentials',
request=httpx._models.Request(
method='POST',
url='https://api.anthropic.com/v1/completions',
),
response=httpx._models.Response(
status_code=401,
request=httpx._models.Request(
method='POST',
url='https://api.anthropic.com/v1/completions',
)
),
body=None
)