We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc95bf4 commit c8d58acCopy full SHA for c8d58ac
syncode/infer.py
@@ -143,7 +143,7 @@ def __init__(
143
def is_grammar_mode(self):
144
return self.mode == 'grammar_mask' or self.mode == 'grammar_strict'
145
146
- def infer(self, prompt=None, stop_words=[]):
+ def infer(self, prompt=None, stop_words=None):
147
output = self.user_input(prompt, stop_words=stop_words)
148
return output
149
@@ -193,7 +193,7 @@ def evaluate(
193
logger.close()
194
195
196
- def user_input(self, prompt:str, stop_words=[]):
+ def user_input(self, prompt:str, stop_words=None):
197
"""
198
Run user input on the model with grammar mask
199
0 commit comments