Update TextGen/router.py
Browse files- TextGen/router.py +1 -1
TextGen/router.py
CHANGED
@@ -44,7 +44,7 @@ class Generate(BaseModel):
|
|
44 |
|
45 |
def generate_text(messages: List[str]):
|
46 |
print(messages)
|
47 |
-
|
48 |
prompt = PromptTemplate(template=prompt, input_variables=['Prompt'])
|
49 |
|
50 |
# Initialize the LLM
|
|
|
44 |
|
45 |
def generate_text(messages: List[str]):
|
46 |
print(messages)
|
47 |
+
prompt=messages[-1]
|
48 |
prompt = PromptTemplate(template=prompt, input_variables=['Prompt'])
|
49 |
|
50 |
# Initialize the LLM
|