Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(usage): correct proxy quotas and show Claude Fable first #11473

ClosedJolymmiles(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/11473/headopened View on GitHub

Showing 5 changed files with 103 additions and 10 deletions (loading 2).

x
0 of 5 viewed, 5 left
54 additions and 1 deletionapps/server/src/provider/Layers/CodexProvider.test.tsModified
View file
@@ -1,6 +1,59 @@
import { assert, it } from "@effect/vitest";
+import * as NodeServices from "@effect/platform-node/NodeServices";
+import { CodexSettings } from "@t3tools/contracts";
+import * as Effect from "effect/Effect";
+import * as Schema from "effect/Schema";
​
-import { applyPreferredCodexDefaultModel, mapCodexModelCapabilities } from "./CodexProvider.ts";
+import {
+ applyPreferredCodexDefaultModel,
+ checkCodexProviderStatus,
+ mapCodexModelCapabilities,
+ type CodexAppServerProviderSnapshot,
+} from "./CodexProvider.ts";
+​
+const staleRateLimits = {
+ snapshot: { primary: { usedPercent: 100, windowDurationMins: 10_080 } },
+ resetCredits: { availableCount: 0 },
+};
+const codexSettings = Schema.decodeSync(CodexSettings)({});
+​
+function quotaProbe(account: CodexAppServerProviderSnapshot["account"]) {
+ return Effect.succeed({
+ account,
+ rateLimits: staleRateLimits,
+ version: "0.154.0",
+ models: [],
+ skills: [],
+ });
+}
+​