self-chat / models /mock.py
xu song
update
241f191
raw
history blame contribute delete
317 Bytes
"""
"""
from models.base_model import Simulator
class MockSimulator(Simulator):
def __init__(self, *args, **kwargs):
pass
def strip_stoptokens(self, tokens):
return tokens
def generate(self, history, stream=True):
for text in ['hello', 'world']:
yield text, [11]