Skip to content

Adding Deepgram Support from #994#1003

Closed
czjzpz wants to merge 5 commits into
steipete:mainfrom
czjzpz:main
Closed

Adding Deepgram Support from #994#1003
czjzpz wants to merge 5 commits into
steipete:mainfrom
czjzpz:main

Conversation

@czjzpz
Copy link
Copy Markdown
Contributor

@czjzpz czjzpz commented May 17, 2026

Summary

  • Updated Deepgram usage fetching to call the /v1/projects/{projectID}/usage/breakdown endpoint.
  • Preserved parsed Deepgram usage data on UsageSnapshot so it can be displayed instead of being dropped.
  • Added Deepgram menu usage notes for requests, audio hours, billable hours, and period.
  • Updated Deepgram docs to reference the usage breakdown endpoint.
  • Added regression tests for breakdown response parsing and request path/auth headers.

Tests

  • swift test --filter DeepgramProviderTests

czjzpz and others added 4 commits May 16, 2026 21:10
	modified:   Sources/CodexBar/MenuCardView+ModelHelpers.swift
	modified:   Sources/CodexBar/ProviderRegistry.swift
	modified:   Sources/CodexBar/Providers/DeepGram/DeepGramProviderImplementation.swift
	modified:   Sources/CodexBar/Providers/DeepGram/DeepGramSettingsStore.swift
	modified:   Sources/CodexBar/Providers/Shared/ProviderImplementationRegistry.swift
	modified:   Sources/CodexBar/UsageStore.swift
	modified:   Sources/CodexBarCore/Config/CodexBarConfig.swift
	modified:   Sources/CodexBarCore/Config/ProviderConfigEnvironment.swift
	modified:   Sources/CodexBarCore/Logging/LogCategories.swift
	modified:   Sources/CodexBarCore/Providers/Deepgram/DeepGramProviderDescription.swift
	modified:   Sources/CodexBarCore/Providers/Deepgram/DeepGramSettingsReader.swift
	modified:   Sources/CodexBarCore/Providers/Deepgram/DeepGramUsageFetcher.swift
	modified:   Sources/CodexBarCore/Providers/ProviderDescriptor.swift
	modified:   Sources/CodexBarCore/Providers/ProviderTokenResolver.swift
	modified:   Sources/CodexBarCore/Providers/Providers.swift
	modified:   Sources/CodexBarCore/Vendored/CostUsage/CostUsageScanner.swift
	modified:   Sources/CodexBarWidget/CodexBarWidgetProvider.swift
	modified:   Sources/CodexBarWidget/CodexBarWidgetViews.swift
	new file:   Tests/CodexBarTests/DeepgramProviderTests.swift
	modified:   Tests/CodexBarTests/ProviderConfigEnvironmentTests.swift
	modified:   Tests/CodexBarTests/ProviderSettingsDescriptorTests.swift
	new file:   docs/deepgram.md
	modified:   Sources/CodexBar/MenuCardView.swift
	modified:   Sources/CodexBarCore/Providers/Deepgram/DeepGramUsageFetcher.swift
	modified:   Sources/CodexBarCore/UsageFetcher.swift
	modified:   Tests/CodexBarTests/DeepgramProviderTests.swift
	modified:   docs/deepgram.md
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 34b4a9a9a8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread Sources/CodexBar/MenuCardView+ModelHelpers.swift Outdated
Comment thread Sources/CodexBarCore/Config/ProviderConfigEnvironment.swift
	modified:   Sources/CodexBar/MenuCardView+ModelHelpers.swift
	modified:   Sources/CodexBarCore/Config/ProviderConfigEnvironment.swift
@steipete
Copy link
Copy Markdown
Owner

Thanks for the Deepgram provider work. I landed a maintainer-polished version on main as 9a369ad.

What changed before landing:

  • Added Deepgram API-key usage fetching with optional project discovery and aggregation.
  • Routed requests through the shared provider HTTP transport seam.
  • Added menu and CLI rendering for requests, audio/billable hours, agent hours, tokens, and TTS characters.
  • Added config validation, settings UI, docs, icon coverage, and regression tests.
  • Fixed review feedback so configured Deepgram project IDs override inherited environment project IDs.

Proof:

  • swift test --filter 'ProviderConfigEnvironmentTests|DeepgramProviderTests|CLIOutputTests'
  • swift test --filter 'CLIOutputTests|DeepgramProviderTests|ConfigValidationTests|ProviderConfigEnvironmentTests|ProviderSettingsDescriptorTests|ProviderIconResourcesTests'
  • make check
  • codex-review clean: no accepted/actionable findings reported

Co-authored-by credit preserved in the landed commit. Thank you.

@steipete steipete closed this May 17, 2026
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