From c205f0216a5aec417091b11591a45878cc664fbd Mon Sep 17 00:00:00 2001 From: Calvin Remsburg Date: Sat, 14 Mar 2026 05:11:47 -0500 Subject: [PATCH] chore: link SDK downloadTemplate workaround to upstream issue Adds reference to cdot65/prisma-airs-sdk#77 in the workaround comment. Closes #171 Co-Authored-By: Claude Opus 4.6 --- src/airs/promptsets.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/airs/promptsets.ts b/src/airs/promptsets.ts index f7c1650..995bd20 100644 --- a/src/airs/promptsets.ts +++ b/src/airs/promptsets.ts @@ -104,9 +104,10 @@ export class SdkPromptSetService implements PromptSetService { } async downloadTemplate(uuid: string): Promise { - // Bypass SDK's downloadTemplate — it routes through managementHttpRequest - // which unconditionally JSON.parse()s the response, but this endpoint - // returns text/csv. Make a raw fetch using the SDK's OAuth client instead. + // WORKAROUND: Bypass SDK's downloadTemplate — it routes through managementHttpRequest + // which unconditionally JSON.parse()s the response, but this endpoint returns text/csv. + // Make a raw fetch using the SDK's OAuth client instead. + // Tracked upstream: https://github.com/cdot65/prisma-airs-sdk/issues/77 const internals = this.client.customAttacks as unknown as { baseUrl: string; oauthClient: { getToken(): Promise };