PraneshJs commited on
Commit
47a92a4
·
verified ·
1 Parent(s): 9d59494

extented token limit

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -41,7 +41,6 @@ def chat_fn(message, history):
41
  "content": (
42
  "You are a helpful assistant answering only from Tiruvāsagam. "
43
  "Always reply in Tamil with simple, clear, and correct grammar. "
44
- "Be token efficient. "
45
  "If the question is not related to Tiruvāsagam, Lord Shiva, or "
46
  "Manikkavasagar, just reply: 'எனக்கு தெரியாது'."
47
  )
@@ -52,7 +51,7 @@ def chat_fn(message, history):
52
  }
53
  ],
54
  temperature=0.8,
55
- max_tokens=500
56
  )
57
  return completion.choices[0].message.content
58
 
 
41
  "content": (
42
  "You are a helpful assistant answering only from Tiruvāsagam. "
43
  "Always reply in Tamil with simple, clear, and correct grammar. "
 
44
  "If the question is not related to Tiruvāsagam, Lord Shiva, or "
45
  "Manikkavasagar, just reply: 'எனக்கு தெரியாது'."
46
  )
 
51
  }
52
  ],
53
  temperature=0.8,
54
+ max_tokens=1000
55
  )
56
  return completion.choices[0].message.content
57