Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 5.1.2 has typing issues #366

Open
jgrisafe opened this issue Mar 9, 2025 · 0 comments
Open

Version 5.1.2 has typing issues #366

jgrisafe opened this issue Mar 9, 2025 · 0 comments

Comments

@jgrisafe
Copy link

jgrisafe commented Mar 9, 2025

What is the current behavior?

I can't import the SyncResponse class from any sub package without getting deprecation errors, it's no longer exportable from Deepgram.Models.Listen.v1.REST although that's what the deprecation message hints at importing from

Steps to reproduce

  • Use IListenRestClient for dependency injection
        builder.Services.AddSingleton<IListenRESTClient>(sp =>
        {
            var configuration = sp.GetRequiredService<IConfiguration>();
            var settings = configuration.GetSection("Deepgram").Get<DeepgramSettings>()!;
            return ClientFactory.CreateListenRESTClient(settings.ApiKey);
        });
  • try to import SyncResponse in any service that injects the client.

Expected behavior

Please tell us about your environment

Other information

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

No branches or pull requests

1 participant