= {
+ input: { price: inputPrice, tokens: uncachedInputTokens, cost: inputTokensCost },
+ output: { price: outputPrice, tokens: outputTokens, cost: outputTokensCost },
+ }
+
+ if (cacheReadTokens > 0) {
+ trace.cacheRead = { price: cacheReadsPrice, tokens: cacheReadTokens, cost: cacheReadCost }
+ }
+
+ return totalCost
+}
diff --git a/webview-ui/src/components/settings/providers/Vertex.tsx b/webview-ui/src/components/settings/providers/Vertex.tsx
index 19a136927a2..4aa3c91c0d9 100644
--- a/webview-ui/src/components/settings/providers/Vertex.tsx
+++ b/webview-ui/src/components/settings/providers/Vertex.tsx
@@ -74,6 +74,13 @@ export const Vertex = ({ apiConfiguration, setApiConfigurationField }: VertexPro
className="w-full">
+
+
+