Test to close #854

This commit is contained in:
Simon Willison 2025-03-27 21:47:36 -07:00
parent 9a24605996
commit 945f14e120

View file

@ -84,11 +84,11 @@ class MockModel(llm.Model):
class EchoModel(llm.Model):
model_id = "echo"
can_stream = True
def execute(self, prompt, stream, response, conversation):
yield "system:\n{}\n\nprompt:\n{}".format(
prompt.system or "", prompt.prompt or ""
)
yield "system:\n{}\n\n".format(prompt.system or "")
yield "prompt:\n{}".format(prompt.prompt or "")
class MockKeyModel(llm.KeyModel):