mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-05 08:10:39 +00:00
Restrict the browser install flow to Anthropic, OpenAI, and Gemini, remove the unused install-time base URL surface, and reject openai_compatible with a stable 422 response. Also fix the finishing health poller so it only redirects after the server comes back healthy outside install mode instead of jumping early on transient restart failures.
9 lines
289 B
TypeScript
9 lines
289 B
TypeScript
export type FinishHealthPollResult =
|
|
| { kind: "error" }
|
|
| { kind: "response"; ok: boolean; mode?: string };
|
|
|
|
export function shouldRedirectAfterHealthPoll(
|
|
result: FinishHealthPollResult,
|
|
): boolean {
|
|
return result.kind === "response" && result.ok && result.mode !== "install";
|
|
}
|