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

This reverts commit 9b6d03c497.
This commit is contained in:
Aiden Cline
2025-11-24 22:30:56 -06:00
parent 9b6d03c497
commit 16dbac6026
3 changed files with 5 additions and 26 deletions

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
}