From 732f524372d9d98043fba385ec91f4dfddc7d2f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Ho=CC=88nicke?= Date: Mon, 24 Apr 2023 12:09:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=BD=20fix:=20encoding=20issue=20on=20w?= =?UTF-8?q?indows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 3 ++- src/options/generate/templates_user.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index b8c59f4..079a8d0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,9 @@ +jina==3.15.1.dev14 +protobuf<3.21.0 click streamlit openai psutil -jina jcloud jina-hubble-sdk langchain \ No newline at end of file diff --git a/src/options/generate/templates_user.py b/src/options/generate/templates_user.py index 001648d..d7c6a06 100644 --- a/src/options/generate/templates_user.py +++ b/src/options/generate/templates_user.py @@ -167,7 +167,7 @@ template_generate_requirements = PromptTemplate.from_template( Write the content of the requirements.txt file. Make sure to include pytest. Make sure to include openai>=0.26.0. -Make sure that jina==3.14.1. +Make sure that jina==3.15.1.dev14. Make sure that docarray==0.21.0. You must not add gpt_3_5_turbo_api to the requirements.txt file. @@ -187,7 +187,7 @@ Usually libraries are installed with apt-get. Be aware that the machine the docker container is running on does not have a GPU - only CPU. Add the config.yml file to the Dockerfile. Note that the Dockerfile only has access to the files: microservice.py, requirements.txt, config.yml and test_microservice.py. -The base image of the Dockerfile is FROM jinaai/jina:3.14.1-py39-standard. +The base image of the Dockerfile is FROM jinaai/jina:3.15.1-dev14-py39-standard. The entrypoint is ENTRYPOINT ["jina", "executor", "--uses", "config.yml"]. Make sure the all files are in the /workdir. The Dockerfile runs the test during the build process.