Bump langchain to 0.0.312 (#1067)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-10-17 10:17:50 -03:00 committed by GitHub
commit 2c3a36705c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 784 additions and 629 deletions

1397
poetry.lock generated

File diff suppressed because it is too large Load diff

View file

@ -33,7 +33,7 @@ google-search-results = "^2.4.1"
google-api-python-client = "^2.79.0"
typer = "^0.9.0"
gunicorn = "^21.2.0"
langchain = "^0.0.308"
langchain = "^0.0.312"
openai = "^0.27.8"
pandas = "2.0.3"
chromadb = "^0.3.21"

View file

@ -78,7 +78,7 @@ class QianfanChatEndpointComponent(CustomComponent):
endpoint: Optional[str] = None,
) -> BaseLLM:
try:
output = QianfanChatEndpoint(
output = QianfanChatEndpoint( # type: ignore
model=model,
qianfan_ak=qianfan_ak,
qianfan_sk=qianfan_sk,
@ -89,4 +89,4 @@ class QianfanChatEndpointComponent(CustomComponent):
)
except Exception as e:
raise ValueError("Could not connect to Baidu Qianfan API.") from e
return output
return output # type: ignore

View file

@ -78,7 +78,7 @@ class QianfanLLMEndpointComponent(CustomComponent):
endpoint: Optional[str] = None,
) -> BaseLLM:
try:
output = QianfanLLMEndpoint(
output = QianfanLLMEndpoint( # type: ignore
model=model,
qianfan_ak=qianfan_ak,
qianfan_sk=qianfan_sk,
@ -89,4 +89,4 @@ class QianfanLLMEndpointComponent(CustomComponent):
)
except Exception as e:
raise ValueError("Could not connect to Baidu Qianfan API.") from e
return output
return output # type: ignore

View file

@ -37,12 +37,12 @@ class VectaraComponent(CustomComponent):
vectara_customer_id=vectara_customer_id,
vectara_corpus_id=vectara_corpus_id,
vectara_api_key=vectara_api_key,
source='langflow',
source="langflow",
)
return Vectara(
vectara_customer_id=vectara_customer_id,
vectara_corpus_id=vectara_corpus_id,
vectara_api_key=vectara_api_key,
source='langflow',
source="langflow",
)

View file

@ -44,7 +44,7 @@ class FieldFormatters(BaseModel):
class FrontendNode(BaseModel):
template: Template
description: str
description: Optional[str] = None
base_classes: List[str]
name: str = ""
display_name: str = ""