We are continuously addressing and improving the SDK, if possible, make sure the problem persist in the latest SDK version.
Describe the bug
The SemanticRerankResult type exposes a property named TokenUseage.
This appears to be a typo. The property name is likely intended to be TokenUsage.
To Reproduce
Use SemanticRerankResult and access the token usage details:
Console.WriteLine($"Token usage details: {rerankedResults.TokenUseage["total_tokens"]}");
The currently available property name is TokenUseage.
Expected behavior
The property should be named TokenUsage, which matches the common spelling of "usage" and the terminology used for token usage information.
For example:
Console.WriteLine($"Token usage details: {rerankedResults.TokenUsage["total_tokens"]}");
Actual behavior
The property is currently named TokenUseage.
Environment summary
SDK Version: Microsoft.Azure.Cosmos 3.62.0-preview.0
OS Version: Windows
Additional context
This looks like a typo in a public API surface. If this property has already been released publicly, renaming it directly may be a breaking change. One possible approach may be to add a correctly spelled TokenUsage property and keep TokenUseage as an obsolete compatibility alias.
Describe the bug
The
SemanticRerankResulttype exposes a property namedTokenUseage.This appears to be a typo. The property name is likely intended to be
TokenUsage.To Reproduce
Use
SemanticRerankResultand access the token usage details:The currently available property name is
TokenUseage.Expected behavior
The property should be named
TokenUsage, which matches the common spelling of "usage" and the terminology used for token usage information.For example:
Actual behavior
The property is currently named
TokenUseage.Environment summary
SDK Version: Microsoft.Azure.Cosmos 3.62.0-preview.0
OS Version: Windows
Additional context
This looks like a typo in a public API surface. If this property has already been released publicly, renaming it directly may be a breaking change. One possible approach may be to add a correctly spelled
TokenUsageproperty and keepTokenUseageas an obsolete compatibility alias.