Skip to content

Commit 386b361

Browse files
committed
Update documentation and UI references from prompt caching to context caching
1 parent accf57c commit 386b361

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Code Web Chat is a free and open-source (FOSS), independent AI coding toolkit fo
2020

2121
✅ **Apply responses**—multi-file edits with unlimited undo \
2222
✅ **Fully-featured**—code at cursor, commit messages \
23-
🌱 **Sustainable**—[prompt caching](https://platform.openai.com/docs/guides/prompt-caching) across tasks \
23+
🌱 **Sustainable**—[context caching](https://ai.google.dev/gemini-api/docs/caching) across tasks \
2424
✋ **Privacy-first**—strict zero telemetry policy
2525

2626
<p>

‎apps/editor/src/views/settings/frontend/Home/Home.tsx‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,22 @@ export const Home: React.FC<Props> = (props) => {
451451
</Button>
452452
}
453453
>
454-
<Notice type="info">A request includes the selected files.</Notice>
454+
<Notice type="info">
455+
A request includes the selected files, edit format instructions, and
456+
your prompt. For{' '}
457+
<a
458+
href="#"
459+
onClick={(e) => {
460+
e.preventDefault()
461+
props.on_open_external_url(
462+
'https://ai.google.dev/gemini-api/docs/caching'
463+
)
464+
}}
465+
>
466+
context caching
467+
</a>{' '}
468+
efficiency, recently checked/modified files are placed at the end.
469+
</Notice>
455470
{props.edit_context_configs.length == 0 && (
456471
<Notice type="warning">
457472
Add a configuration to use this feature.
@@ -685,7 +700,7 @@ export const Home: React.FC<Props> = (props) => {
685700
>
686701
audio understanding
687702
</a>
688-
.
703+
. Gemini, for example, consumes 32 tokens per second.
689704
</Notice>
690705
{props.voice_input_configs.length == 0 && (
691706
<Notice type="warning">

0 commit comments

Comments
 (0)