Răsfoiți Sursa

fix(provider): add missing anthropicAdaptiveThinking to SELECT queries

The field was omitted from findProviderList, findAllProvidersFresh, and
findProviderById, causing the adaptive thinking setting to not persist
after page refresh and never take effect in the proxy runtime.
ding113 1 săptămână în urmă
părinte
comite
d4556158
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      src/repository/provider.ts

+ 3 - 0
src/repository/provider.ts

@@ -215,6 +215,7 @@ export async function findProviderList(
       codexParallelToolCallsPreference: providers.codexParallelToolCallsPreference,
       anthropicMaxTokensPreference: providers.anthropicMaxTokensPreference,
       anthropicThinkingBudgetPreference: providers.anthropicThinkingBudgetPreference,
+      anthropicAdaptiveThinking: providers.anthropicAdaptiveThinking,
       geminiGoogleSearchPreference: providers.geminiGoogleSearchPreference,
       tpm: providers.tpm,
       rpm: providers.rpm,
@@ -293,6 +294,7 @@ export async function findAllProvidersFresh(): Promise<Provider[]> {
       codexParallelToolCallsPreference: providers.codexParallelToolCallsPreference,
       anthropicMaxTokensPreference: providers.anthropicMaxTokensPreference,
       anthropicThinkingBudgetPreference: providers.anthropicThinkingBudgetPreference,
+      anthropicAdaptiveThinking: providers.anthropicAdaptiveThinking,
       geminiGoogleSearchPreference: providers.geminiGoogleSearchPreference,
       tpm: providers.tpm,
       rpm: providers.rpm,
@@ -375,6 +377,7 @@ export async function findProviderById(id: number): Promise<Provider | null> {
       codexParallelToolCallsPreference: providers.codexParallelToolCallsPreference,
       anthropicMaxTokensPreference: providers.anthropicMaxTokensPreference,
       anthropicThinkingBudgetPreference: providers.anthropicThinkingBudgetPreference,
+      anthropicAdaptiveThinking: providers.anthropicAdaptiveThinking,
       geminiGoogleSearchPreference: providers.geminiGoogleSearchPreference,
       tpm: providers.tpm,
       rpm: providers.rpm,