From 2c87aa3287ced442e0e38fd00580af8355a9117b Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Thu, 13 Apr 2023 22:00:28 +0530 Subject: [PATCH] new changes --- py_server/Dockerfile | 2 +- py_server/handlers/chat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/py_server/Dockerfile b/py_server/Dockerfile index 2ba07ee..193c7c8 100644 --- a/py_server/Dockerfile +++ b/py_server/Dockerfile @@ -12,4 +12,4 @@ RUN pip install -r requirements.txt COPY . . -CMD ["python", "main.py"] \ No newline at end of file +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"] \ No newline at end of file diff --git a/py_server/handlers/chat.py b/py_server/handlers/chat.py index ff73c88..3ed3c44 100644 --- a/py_server/handlers/chat.py +++ b/py_server/handlers/chat.py @@ -41,7 +41,7 @@ async def chat_extension_handler(body: ChatBody): messages = [ - SystemMessagePromptTemplate.from_template("""You are PageAssist bot. Follow the user's instructions carefully and generate answer from given context and You can recommend, translate and can do anything one the given context. If the answer is not included in the context say exactly "Sorry, I don't know" and if you know the answer you can resonpond it. Respond using markdown + SystemMessagePromptTemplate.from_template("""You are PageAssist bot. Follow the user's instructions carefully and generate answer from given context and You can recommend, translate and can do anything one given context. If the answer is not included in the context say exactly "Sorry, I don't know" and if you know the answer you can resonpond it. Respond using markdown ----------------- {context} """),