mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-06 12:37:33 +00:00
addressed the PR comments
This commit is contained in:
parent
ba8044d243
commit
a138b48eef
3 changed files with 20 additions and 29 deletions
|
@ -42,11 +42,7 @@ class MemoryClient(Memory):
|
|||
params={
|
||||
"bank_id": bank_id,
|
||||
},
|
||||
headers={
|
||||
"Content-Type": "application/json",
|
||||
"X-LlamaStack-ProviderData": json.dumps({"weaviate_api_key": "1234",
|
||||
"weaviate_cluster_url": "http://localhost:8080"}),
|
||||
},
|
||||
headers={"Content-Type": "application/json"},
|
||||
timeout=20,
|
||||
)
|
||||
r.raise_for_status()
|
||||
|
@ -69,11 +65,7 @@ class MemoryClient(Memory):
|
|||
"config": config.dict(),
|
||||
"url": url,
|
||||
},
|
||||
headers={
|
||||
"Content-Type": "application/json",
|
||||
"X-LlamaStack-ProviderData": json.dumps({"weaviate_api_key": "1234",
|
||||
"weaviate_cluster_url": "http://localhost:8080"}),
|
||||
},
|
||||
headers={"Content-Type": "application/json"},
|
||||
timeout=20,
|
||||
)
|
||||
r.raise_for_status()
|
||||
|
@ -94,11 +86,7 @@ class MemoryClient(Memory):
|
|||
"bank_id": bank_id,
|
||||
"documents": [d.dict() for d in documents],
|
||||
},
|
||||
headers={
|
||||
"Content-Type": "application/json",
|
||||
"X-LlamaStack-ProviderData": json.dumps({"weaviate_api_key": "1234",
|
||||
"weaviate_cluster_url": "http://localhost:8080"}),
|
||||
},
|
||||
headers={"Content-Type": "application/json"},
|
||||
timeout=20,
|
||||
)
|
||||
r.raise_for_status()
|
||||
|
@ -117,11 +105,7 @@ class MemoryClient(Memory):
|
|||
"query": query,
|
||||
"params": params,
|
||||
},
|
||||
headers={
|
||||
"Content-Type": "application/json",
|
||||
"X-LlamaStack-ProviderData": json.dumps({"weaviate_api_key": "1234",
|
||||
"weaviate_cluster_url": "http://localhost:8080"}),
|
||||
},
|
||||
headers={"Content-Type": "application/json"},
|
||||
timeout=20,
|
||||
)
|
||||
r.raise_for_status()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue