mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-04 16:13:11 +00:00
feat: allow provider-level store option (#8000)
This commit is contained in:
@@ -486,6 +486,9 @@ export namespace ProviderTransform {
|
||||
if (model.providerID === "openai" || providerOptions?.setCacheKey) {
|
||||
result["promptCacheKey"] = sessionID
|
||||
}
|
||||
if (typeof providerOptions?.store === "boolean") {
|
||||
result["store"] = providerOptions.store
|
||||
}
|
||||
|
||||
if (model.api.npm === "@ai-sdk/google" || model.api.npm === "@ai-sdk/google-vertex") {
|
||||
result["thinkingConfig"] = {
|
||||
|
||||
Reference in New Issue
Block a user