Skip to content

Commit 4212ef4

Browse files
committed
use auto not together
1 parent 186e741 commit 4212ef4

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docs/inference-providers/guides/building-first-app.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,18 @@ Using the `auto` provider will automatically select the best provider for the mo
231231
<hfoptions id="summarization">
232232
<hfoption id="python">
233233
234-
Next, we'll use a powerful language model like `deepseek-ai/DeepSeek-R1-0528` from Qwen via Together AI for summarization:
234+
Next, we'll use a powerful language model like `deepseek-ai/DeepSeek-R1-0528` from DeepSeek via an Inference Provider.
235+
236+
<Tip>
237+
238+
We'll use the `auto` provider to automatically select the best provider for the model. You can define your own priority list of providers in the [Inference Providers](https://huggingface.co/settings/inference-providers) page.
239+
240+
</Tip>
235241
236242
```python
237243
def generate_summary(transcript):
238-
"""Generate summary using Together AI"""
239-
client = InferenceClient(provider="together")
244+
"""Generate summary using an Inference Provider"""
245+
client = InferenceClient(provider="auto")
240246

241247
prompt = f"""
242248
Analyze this meeting transcript and provide:
@@ -343,8 +349,8 @@ def transcribe_audio(audio_file_path):
343349

344350

345351
def generate_summary(transcript):
346-
"""Generate summary using Together AI"""
347-
client = InferenceClient(provider="together")
352+
"""Generate summary using an Inference Provider"""
353+
client = InferenceClient(provider="auto")
348354

349355
prompt = f"""
350356
Analyze this meeting transcript and provide:

0 commit comments

Comments
 (0)