openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
fe4d6cf1ccfea48fa5c2baf67103495ac9b459dd

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

OpenAI/src/Custom/Embeddings/EmbeddingTokenUsage.cs

17lines · modecode

1using Microsoft.TypeSpec.Generator.Customizations;
2
3namespace OpenAI.Embeddings;
4
5// CUSTOM: Renamed.
6[CodeGenType("CreateEmbeddingResponseUsage")]
7public 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}