Class Usage
Usage statistics for the completion request.
Assembly: .dll
Syntax
[Serializable]
public class Usage
Constructors
Usage()
Declaration
Usage(UsageType, int)
Declaration
public Usage(UsageType type, int count)
Parameters
Type |
Name |
Description |
UsageType |
type |
|
int |
count |
|
Fields
usages
Declaration
public ReferencedDictionary<UsageType, int> usages
Field Value
Type |
Description |
ReferencedDictionary<UsageType, int> |
|
Properties
Number of tokens in the prompt.
Declaration
public int? InputTokens { get; set; }
Property Value
IsEmpty
Declaration
public bool IsEmpty { get; }
Property Value
IsFree
Declaration
public bool IsFree { get; }
Property Value
OutputTokens
Number of tokens in the generated completion.
Declaration
public int? OutputTokens { get; set; }
Property Value
Methods
Empty()
Declaration
public static Usage Empty()
Returns
Free()
Declaration
public static Usage Free()
Returns
PerCharacter(double)
Declaration
public static Usage PerCharacter(double cost)
Parameters
Type |
Name |
Description |
double |
cost |
|
Returns
PerMinute(double)
Declaration
public static Usage PerMinute(double cost)
Parameters
Type |
Name |
Description |
double |
cost |
|
Returns
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object.
|
Overrides
object.ToString()
Extension Methods