Elffuss BraidHub

kikocis/continue public

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