mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 04:42:10 +03:00
- compatByProtocol per openai/openai-responses/claude - getters take sourceFormat; chatCore passes it - UI: protocol selector in compat popover, dark mode select - shared/constants/modelCompat for client-safe import (fix node:crypto build) - ZWS_README_V3.md Made-with: Cursor
10 lines
445 B
TypeScript
10 lines
445 B
TypeScript
/**
|
|
* Model compatibility protocol keys — shared between client UI and server.
|
|
* Must not import Node or DB code so client components can import safely.
|
|
*/
|
|
|
|
/** Client request shapes from detectFormat — compat options apply when the client uses this protocol */
|
|
export const MODEL_COMPAT_PROTOCOL_KEYS = ["openai", "openai-responses", "claude"] as const;
|
|
|
|
export type ModelCompatProtocolKey = (typeof MODEL_COMPAT_PROTOCOL_KEYS)[number];
|