mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
2 models routing client
This commit is contained in:
parent
4b083eec03
commit
f6146f8e58
1 changed files with 3 additions and 2 deletions
|
@ -89,10 +89,11 @@ async def run_main(host: str, port: int, stream: bool):
|
|||
message = UserMessage(
|
||||
content="hello world, write me a 2 sentence poem about the moon"
|
||||
)
|
||||
|
||||
cprint(f"User>{message.content}", "green")
|
||||
iterator = client.chat_completion(
|
||||
ChatCompletionRequest(
|
||||
model="Meta-Llama3.1-8B-Instruct",
|
||||
model="Meta-Llama3.1-8B",
|
||||
messages=[message],
|
||||
stream=stream,
|
||||
)
|
||||
|
@ -103,7 +104,7 @@ async def run_main(host: str, port: int, stream: bool):
|
|||
cprint(f"User>{message.content}", "green")
|
||||
iterator = client.chat_completion(
|
||||
ChatCompletionRequest(
|
||||
model="Meta-Llama3.1-8B",
|
||||
model="Meta-Llama3.1-8B-Instruct",
|
||||
messages=[message],
|
||||
stream=stream,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue