Update TextGen/router.py
Browse files- TextGen/router.py +1 -0
TextGen/router.py
CHANGED
@@ -64,6 +64,7 @@ def generate_text(messages: List[str], npc:str):
|
|
64 |
# Initialize the LLM
|
65 |
llm = ChatGoogleGenerativeAI(
|
66 |
model="gemini-pro",
|
|
|
67 |
safety_settings={
|
68 |
HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: HarmBlockThreshold.BLOCK_NONE,
|
69 |
},
|
|
|
64 |
# Initialize the LLM
|
65 |
llm = ChatGoogleGenerativeAI(
|
66 |
model="gemini-pro",
|
67 |
+
max_output_tokens=100,
|
68 |
safety_settings={
|
69 |
HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: HarmBlockThreshold.BLOCK_NONE,
|
70 |
},
|