mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 20:14:13 +00:00
add tool for bing search
This commit is contained in:
parent
741310f78e
commit
640c5f8ab9
5 changed files with 79 additions and 10 deletions
|
@ -86,6 +86,14 @@ class InferenceClient(Inference):
|
|||
|
||||
async def run_main(host: str, port: int, stream: bool):
|
||||
client = InferenceClient(f"http://{host}:{port}")
|
||||
# from llama_toolchain.inference.meta_reference import get_provider_impl
|
||||
# from .meta_reference.config import MetaReferenceImplConfig
|
||||
|
||||
# config = MetaReferenceImplConfig(
|
||||
# model="Meta-Llama3.1-8B-Instruct",
|
||||
# max_seq_len=4096,
|
||||
# )
|
||||
# client = await get_provider_impl(config, {})
|
||||
|
||||
message = UserMessage(content="hello world, troll me in two-paragraphs about 42")
|
||||
cprint(f"User>{message.content}", "green")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue