Jofthomas HF staff commited on
Commit
838eb6b
1 Parent(s): f92c145

Update TextGen/router.py

Browse files
Files changed (1) hide show
  1. 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
  },