Skip to content

Commit

Permalink
Source info
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaddair committed Dec 2, 2023
1 parent 86e5156 commit 8c79039
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion clients/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c79039

Please sign in to comment.