You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OpenAI_API/IOpenAIAPI.cs
+22-4
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,10 @@
1
+
usingOpenAI_API.Chat;
1
2
usingOpenAI_API.Completions;
2
3
usingOpenAI_API.Embedding;
3
4
usingOpenAI_API.Files;
5
+
usingOpenAI_API.Images;
4
6
usingOpenAI_API.Models;
7
+
usingOpenAI_API.Moderation;
5
8
6
9
namespaceOpenAI_API
7
10
{
@@ -27,24 +30,39 @@ public interface IOpenAIAPI
27
30
/// </summary>
28
31
APIAuthenticationAuth{get;set;}
29
32
33
+
/// <summary>
34
+
/// Text generation in the form of chat messages. This interacts with the ChatGPT API.
35
+
/// </summary>
36
+
IChatEndpointChat{get;}
37
+
38
+
/// <summary>
39
+
/// Classify text against the OpenAI Content Policy.
40
+
/// </summary>
41
+
IModerationEndpointModeration{get;}
42
+
30
43
/// <summary>
31
44
/// Text generation is the core function of the API. You give the API a prompt, and it generates a completion. The way you “program” the API to do a task is by simply describing the task in plain english or providing a few written examples. This simple approach works for a wide range of use cases, including summarization, translation, grammar correction, question answering, chatbots, composing emails, and much more (see the prompt library for inspiration).
32
45
/// </summary>
33
-
CompletionEndpointCompletions{get;}
46
+
ICompletionEndpointCompletions{get;}
34
47
35
48
/// <summary>
36
49
/// The API lets you transform text into a vector (list) of floating point numbers. The distance between two vectors measures their relatedness. Small distances suggest high relatedness and large distances suggest low relatedness.
37
50
/// </summary>
38
-
EmbeddingEndpointEmbeddings{get;}
51
+
IEmbeddingEndpointEmbeddings{get;}
39
52
40
53
/// <summary>
41
54
/// The API endpoint for querying available Engines/models
42
55
/// </summary>
43
-
ModelsEndpointModels{get;}
56
+
IModelsEndpointModels{get;}
44
57
45
58
/// <summary>
46
59
/// The API lets you do operations with files. You can upload, delete or retrieve files. Files can be used for fine-tuning, search, etc.
47
60
/// </summary>
48
-
FilesEndpointFiles{get;}
61
+
IFilesEndpointFiles{get;}
62
+
63
+
/// <summary>
64
+
/// The API lets you do operations with images. You can Given a prompt and/or an input image, the model will generate a new image.
Copy file name to clipboardExpand all lines: OpenAI_API/OpenAIAPI.cs
+8-8
Original file line number
Diff line number
Diff line change
@@ -70,36 +70,36 @@ public static OpenAIAPI ForAzure(string YourResourceName, string deploymentId, A
70
70
/// <summary>
71
71
/// Text generation is the core function of the API. You give the API a prompt, and it generates a completion. The way you “program” the API to do a task is by simply describing the task in plain english or providing a few written examples. This simple approach works for a wide range of use cases, including summarization, translation, grammar correction, question answering, chatbots, composing emails, and much more (see the prompt library for inspiration).
72
72
/// </summary>
73
-
publicCompletionEndpointCompletions{get;}
73
+
publicICompletionEndpointCompletions{get;}
74
74
75
75
/// <summary>
76
76
/// The API lets you transform text into a vector (list) of floating point numbers. The distance between two vectors measures their relatedness. Small distances suggest high relatedness and large distances suggest low relatedness.
77
77
/// </summary>
78
-
publicEmbeddingEndpointEmbeddings{get;}
78
+
publicIEmbeddingEndpointEmbeddings{get;}
79
79
80
80
/// <summary>
81
81
/// Text generation in the form of chat messages. This interacts with the ChatGPT API.
82
82
/// </summary>
83
-
publicChatEndpointChat{get;}
83
+
publicIChatEndpointChat{get;}
84
84
85
85
/// <summary>
86
86
/// Classify text against the OpenAI Content Policy.
87
87
/// </summary>
88
-
publicModerationEndpointModeration{get;}
88
+
publicIModerationEndpointModeration{get;}
89
89
90
90
/// <summary>
91
91
/// The API endpoint for querying available Engines/models
92
92
/// </summary>
93
-
publicModelsEndpointModels{get;}
93
+
publicIModelsEndpointModels{get;}
94
94
95
95
/// <summary>
96
96
/// The API lets you do operations with files. You can upload, delete or retrieve files. Files can be used for fine-tuning, search, etc.
97
97
/// </summary>
98
-
publicFilesEndpointFiles{get;}
98
+
publicIFilesEndpointFiles{get;}
99
99
100
100
/// <summary>
101
-
/// The API lets you do operations with images. You can Given a prompt and/or an input image, the model will generate a new image.
101
+
/// The API lets you do operations with images. Given a prompt and/or an input image, the model will generate a new image.
0 commit comments