import { buildQuery, request } from './client'
import type { LLMModel } from './llmAdmin'

export const modelsApi = {
  list: (onlyEnabled = true) =>
    request<LLMModel[]>('/api/v1/models' + buildQuery({ only_enabled: onlyEnabled })),
}
