Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(providers): slow Grok, Pi and fx starts no longer show as unavailable #28400

Mergedonly21mil(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/28400/headmerged by maria-rcks View on GitHub

Showing 6 changed files with 124 additions and 7 deletions (loading 3).

x
0 of 6 viewed, 6 left
69 additions and 0 deletionsapps/server/src/provider/GrokProvider.test.tsModified
View file
@@ -5,9 +5,16 @@
import * as NodeServices from "@effect/platform-node/NodeServices";
import { describe, expect, it } from "@effect/vitest";
import * as Effect from "effect/Effect";
+import * as Fiber from "effect/Fiber";
import * as FileSystem from "effect/FileSystem";
+import * as PlatformError from "effect/PlatformError";
import * as Schema from "effect/Schema";
+import * as Sink from "effect/Sink";
+import * as Stream from "effect/Stream";
import { HttpClient, HttpClientResponse } from "effect/http";
+import * as ChildProcess from "effect/process/ChildProcess";
+import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
+import * as TestClock from "effect/testing/TestClock";
import { GrokSettings } from "@t3tools/provider-grok/settings";
​
import {
@@ -221,6 +228,68 @@
}),
​
+ it.effect.each([
+ {
+ label: "answers after 6 s",
+ versionDelay: "6 seconds",
+ version: "1.0.52",
+ message: "Grok CLI is installed but ACP initialize failed. Model options may be incomplete.",
+ probesAfterVersion: true,
+ },