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} """),