Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

410 B
Raw Blame
import { HttpMethod } from '@activepieces/pieces-common';
import { groqClient } from './client';
import type { GroqAuthValue, GroqModelList } from './types';

async function listModels({
  auth,
}: {
  auth: GroqAuthValue;
}): Promise<GroqModelList> {
  return await groqClient.request<GroqModelList>({
    auth,
    method: HttpMethod.GET,
    path: '/models',
  });
}

export const groqApi = { listModels };