From 8c79039b1554deff6953cd1d09325265e8242947 Mon Sep 17 00:00:00 2001 From: Travis Addair Date: Sat, 2 Dec 2023 14:48:44 -0800 Subject: [PATCH] Source info --- clients/python/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/clients/python/README.md b/clients/python/README.md index 29da8369c..f4b72aa1f 100644 --- a/clients/python/README.md +++ b/clients/python/README.md @@ -77,7 +77,13 @@ headers = { client = Client(endpoint_url, headers=headers) # same as above from here ... -response = client.generate("Why is the sky blue?", adapter_id="some/adapter") +response = client.generate("Why is the sky blue?", adapter_id=f"{model_repo}/{model_version}") +``` + +Note that by default Predibase will use its internal model repos as the default `adapter_source`. To use an adapter from Huggingface: + +```python +response = client.generate("Why is the sky blue?", adapter_id="some/adapter", adapter_source="hub") ``` ### Types