mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 04:17:32 +00:00
Refactor Weaviate config to include cluster URL in memory adapter
This commit is contained in:
parent
2fc9bd95a6
commit
ba8044d243
3 changed files with 11 additions and 8 deletions
|
@ -44,7 +44,8 @@ class MemoryClient(Memory):
|
|||
},
|
||||
headers={
|
||||
"Content-Type": "application/json",
|
||||
"X-LlamaStack-ProviderData": json.dumps({"weaviate_api_key": "1234"}),
|
||||
"X-LlamaStack-ProviderData": json.dumps({"weaviate_api_key": "1234",
|
||||
"weaviate_cluster_url": "http://localhost:8080"}),
|
||||
},
|
||||
timeout=20,
|
||||
)
|
||||
|
@ -70,7 +71,8 @@ class MemoryClient(Memory):
|
|||
},
|
||||
headers={
|
||||
"Content-Type": "application/json",
|
||||
"X-LlamaStack-ProviderData": json.dumps({"weaviate_api_key": "1234"}),
|
||||
"X-LlamaStack-ProviderData": json.dumps({"weaviate_api_key": "1234",
|
||||
"weaviate_cluster_url": "http://localhost:8080"}),
|
||||
},
|
||||
timeout=20,
|
||||
)
|
||||
|
@ -94,7 +96,8 @@ class MemoryClient(Memory):
|
|||
},
|
||||
headers={
|
||||
"Content-Type": "application/json",
|
||||
"X-LlamaStack-ProviderData": json.dumps({"weaviate_api_key": "1234"}),
|
||||
"X-LlamaStack-ProviderData": json.dumps({"weaviate_api_key": "1234",
|
||||
"weaviate_cluster_url": "http://localhost:8080"}),
|
||||
},
|
||||
timeout=20,
|
||||
)
|
||||
|
@ -116,7 +119,8 @@ class MemoryClient(Memory):
|
|||
},
|
||||
headers={
|
||||
"Content-Type": "application/json",
|
||||
"X-LlamaStack-ProviderData": json.dumps({"weaviate_api_key": "1234"}),
|
||||
"X-LlamaStack-ProviderData": json.dumps({"weaviate_api_key": "1234",
|
||||
"weaviate_cluster_url": "http://localhost:8080"}),
|
||||
},
|
||||
timeout=20,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue