openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
OpenAI/src/Custom/Embeddings/EmbeddingTokenUsage.cs
17lines · modecode
| 1 | using Microsoft.TypeSpec.Generator.Customizations; |
| 2 | |
| 3 | namespace OpenAI.Embeddings; |
| 4 | |
| 5 | // CUSTOM: Renamed. |
| 6 | [CodeGenType("CreateEmbeddingResponseUsage")] |
| 7 | public partial class EmbeddingTokenUsage |
| 8 | { |
| 9 | // CUSTOM: Renamed. |
| 10 | /// <summary> The number of tokens used by the input prompts. </summary> |
| 11 | [CodeGenMember("PromptTokens")] |
| 12 | public int InputTokenCount { get; } |
| 13 | |
| 14 | // CUSTOM: Renamed. |
| 15 | [CodeGenMember("TotalTokens")] |
| 16 | public int TotalTokenCount { get; } |
| 17 | } |