Files
OmniRoute/open-sse/config/providers/registry/bai/index.ts
Ankit e61b75f007 fix(config): externalize ws for copilot-m365-web executor (#6098, closes #6062)
Externalize ws / bufferutil / utf-8-validate in serverExternalPackages so the copilot-m365-web WebSocket masking path works at runtime (bundling ws → TypeError: b.mask is not a function → 80s chat timeout). Regression guard in next-config.test.ts.

Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com>
2026-07-03 16:36:35 -03:00

15 lines
355 B
TypeScript

import type { RegistryEntry } from "../../shared.ts";
export const baiProvider: RegistryEntry = {
id: "bai",
alias: "bai",
format: "openai",
executor: "default",
baseUrl: "https://api.b.ai/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
modelsUrl: "https://api.b.ai/v1/models",
models: [],
passthroughModels: true,
};