Deprecate pro budget in app since it's not accurate (#210)

This commit is contained in:
Will Chen
2025-05-20 21:51:34 -07:00
committed by GitHub
parent be8252c130
commit 96153f29bb
3 changed files with 6 additions and 27 deletions

View File

@@ -1,14 +1,6 @@
import { readSettings, writeSettings } from "./settings";
export function handleDyadProReturn({
apiKey,
budgetResetAt,
maxBudget,
}: {
apiKey: string;
budgetResetAt: string | null | undefined;
maxBudget: number | null | undefined;
}) {
export function handleDyadProReturn({ apiKey }: { apiKey: string }) {
const settings = readSettings();
writeSettings({
providerSettings: {
@@ -20,13 +12,6 @@ export function handleDyadProReturn({
},
},
},
dyadProBudget:
budgetResetAt && maxBudget
? {
budgetResetAt,
maxBudget,
}
: undefined,
enableDyadPro: true,
});
}