Skip to content

feat(providers): attribute Perplexity requests - #739

Closed
qirh wants to merge 1 commit into
markrahq:v2from
qirh:API-4624/markra-attribution
Closed

qirh wants to merge 1 commit into
markrahq:v2from
qirh:API-4624/markra-attribution

Conversation

@qirh

@qirh qirh commented Sep 20, 2026 •

Copy link
Copy Markdown

Summary

  • Perplexity would like to identify Markra requests in API attribution data.
  • Send X-Pplx-Integration: markra on requests whose configured destination is exactly api.perplexity.ai.
  • Apply the default through the shared provider-header path used by chat, Responses, and model discovery.
  • Preserve caller-provided attribution case-insensitively and leave proxy traffic unchanged.

Verification

  • Request-builder coverage confirms direct Perplexity requests receive the default, lowercase caller overrides are preserved, and lookalike proxy hosts remain unchanged.

@vercel

vercel Bot commented Sep 20, 2026

Copy link
Copy Markdown

@qirh is attempting to deploy a commit to the murongg's projects Team on Vercel.

A member of the Team first needs to authorize it.

@qirh
qirh force-pushed the API-4624/markra-attribution branch from 0fb45ca to 03d96ad Compare September 20, 2026 04:11
@qirh
qirh marked this pull request as ready for review September 20, 2026 04:12
@vercel

vercel Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
markra-web Ready Ready Preview Sep 20, 2026 8:03am UTC

@murongg

murongg commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

Markra already supports custom request headers through customHeaders, which users can use to set X-Pplx-Integration: markra. Could you clarify why this needs to be added automatically in code instead of using the existing custom headers feature? Is there a requirement for attribution to be enabled by default without user configuration?

@qirh qirh changed the title [API-4624] Attribute Perplexity requests Attribute Perplexity requests Sep 21, 2026
@qirh qirh changed the title Attribute Perplexity requests feat(providers): attribute Perplexity requests Sep 24, 2026
@qirh

qirh commented Sep 24, 2026

Copy link
Copy Markdown
Author

Fair question. customHeaders works, but most users won't set it, so a built-in default is the only way we actually see Markra traffic, and a user's own value still takes precedence.

@qirh qirh closed this Oct 20, 2026

This branch was successfully deployed

1 active deployment
Preview — 03d96ad3 Deployed Sep 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants