All files / api/src/ai-providers/google-vertex-ai list-files.ts

25% Statements 3/12
100% Branches 0/0
0% Functions 0/1
25% Lines 3/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  1x   1x   1x                    
import type { RequestHandlerFunction } from '@shared/types/ai-providers/config';
import { AIProvider } from '@shared/types/constants';
 
export const googleListFilesRequestHandler: RequestHandlerFunction =
  // biome-ignore lint/suspicious/useAwait: this is a request handler
  async () => {
    return new Response(
      JSON.stringify({
        message: 'listFiles is not supported by Google Vertex AI',
        status: 'failure',
        provider: AIProvider.GOOGLE_VERTEX_AI,
      }),
      { status: 500, headers: { 'Content-Type': 'application/json' } },
    );
  };