Spaces:
Sleeping
Sleeping
Update api.py
Browse files
api.py
CHANGED
|
@@ -399,7 +399,7 @@ class ChatQuery(BaseModel):
|
|
| 399 |
@app.post("/RAGChat")
|
| 400 |
async def rag_chat(query: ChatQuery):
|
| 401 |
try:
|
| 402 |
-
prompt_template =
|
| 403 |
|
| 404 |
prompt = PromptTemplate(
|
| 405 |
input_variables=["context", "question"],
|
|
|
|
| 399 |
@app.post("/RAGChat")
|
| 400 |
async def rag_chat(query: ChatQuery):
|
| 401 |
try:
|
| 402 |
+
prompt_template = create_prompt_chat(query.question,query.language)
|
| 403 |
|
| 404 |
prompt = PromptTemplate(
|
| 405 |
input_variables=["context", "question"],
|