mirror of
https://github.com/hwchase17/langchain
synced 2024-11-13 19:10:52 +00:00
lint
This commit is contained in:
parent
6107bba7ad
commit
9034b21b07
@ -1,7 +1,7 @@
|
||||
"""Hugging Face Chat Wrapper."""
|
||||
|
||||
from dataclasses import dataclass
|
||||
import json
|
||||
from dataclasses import dataclass
|
||||
from typing import (
|
||||
Any,
|
||||
Callable,
|
||||
@ -107,7 +107,6 @@ def _convert_TGI_message_to_LC_message(
|
||||
additional_kwargs: Dict = {}
|
||||
if tool_calls := _message.tool_calls:
|
||||
if "arguments" in tool_calls[0]["function"]:
|
||||
|
||||
functions = tool_calls[0]["function"].pop("arguments")
|
||||
tool_calls[0]["function"]["arguments"] = json.dumps(
|
||||
functions, ensure_ascii=False
|
||||
|
Loading…
Reference in New Issue
Block a user