-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Gemini caching fixes #3096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gemini caching fixes #3096
Conversation
|
|
The pull request involves changes across 9 files, with 351 lines added and 95 lines removed. The changes primarily focus on refactoring caching logic for various providers and adding tests for caching functions. The changes seem to be related to caching logic across different providers and adding tests for these caching functions. The changes are interconnected as they all deal with caching logic, which suggests they might not need to be split. I might be overlooking the possibility that some changes could be unrelated, such as the addition of tests versus the refactoring of caching logic. The addition of tests is directly related to the caching logic changes, as they verify the functionality of the new caching logic. Therefore, splitting the pull request might not be necessary. The changes in the pull request are related to caching logic and its testing, which are interconnected. It seems appropriate to keep them in a single pull request. |

Context
From OpenRouter:
Important
Improved caching logic for various providers with new functions and tests, and made minor UI adjustments in settings components.
addCacheBreakpointsfunction foranthropic,gemini, andvertexin respective files to handle caching logic.formatMessageForCacheandaddCacheControlDirectivesfunctions.anthropic-vertex.ts,glama.ts,openrouter.ts, andunbound.tsto use new caching functions.addCacheBreakpointsinanthropic.test.ts,gemini.test.ts, andvertex.test.ts.setCachedStateFieldprop fromExperimentalSettingsinExperimentalSettings.tsxandSettingsView.tsx.This description was created by
for ef7a8b7. You can customize this summary. It will automatically update as commits are pushed.