Skip to content

Commit a276fa7

Browse files
docs: Add prompt caching feature for Gemini 2.5 models and update release notes for version 3.14.2 (#152)
1 parent aa18092 commit a276fa7

File tree

6 files changed

+36
-1
lines changed

6 files changed

+36
-1
lines changed

docs/providers/gemini.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ Refer to the [Gemini documentation](https://ai.google.dev/models/gemini) for mor
4242
3. **Enter API Key:** Paste your Gemini API key into the "Gemini API Key" field.
4343
4. **Select Model:** Choose your desired Gemini model from the "Model" dropdown.
4444

45+
5. **(Optional) Enable Prompt Caching (Gemini 2.5 Models):** For supported Gemini 2.5 models, check the "Enable Prompt Caching" box if you wish to activate prompt caching. See the note below for important details specific to this provider.
46+
<img src="/img/v3.14.2/v3.14.2.png" alt="Prompt Caching Checkbox for Gemini Provider" width="600" />
4547
## Tips and Notes
4648

49+
* **Prompt Caching (Manual Activation Required):**
50+
* Prompt caching is available for supported Gemini 2.5 models.
51+
* However, for the **Google Gemini provider**, caching is **not enabled by default**.
52+
* You **must manually check** the "Enable Prompt Caching" box in the provider settings to activate it.
53+
* **Reason:** This manual step is a temporary workaround due to potential response delays sometimes observed with Google's caching mechanism when accessed directly via this provider.
4754
* **Pricing:** Gemini API usage is priced based on input and output tokens. Refer to the [Gemini pricing page](https://ai.google.dev/pricing) for detailed information.

docs/providers/openrouter.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ OpenRouter supports a large and growing number of models. Roo Code automaticall
2626
4. **Select Model:** Choose your desired model from the "Model" dropdown.
2727
5. **(Optional) Custom Base URL:** If you need to use a custom base URL for the OpenRouter API, check "Use custom base URL" and enter the URL. Leave this blank for most users.
2828

29+
6. **(Optional) Enable Prompt Caching (Supported Models):** For models accessed via OpenRouter that support caching (like Gemini 2.5), check the "Enable Prompt Caching" box if you wish to activate it. See the note below for important details specific to this provider.
30+
<img src="/img/v3.14.2/v3.14.2.png" alt="Prompt Caching Checkbox for OpenRouter Provider" width="600" />
2931
## Supported Transforms
3032

3133
OpenRouter provides an [optional "middle-out" message transform](https://openrouter.ai/docs/features/message-transforms) to help with prompts that exceed the maximum context size of a model. You can enable it by checking the "Compress prompts and message chains to the context size" box.
@@ -34,4 +36,8 @@ OpenRouter provides an [optional "middle-out" message transform](https://openrou
3436

3537
* **Model Selection:** OpenRouter offers a wide range of models. Experiment to find the best one for your needs.
3638
* **Pricing:** OpenRouter charges based on the underlying model's pricing. See the [OpenRouter Models page](https://openrouter.ai/models) for details.
37-
* **Prompt Caching:** Some providers support prompt caching. See the OpenRouter documentation for supported models.
39+
* **Prompt Caching:**
40+
* OpenRouter passes caching requests to underlying models that support it. Check the [OpenRouter Models page](https://openrouter.ai/models) to see which models offer caching.
41+
* For most models, caching should activate automatically if supported by the model itself (similar to how Requesty works).
42+
* **Exception for Gemini Models via OpenRouter:** Due to potential response delays sometimes observed with Google's caching mechanism when accessed via OpenRouter, a manual activation step is required *specifically for Gemini models*.
43+
* If using a **Gemini model** via OpenRouter, you **must manually check** the "Enable Prompt Caching" box in the provider settings to activate caching for that model. This checkbox serves as a temporary workaround. For non-Gemini models on OpenRouter, this checkbox is not necessary for caching.

docs/update-notes/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ This section contains notes about recent updates to Roo Code, listed by version
44

55
## Version 3.14
66

7+
* [3.14.2](/update-notes/v3.14.2) (2025-04-24)
78
* [3.14.1](/update-notes/v3.14.1) (2025-04-24)
89
* [3.14.0](/update-notes/v3.14.0) (2025-04-23)
910

docs/update-notes/v3.14.2.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Roo Code 3.14.2 Release Notes (2025-04-24)
2+
3+
This release introduces prompt caching for Gemini, user control over caching for specific models on OpenRouter, improved terminal output handling, and adds Russian language support.
4+
5+
## Gemini 2.5 Caching is HERE!
6+
7+
* **Prompt Caching for Gemini 2.5 Models:** Prompt caching is now available for supported Google Gemini 2.5 models when using the [Requesty](/providers/requesty), [Google Gemini](/providers/gemini), or [OpenRouter](/providers/openrouter) providers.
8+
* **Manual Caching Toggle (Google Gemini & OpenRouter Only):**
9+
* For the **[Google Gemini](/providers/gemini)** and **[OpenRouter](/providers/openrouter)** providers specifically, a new checkbox allows you to manually enable prompt caching for supported Gemini 2.5 models.
10+
<img src="/img/v3.14.2/v3.14.2.png" alt="Prompt Caching Checkbox in Provider Settings" width="600" />
11+
* **Why the checkbox?** This setting is provided as a temporary workaround for potential response delays sometimes observed with Google's caching mechanism when accessed via these two providers. Caching is *not* enabled by default for them.
12+
* **Requesty:** Caching remains automatic for supported models via Requesty.
13+
14+
## Terminal Improvments
15+
16+
* Improved handling of terminal output containing backspace characters for cleaner display (thanks KJ7LNW!).
17+
18+
## Internationalization: Russian Language Added
19+
20+
* Added Russian language support (Спасибо asychin!).

sidebars.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ const sidebars: SidebarsConfig = {
143143
type: 'category',
144144
label: '3.14',
145145
items: [
146+
{ type: 'doc', id: 'update-notes/v3.14.2', label: '3.14.2' },
146147
{ type: 'doc', id: 'update-notes/v3.14.1', label: '3.14.1' },
147148
{ type: 'doc', id: 'update-notes/v3.14.0', label: '3.14.0' },
148149
],

static/img/v3.14.2/v3.14.2.png

20.9 KB
Loading

0 commit comments

Comments
 (0)