UNPKG

@copilotkit/runtime

Version:

<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />

17 lines (15 loc) 579 B
require("reflect-metadata"); //#region src/service-adapters/shared/sdk-client-utils.ts /** * SDK clients (OpenAI, Anthropic, Groq) store constructor options like * `defaultHeaders` and `fetch` in a private/protected `_options` field * with no public accessor. This extracts them with a narrow type assertion. */ function getSdkClientOptions(client) { const options = client._options; if (options != null && typeof options === "object") return options; return {}; } //#endregion exports.getSdkClientOptions = getSdkClientOptions; //# sourceMappingURL=sdk-client-utils.cjs.map