Skip to content

Comments

Add provider info to meta.extra in streaming responses#4132

Open
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin/1771653259-add-provider-to-meta-extra
Open

Add provider info to meta.extra in streaming responses#4132
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin/1771653259-add-provider-to-meta-extra

Conversation

@devin-ai-integration
Copy link
Contributor

Summary

Injects the upstream STT provider name (e.g. "deepgram", "soniox") into metadata.extra.provider on every TranscriptResponse returned through the hyprnote response transformer in transcribe-proxy.

Two small changes:

  • owhisper-interface: adds StreamResponse::set_provider(&mut self, provider: &str) — inserts/upserts a "provider" key into metadata.extra
  • transcribe-proxy: calls set_provider inside build_response_transformer after parsing each upstream response

Review & Testing Checklist for Human

  • Passthrough path coverage: set_provider is only called in the hyprnote response-transformer path. The passthrough path (passthrough.rs) forwards raw upstream JSON and will not include provider in metadata.extra. Verify this is acceptable for your use case.
  • Provider name format: The name is derived via format!("{:?}", provider).to_lowercase(). Confirm the Debug impl on Provider produces the expected strings for all variants (deepgram, soniox, assemblyai, etc.).
  • Downstream consumers: Confirm that clients parsing metadata.extra handle the new "provider" key gracefully (it's additive, but worth a quick check).

Notes

Requested by: @yujonglee
Link to Devin run

Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@netlify
Copy link

netlify bot commented Feb 21, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit ce9efbc
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/69994b691cb1e900083e56bd

@netlify
Copy link

netlify bot commented Feb 21, 2026

Deploy Preview for hyprnote canceled.

Name Link
🔨 Latest commit ce9efbc
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/69994b694070bb0008f9f123

Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
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