Fix: Deploy Errors

This commit is contained in:
sinergia 2024-11-02 18:27:36 -05:00
parent e34a989745
commit a22223541b
3 changed files with 22 additions and 2 deletions

View File

@ -1,6 +1,6 @@
from fastapi import FastAPI, Request
from fastapi.responses import JSONResponse, RedirectResponse
from langchain_community.chat_models import ChatOpenAI
from langchain_openai import ChatOpenAI
from langserve import add_routes
from langchain_core.prompts import ChatPromptTemplate

21
poetry.lock generated
View File

@ -2936,6 +2936,25 @@ files = [
[package.extras]
diagrams = ["jinja2", "railroad-diagrams"]
[[package]]
name = "pypdf"
version = "5.1.0"
description = "A pure-python PDF library capable of splitting, merging, cropping, and transforming PDF files"
optional = false
python-versions = ">=3.8"
files = [
{file = "pypdf-5.1.0-py3-none-any.whl", hash = "sha256:3bd4f503f4ebc58bae40d81e81a9176c400cbbac2ba2d877367595fb524dfdfc"},
{file = "pypdf-5.1.0.tar.gz", hash = "sha256:425a129abb1614183fd1aca6982f650b47f8026867c0ce7c4b9f281c443d2740"},
]
[package.extras]
crypto = ["cryptography"]
cryptodome = ["PyCryptodome"]
dev = ["black", "flit", "pip-tools", "pre-commit (<2.18.0)", "pytest-cov", "pytest-socket", "pytest-timeout", "pytest-xdist", "wheel"]
docs = ["myst_parser", "sphinx", "sphinx_rtd_theme"]
full = ["Pillow (>=8.0.0)", "cryptography"]
image = ["Pillow (>=8.0.0)"]
[[package]]
name = "pypika"
version = "0.48.9"
@ -4300,4 +4319,4 @@ type = ["pytest-mypy"]
[metadata]
lock-version = "2.0"
python-versions = "^3.11"
content-hash = "8880baf1589d36f8b10462ccaec00ae7f20346a3d7e61383c9bfbd7d8ff1dadc"
content-hash = "f53d4ac516ba79f844b58552da162a79b030be6080172951005c7e132d29cec2"

View File

@ -29,6 +29,7 @@ jsonify = "^0.5"
protobuf = "^3.20.3"
pytz = "^2024.2"
telebot = "^0.0.5"
pypdf = "^5.1.0"