Revert "config: add setCacheKey in provider options (#4654)"

This reverts commit 3617f90c73.
This commit is contained in:
Aiden Cline
2025-11-24 22:30:56 -06:00
parent 3617f90c73
commit 90d38a69dc
3 changed files with 5 additions and 26 deletions
+2 -8
View File
@@ -128,13 +128,7 @@ export namespace ProviderTransform {
return undefined
}
export function options(
providerID: string,
modelID: string,
npm: string,
sessionID: string,
providerOptions?: Record<string, any>,
): Record<string, any> | undefined {
export function options(providerID: string, modelID: string, npm: string, sessionID: string): Record<string, any> {
const result: Record<string, any> = {}
// switch to providerID later, for now use this
@@ -144,7 +138,7 @@ export namespace ProviderTransform {
}
}
if (providerID === "openai" || providerOptions?.setCacheKey) {
if (providerID === "openai") {
result["promptCacheKey"] = sessionID
}