Jofthomas HF staff commited on
Commit
03d50be
1 Parent(s): 48a69b6

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