addressed the PR comments

This commit is contained in:
Zain Hasan 2024-09-24 16:21:37 -04:00
parent ba8044d243
commit a138b48eef
3 changed files with 20 additions and 29 deletions

View file

@ -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()