Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): newer Codex models get T3 Code's instructions again #13547

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/13547/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 9 changed files with 91 additions and 17 deletions (loading 6).

x
0 of 9 viewed, 9 left
14 additions and 17 deletionsapps/server/src/provider/Drivers/CodexDriver.tsModified
View file
@@ -172,18 +172,6 @@
​
- // `makeCodexAdapter` and `makeCodexTextGeneration` have `never` error
- // channels at construction time — their failure modes are all on the
- // per-operation closures they return. No `mapError` wrapper is needed
- // here; the registry only has to worry about snapshot-build and
- // spawner-availability failures surfaced from `checkCodexProviderStatus`
- // below.
- const adapter = yield* makeCodexAdapter(effectiveConfig, {
- instanceId,
- environment: processEnv,
- ...(eventLoggers.native ? { nativeEventLogger: eventLoggers.native } : {}),
- });
-​
// Build a managed snapshot whose settings never change — mutations come
// in as instance rebuilds from the registry rather than in-place
// updates. Pre-provide `ChildProcessSpawner` so the check fits
@@ -238,11 +226,20 @@
}),
- const textGeneration = yield* makeCodexTextGeneration(
- effectiveConfig,
- processEnv,
- snapshot.getSnapshot.pipe(Effect.map((value) => value.models)),
- );
+ const models = snapshot.getSnapshot.pipe(Effect.map((value) => value.models));