@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;" />
16 lines (15 loc) • 557 B
JavaScript
import "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
export { getSdkClientOptions };
//# sourceMappingURL=sdk-client-utils.mjs.map