Elffuss BraidHub

kikocis/continue public

9df0fa5d79c7 · 1.6 KiBRawPermalink
1---
2title: Gemini
3slug: ../gemini
4---
5
6<Info>
7 You can get an API key from the [Google AI
8 Studio](https://aistudio.google.com/).
9</Info>
10
11## Chat model
12
13We recommend configuring **Gemini 2.0 Flash** as your chat model.
14
15<Tabs>
16 <Tab title="YAML">
17 ```yaml title="config.yaml"
18 models:
19 - name: Gemini 2.0 Flash
20 provider: gemini
21 model: gemini-2.0-flash
22 apiKey: <YOUR_GEMINI_API_KEY>
23 ```
24 </Tab>
25 <Tab title="JSON">
26 ```json title="config.json"
27 {
28 "models": [
29 {
30 "title": "Gemini 2.0 Flash",
31 "provider": "gemini",
32 "model": "gemini-2.0-flash",
33 "apiKey": "<YOUR_GEMINI_API_KEY>"
34 }
35 ]
36 }
37 ```
38 </Tab>
39</Tabs>
40
41## Autocomplete model
42
43Gemini currently does not offer any autocomplete models.
44
45[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
46
47## Embeddings model
48
49We recommend configuring **text-embedding-004** as your embeddings model.
50
51<Tabs>
52 <Tab title="YAML">
53 ```yaml title="config.yaml"
54 models:
55 - name: Gemini Embeddings
56 provider: gemini
57 model: models/text-embedding-004
58 apiKey: <YOUR_GEMINI_API_KEY>
59 roles:
60 - embed
61 ```
62 </Tab>
63 <Tab title="JSON">
64 ```json title="config.json"
65 {
66 "embeddingsProvider": {
67 "provider": "gemini",
68 "model": "models/text-embedding-004",
69 "apiKey": "<YOUR_GEMINI_API_KEY>"
70 }
71 }
72 ```
73 </Tab>
74</Tabs>
75
76## Reranking model
77
78Gemini currently does not offer any reranking models.
79
80[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.