Elffuss BraidHub

kikocis/llama-stack public

update inference prompt msg
Changeset3b6b4dbcc9787d7dffd1ddfb64a090f013e3abd168646f872bfda1a555c54652
AuthorXi Yan <xiyan@meta.com> · 2024-09-19 12:01 -07:00
CommitterXi Yan <xiyan@meta.com> · 2024-09-19 12:03 -07:00
Parents9633932f9aae

Browse the files at this changeset

1 file changed

modified llama_stack/apis/inference/client.py +3 −1
@@ -86,7 +86,9 @@
8686 async def run_main(host: str, port: int, stream: bool):
8787 client = InferenceClient(f"http://{host}:{port}")
8888
89- message = UserMessage(content="hello world, troll me in two-paragraphs about 42")
89+ message = UserMessage(
90+ content="hello world, write me a 2 sentence poem about the moon"
91+ )
9092 cprint(f"User>{message.content}", "green")
9193 iterator = client.chat_completion(
9294 ChatCompletionRequest(