Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/airs/promptsets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ export class SdkPromptSetService implements PromptSetService {
}

async downloadTemplate(uuid: string): Promise<string> {
// 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<string> };
Expand Down
Loading