mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-30 18:33:40 +00:00
anthropic[patch]: fix format output args (#18816)
This commit is contained in:
parent
2b0cbd65ba
commit
8c0b215c02
@ -273,7 +273,7 @@ class ChatAnthropic(BaseChatModel):
|
|||||||
) -> ChatResult:
|
) -> ChatResult:
|
||||||
params = self._format_params(messages=messages, stop=stop, **kwargs)
|
params = self._format_params(messages=messages, stop=stop, **kwargs)
|
||||||
data = self._client.messages.create(**params)
|
data = self._client.messages.create(**params)
|
||||||
return self._format_output(data, **kwargs)
|
return self._format_output(data)
|
||||||
|
|
||||||
async def _agenerate(
|
async def _agenerate(
|
||||||
self,
|
self,
|
||||||
@ -284,7 +284,7 @@ class ChatAnthropic(BaseChatModel):
|
|||||||
) -> ChatResult:
|
) -> ChatResult:
|
||||||
params = self._format_params(messages=messages, stop=stop, **kwargs)
|
params = self._format_params(messages=messages, stop=stop, **kwargs)
|
||||||
data = await self._async_client.messages.create(**params)
|
data = await self._async_client.messages.create(**params)
|
||||||
return self._format_output(data, **kwargs)
|
return self._format_output(data)
|
||||||
|
|
||||||
|
|
||||||
@deprecated(since="0.1.0", removal="0.2.0", alternative="ChatAnthropic")
|
@deprecated(since="0.1.0", removal="0.2.0", alternative="ChatAnthropic")
|
||||||
|
Loading…
Reference in New Issue
Block a user