keynes42 commited on
Commit
a250a24
·
verified ·
1 Parent(s): 0db4386

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -98,6 +98,7 @@ class BasicAgent:
98
  model=mod,
99
  tokenizer=tok,
100
  max_new_tokens=512,
 
101
  # temperature=1.0,
102
  )
103
  self.agent = CodeAgent(model=self, tools=[], add_base_tools=True)
 
98
  model=mod,
99
  tokenizer=tok,
100
  max_new_tokens=512,
101
+ return_full_text=False, # <— only get the completion, not the prompt + completion
102
  # temperature=1.0,
103
  )
104
  self.agent = CodeAgent(model=self, tools=[], add_base_tools=True)