Skip to content

Commit 9255eb0

Browse files
authored
[docs] adding support for tinfoil (#1958)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add documentation for Tinfoil as a supported provider under `openai-generic`, including a new page and navigation update. > > - **Documentation**: > - Add Tinfoil to the list of supported providers in `openai-generic.mdx`. > - Create new documentation page `tinfoil.mdx` for Tinfoil provider, detailing its usage with `openai-generic`. > - **Configuration**: > - Update `docs.yml` to include Tinfoil in the navigation under LLM Client Providers. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for f1f9542. You can [customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this summary. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
1 parent 3d83f99 commit 9255eb0

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

‎fern/03-reference/baml/clients/providers/openai-generic.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ A non-exhaustive list of providers you can use with `openai-generic`:
3131
| LM Studio | [LM Studio](/ref/llm-client-providers/lmstudio) |
3232
| Ollama | [Ollama](/ref/llm-client-providers/ollama) |
3333
| OpenRouter | [OpenRouter](/ref/llm-client-providers/openrouter) |
34+
| Tinfoil | [Tinfoil](/ref/llm-client-providers/tinfoil) |
3435
| TogetherAI | [TogetherAI](/ref/llm-client-providers/together) |
3536
| Unify AI | [Unify AI](/ref/llm-client-providers/unify) |
3637
| vLLM | [vLLM](/ref/llm-client-providers/vllm) |
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Tinfoil
3+
---
4+
5+
[Tinfoil](https://tinfoil.sh/) is verifiably private AI inference.
6+
7+
Tinfoil supports the OpenAI client, allowing you
8+
to use the [`openai-generic`](/docs/snippets/clients/providers/openai) provider
9+
with an overridden `base_url`.
10+
11+
12+
```baml
13+
client<llm> TinfoilDeepSeek {
14+
provider openai-generic
15+
retry_policy Exponential
16+
options {
17+
base_url "https://deepseek-r1-70b-p.model.tinfoil.sh/v1"
18+
model "deepseek-r1-70b"
19+
api_key env.TINFOIL_API_KEY
20+
}
21+
}
22+
```

‎fern/docs.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,9 @@ navigation:
763763
- page: "OpenRouter (openai-generic)"
764764
slug: openrouter
765765
path: 03-reference/baml/clients/providers/openrouter.mdx
766+
- page: "Tinfoil (openai-generic)"
767+
slug: tinfoil
768+
path: 03-reference/baml/clients/providers/tinfoil.mdx
766769
- page: "TogetherAI (openai-generic)"
767770
slug: together
768771
path: 03-reference/baml/clients/providers/together.mdx

0 commit comments

Comments
 (0)