summaryrefslogtreecommitdiff
path: root/frontend/src
diff options
context:
space:
mode:
authorYurenHao0426 <blackhao0426@gmail.com>2026-02-13 05:45:13 +0000
committerYurenHao0426 <blackhao0426@gmail.com>2026-02-13 05:45:13 +0000
commit61293147c1d6f1cdde689c36faad923b600a4f6e (patch)
tree9c773b13bd4f488ca0cbd1f5d646ba9ff7ab43ef /frontend/src
parent257b5bcbd09d4a6b7b1b27d7db4cc2aeed766c39 (diff)
Add Anthropic Files API and persistent Google file caching for all providers
- Add anthropic_file_id/google_file_uri fields to FileMeta (backend + frontend) - Eager upload to Anthropic and Google at file upload time (like OpenAI) - Cache and reuse file references in prepare_attachments for all 3 providers - Add document content block injection in stream_claude (file_id, base64, text fallback) - Conditional beta streaming for Anthropic Files API references - Persist on-demand upload results (changed flag + save_files_index) - Clean up file deletion for all providers (Anthropic warn-only, Google deduplicated) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/store/flowStore.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontend/src/store/flowStore.ts b/frontend/src/store/flowStore.ts
index 665030b..6140339 100644
--- a/frontend/src/store/flowStore.ts
+++ b/frontend/src/store/flowStore.ts
@@ -129,6 +129,8 @@ export interface FileMeta {
created_at: number;
provider?: string;
provider_file_id?: string;
+ anthropic_file_id?: string;
+ google_file_uri?: string;
scopes?: string[]; // "project_path/node_id" composite keys
}