kikocis/llama-stack public
Changesets · Branches · Tags · Compare
| Changeset | 3b6b4dbcc9787d7dffd1ddfb64a090f013e3abd168646f872bfda1a555c54652 |
|---|---|
| Author | Xi Yan <xiyan@meta.com> · 2024-09-19 12:01 -07:00 |
| Committer | Xi Yan <xiyan@meta.com> · 2024-09-19 12:03 -07:00 |
| Parents | 9633932f9aae |
1 file changed
modified llama_stack/apis/inference/client.py +3 −1
| @@ -86,7 +86,9 @@ | ||
| 86 | 86 | async def run_main(host: str, port: int, stream: bool): |
| 87 | 87 | client = InferenceClient(f"http://{host}:{port}") |
| 88 | 88 | |
| 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 | + ) | |
| 90 | 92 | cprint(f"User>{message.content}", "green") |
| 91 | 93 | iterator = client.chat_completion( |
| 92 | 94 | ChatCompletionRequest( |