UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

37 lines (36 loc) • 1.49 kB
/** * Qwen Code client configurator. * * Qwen Code is OpenAI-compatible: its `cli.js` reads `OPENAI_BASE_URL` and * `OPENAI_API_KEY`, and its settings file carries the same pair under * `security.auth`. It therefore needs no new proxy route — it points at the * existing `/v1/chat/completions` door. * * Settings shape verified against a real `~/.qwen/settings.json` (`$version` 2) * from `@qwen-code/qwen-code@0.17.0`: * * { * "security": { "auth": { * "selectedType": "openai", "apiKey": "...", "baseUrl": "https://..." * } }, * "model": { "name": "..." }, * "$version": 2 * } */ import type { CliProxyClientConfigurator } from "../../types/index.js"; /** * Resolved per call rather than at module load so `detect()` and `apply()` * agree when HOME changes — under test, and on the `--dev` isolation path. */ declare function getQwenConfigDir(): string; declare function getQwenSettingsPath(): string; export declare function setQwenProxySettings(baseUrl: string, proxyKey?: string): Promise<boolean>; export declare function clearQwenProxySettings(expectedBaseUrl?: string): Promise<boolean>; export declare const qwenCodeConfigurator: CliProxyClientConfigurator; export declare const __qwenCodeTestHooks: { getQwenConfigDir: typeof getQwenConfigDir; getQwenSettingsPath: typeof getQwenSettingsPath; setQwenProxySettings: typeof setQwenProxySettings; clearQwenProxySettings: typeof clearQwenProxySettings; }; export {};