Skip to content

Restore QID propagation for chat telemetry - #131

Draft
shashank-kenpath wants to merge 1 commit into
bh-mainfrom
codex/fix-bh-main-qid-feedback
Draft

Restore QID propagation for chat telemetry#131
shashank-kenpath wants to merge 1 commit into
bh-mainfrom
codex/fix-bh-main-qid-feedback

Conversation

@shashank-kenpath

Copy link
Copy Markdown
Contributor

What changed

  • Generate and send one QID for each text or image chat request.
  • Store the same QID on the assistant message.
  • Reuse it for feedback and error telemetry.
  • Preserve response-provided QIDs as an optional compatibility override.

Why

The bh-main frontend expected X-QID in the chat response, but backend PR OpenAgriNet/bharat-oan-api#137 removed that header and now uses request.qid. Feedback therefore fell back to the local message ID.

Validation

  • npm run build
  • eslint .
  • tsc -b
  • git diff --check

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.

1 participant