forked from 0xWheatyz/SPARC
feat: add model picker UI and wire model param through backend #353
Reference in New Issue
Block a user
Delete Branch "feature/351-frontend-model-picker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
modelparameter through the full backend pipeline: API endpoints -> analyzer -> LLMlistModels()API client method to fetch available models fromGET /models?model=query parameterrequest.modelto the analyzerCloses #351
Files Changed
SPARC/analyzer.py-- Addedmodelparameter toanalyze_company,_analyze_company_safe,analyze_companies,analyze_single_patentSPARC/api.py-- Addedmodelquery param to single company endpoint; passrequest.modelin batch endpointsfrontend/src/api/client.ts-- Addedmodelparam toanalyzeCompany,analyzeBatch,analyzeBatchAsync; addedlistModels()and model typesfrontend/src/pages/Analysis.tsx-- Added model selector dropdown with data from/modelsAPIfrontend/src/pages/Batch.tsx-- Added model selector dropdown alongside workers sliderTest Plan
GET /modelsnpx tsc --noEmitto confirm no TypeScript errorsAI-Manager referenced this pull request from 0xWheatyz/SPARC2026-03-27 16:45:50 +00:00