fix(parallel): align integration with Parallel AI API docs#3501
fix(parallel): align integration with Parallel AI API docs#3501waleedlatif1 merged 6 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryMedium Risk Overview
Written by Cursor Bugbot for commit 2df13b6. Configure here. |
7561769 to
a69d030
Compare
Greptile SummaryThis PR aligns the Parallel AI integration with the current API documentation, correcting processor tier values, replacing the deprecated Key changes:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant UI as Block UI (parallel.ts)
participant BP as config.params()
participant ST as parallel_search tool
participant ET as parallel_extract tool
participant DR as parallel_deep_research tool
participant API as Parallel AI API
UI->>BP: params (operation, search_mode, search_queries, search_include/exclude_domains, ...)
BP-->>ST: {objective, search_queries[], mode, max_results, max_chars_per_result, include_domains, exclude_domains}
ST->>API: POST /v1beta/search\n{objective, search_queries, mode,\n max_results, excerpts:{max_chars_per_result},\n source_policy:{include/exclude_domains}}
API-->>ST: {search_id, results:[{url, title, publish_date, excerpts}]}
ST-->>UI: {search_id, results[]}
UI->>BP: params (operation=extract, extract_objective, urls, excerpts, full_content)
BP-->>ET: {urls, objective, excerpts, full_content}
ET->>API: POST /v1beta/extract\n{urls[], objective, excerpts, full_content}
API-->>ET: {extract_id, results:[{url, title, publish_date, excerpts, full_content}]}
ET-->>UI: {extract_id, results[]}
UI->>BP: params (operation=deep_research, research_input, processor, include/exclude_domains)
BP-->>DR: {input, processor, include_domains, exclude_domains}
DR->>API: POST /v1/tasks/runs\n{input, processor, task_spec:{output_schema:auto}, source_policy}
API-->>DR: {run_id, status}
DR->>API: GET /v1/tasks/runs/{run_id}/result
API-->>DR: {status, output:{content, basis}}
DR-->>UI: {status, run_id, message, content, basis[]}
|
|
@cursor review |
|
@greptile |
|
@greptile |
|
@cursor review |
Summary
modeparam (one-shot, agentic, fast) replacing deprecatedprocessorsource_policy(include/exclude domains) to search tool/resultsuffixobjectiveandexcerpts/full_contentrequired status per API docstools.config.tooltotools.config.params?? nullon nullable fields,mode: 'advanced'on optional fieldsType of Change
Testing
Tested manually
Checklist