Class FileCitation
- Namespace
- OpenAI
- Assembly
- OpenAI-DotNet.dll
public sealed class FileCitation : IAnnotation
- Inheritance
-
FileCitation
- Implements
- Inherited Members
Properties
FileId
The ID of the file.
[JsonInclude]
[JsonPropertyName("file_id")]
public string FileId { get; }
Property Value
FileName
The filename of the file cited.
[JsonInclude]
[JsonPropertyName("filename")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string FileName { get; }
Property Value
Index
The index of the file in the list of files.
[JsonInclude]
[JsonPropertyName("index")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? Index { get; }
Property Value
- int?
Type
[JsonInclude]
[JsonPropertyName("type")]
[JsonConverter(typeof(JsonStringEnumConverter<AnnotationType>))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public AnnotationType Type { get; }