openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.2.0-beta.1

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Custom/Files/OpenAIFile.cs

27lines · modecode

1using System;
2
3namespace OpenAI.Files;
4
5[CodeGenModel("OpenAIFile")]
6public partial class OpenAIFile
7{
8 // CUSTOM: Made private. This property does not add value in the context of a strongly-typed class.
9 /// <summary> The object type, which is always "file". </summary>
10 private InternalOpenAIFileObject Object { get; } = InternalOpenAIFileObject.File;
11
12 // CUSTOM: Renamed.
13 /// <summary> The size of the file, in bytes. </summary>
14 [CodeGenMember("Bytes")]
15 public int? SizeInBytes { get; }
16
17 // CUSTOM: Added the Obsolete attribute.
18 [Obsolete($"This property is obsolete. If this is a fine-tuning training file, it may take some time to process"
19 + $" after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it"
20 + $" will not start until the file processing has completed.")]
21 public FileStatus Status { get; }
22
23 // CUSTOM: Added the Obsolete attribute.
24 [Obsolete($"This property is obsolete. For details on why a fine-tuning training file failed validation, see the"
25 + $" `error` field on the fine-tuning job.")]
26 public string StatusDetails { get; }
27}
28