Selaa lähdekoodia

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 3 viikkoa sitten
vanhempi
sitoutus
d4556158
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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,