deepgram-dotnet-sdk icon indicating copy to clipboard operation
deepgram-dotnet-sdk copied to clipboard

Version 5.1.2 has typing issues

Open jgrisafe opened this issue 7 months ago • 0 comments

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

jgrisafe avatar Mar 09 '25 17:03 jgrisafe