Skip to content

Commit b1663f3

Browse files
ctemehmetsunkur
authored andcommitted
Gemini implicit caching (RooCodeInc#3515)
1 parent f143924 commit b1663f3

File tree

18 files changed

+33
-666
lines changed

18 files changed

+33
-666
lines changed

evals/packages/types/src/roo-code.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ export const modelInfoSchema = z.object({
102102
supportsImages: z.boolean().optional(),
103103
supportsComputerUse: z.boolean().optional(),
104104
supportsPromptCache: z.boolean(),
105-
isPromptCacheOptional: z.boolean().optional(),
106105
inputPrice: z.number().optional(),
107106
outputPrice: z.number().optional(),
108107
cacheWritesPrice: z.number().optional(),
@@ -336,7 +335,6 @@ export type ProviderSettingsEntry = z.infer<typeof providerSettingsEntrySchema>
336335
const genericProviderSettingsSchema = z.object({
337336
includeMaxTokens: z.boolean().optional(),
338337
reasoningEffort: reasoningEffortsSchema.optional(),
339-
promptCachingDisabled: z.boolean().optional(),
340338
diffEnabled: z.boolean().optional(),
341339
fuzzyMatchThreshold: z.number().optional(),
342340
modelTemperature: z.number().nullish(),
@@ -699,7 +697,6 @@ const providerSettingsRecord: ProviderSettingsRecord = {
699697
// Generic
700698
includeMaxTokens: undefined,
701699
reasoningEffort: undefined,
702-
promptCachingDisabled: undefined,
703700
diffEnabled: undefined,
704701
fuzzyMatchThreshold: undefined,
705702
modelTemperature: undefined,

src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface SingleCompletionHandler {
3232
}
3333

3434
export interface ApiHandler {
35-
createMessage(systemPrompt: string, messages: Anthropic.Messages.MessageParam[], cacheKey?: string): ApiStream
35+
createMessage(systemPrompt: string, messages: Anthropic.Messages.MessageParam[]): ApiStream
3636

3737
getModel(): { id: string; info: ModelInfo }
3838

0 commit comments

Comments
 (0)