Add langchain imports and format error detail message

- Import new modules for langchain functionality
- Format error detail message for better readability and organization
This commit is contained in:
gustavoschaedler 2023-07-06 01:05:56 +01:00
commit 38da799224

View file

@ -24,6 +24,9 @@ from fastapi import HTTPException
import traceback
# Used to get the base_classes list
from langchain.chains import ConversationChain # noqa: F401
from langchain.llms.base import BaseLLM # noqa: F401
from langchain.tools import Tool # noqa: F401
def get_type_list():