Elffuss BraidHub

kikocis/continue public

627d7d0d1f85 · 1.1 KiBRawPermalink
1---
2title: "Replicate"
3---
4
5Replicate is a great option for newly released language models or models that you've deployed through their platform. Sign up for an account [here](https://replicate.ai/), copy your API key, and then select any model from the [Replicate Streaming List](https://replicate.com/collections/streaming-language-models). Change `~/.continue/config.json` to look like this:
6
7<Tabs>
8 <Tab title="YAML">
9 ```yaml title="config.yaml"
10 models:
11 - name: Replicate CodeLLama
12 provider: replicate
13 model: codellama-13b
14 apiKey: <YOUR_REPLICATE_API_KEY>
15 ```
16 </Tab>
17 <Tab title="JSON">
18 ```json title="config.json"
19 {
20 "models": [
21 {
22 "title": "Replicate CodeLLama",
23 "provider": "replicate",
24 "model": "codellama-13b",
25 "apiKey": "<YOUR_REPLICATE_API_KEY>"
26 }
27 ]
28 }
29 ```
30 </Tab>
31</Tabs>
32
33If you don't specify the `model` parameter, it will default to `replicate/llama-2-70b-chat:58d078176e02c219e11eb4da5a02a7830a283b14cf8f94537af893ccff5ee781`.
34
35[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Replicate.ts)