feat(exa): add x-exa-integration header for usage attribution#4385
feat(exa): add x-exa-integration header for usage attribution#4385tgonzalezc5 wants to merge 1 commit intosimstudioai:mainfrom
Conversation
Sets x-exa-integration: sim on all Exa API requests so Exa can attribute usage to this integration on their side.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Reviewed by Cursor Bugbot for commit 39c9286. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThis PR adds Confidence Score: 5/5Safe to merge — additive-only change with no behavioral impact on request/response handling. All five tool files are updated consistently and the header value is a hardcoded, non-sensitive string. The research polling path is also covered. No logic, type, or security concerns. No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant Client as Sim Workflow
participant Tool as Exa Tool
participant Exa as api.exa.ai
Client->>Tool: execute(params)
Tool->>Exa: POST /endpoint (x-exa-integration: sim added)
Exa-->>Tool: response
alt research tool polling
loop until complete
Tool->>Exa: GET /research/v1/taskId (x-exa-integration: sim added)
Exa-->>Tool: task status
end
end
Tool-->>Client: processed result
Reviews (1): Last reviewed commit: "feat(exa): add x-exa-integration header ..." | Re-trigger Greptile |
Summary
Adds an
x-exa-integration: simheader to every request the Exa tools send toapi.exa.ai. This is a request header Exa uses on their side to attribute API traffic to the integration that originated it; it has no effect on the response or on user-facing behavior.Updated:
apps/sim/tools/exa/search.tsapps/sim/tools/exa/get_contents.tsapps/sim/tools/exa/find_similar_links.tsapps/sim/tools/exa/answer.tsapps/sim/tools/exa/research.ts(both the create-task POST and the polling GET)Example
Test plan
grep -n "x-exa-integration" apps/sim/tools/exa/*.tsshows the header set in all 6 request sites (5 tools, plus the research polling fetch)