mirror of
https://github.com/Hopiu/llm.git
synced 2026-04-14 18:21:05 +00:00
Test to close #854
This commit is contained in:
parent
9a24605996
commit
945f14e120
1 changed files with 3 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue