Elffuss BraidHub

kikocis/continue public

37eef76c38ed · 1.0 KiBRawPermalink
1---
2title: "DeepInfra"
3---
4
5[DeepInfra](https://deepinfra.com) provides inference for open-source models at very low cost. To get started with DeepInfra, obtain your API key [here](https://deepinfra.com/dash). Then, find the model you want to use [here](https://deepinfra.com/models?type=text-generation) and copy the name of the model. Continue can then be configured to use the `DeepInfra` LLM class, like the example here:
6
7<Tabs>
8 <Tab title="YAML">
9 ```yaml title="config.yaml"
10 models:
11 - name: DeepInfra
12 provider: deepinfra
13 model: mistralai/Mixtral-8x7B-Instruct-v0.1
14 apiKey: <YOUR_DEEP_INFRA_API_KEY>
15 ```
16 </Tab>
17 <Tab title="JSON">
18 ```json title="config.json"
19 {
20 "models": [
21 {
22 "provider": "deepinfra",
23 "title": "DeepInfra",
24 "model": "mistralai/Mixtral-8x7B-Instruct-v0.1",
25 "apiKey": "<YOUR_DEEP_INFRA_API_KEY>"
26 }
27 ]
28 }
29 ```
30 </Tab>
31</Tabs>
32
33[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/DeepInfra.ts)