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/Chat/Conversation.cs
+2-2
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ public OpenAI_API.Models.Model Model
40
40
}
41
41
42
42
/// <summary>
43
-
/// After calling <see cref="GetResponseFromChatbot"/>, this contains the full response object which can contain useful metadata like token usages, <see cref="ChatChoice.FinishReason"/>, etc. This is overwritten with every call to <see cref="GetResponseFromChatbot"/> and only contains the most recent result.
43
+
/// After calling <see cref="GetResponseFromChatbotAsync"/>, this contains the full response object which can contain useful metadata like token usages, <see cref="ChatChoice.FinishReason"/>, etc. This is overwritten with every call to <see cref="GetResponseFromChatbotAsync"/> and only contains the most recent result.
@@ -106,7 +106,7 @@ public void AppendMessage(ChatMessage message)
106
106
/// Calls the API to get a response, which is appended to the current chat's <see cref="Messages"/> as an <see cref="ChatMessageRole.Assistant"/> <see cref="ChatMessage"/>.
107
107
/// </summary>
108
108
/// <returns>The string of the response from the chatbot API</returns>
/// <returns>Asynchronously returns the completion result. Look in its <see cref="CompletionResult.Completions"/> property for the completions.</returns>
@@ -211,7 +211,7 @@ public IAsyncEnumerable<CompletionResult> StreamCompletionEnumerableAsync(string
211
211
/// </summary>
212
212
/// <param name="request">The request to send to the API. This does not fall back to default values specified in <see cref="DefaultCompletionRequestArgs"/>.</param>
213
213
/// <returns>A string of the prompt followed by the best completion</returns>
/// <param name="request">The request to send to the API. This does not fall back to default values specified in <see cref="DefaultCompletionRequestArgs"/>.</param>
125
125
/// <returns>A string of the prompt followed by the best completion</returns>
Copy file name to clipboardExpand all lines: OpenAI_API/Embedding/EmbeddingEndpoint.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ public async Task<EmbeddingResult> CreateEmbeddingAsync(string input)
42
42
/// <returns>Asynchronously returns the embedding result. Look in its <see cref="Data.Embedding"/> property of <see cref="EmbeddingResult.Data"/> to find the vector of floating point numbers</returns>
/// <param name="postData">(optional) A json-serializable object to include in the request body.</param>
183
183
/// <returns>An awaitable Task with the parsed result of type <typeparamref name="T"/></returns>
184
184
/// <exception cref="HttpRequestException">Throws an exception if a non-success HTTP response was returned or if the result couldn't be parsed.</exception>
/// <param name="url">(optional) If provided, overrides the url endpoint for this request. If omitted, then <see cref="Url"/> will be used.</param>
247
247
/// <returns>An awaitable Task with the parsed result of type <typeparamref name="T"/></returns>
248
248
/// <exception cref="HttpRequestException">Throws an exception if a non-success HTTP response was returned or if the result couldn't be parsed.</exception>
@@ -259,9 +259,9 @@ internal async Task<T> HttpGet<T>(string url = null) where T : ApiResultBase
259
259
/// <param name="postData">(optional) A json-serializable object to include in the request body.</param>
260
260
/// <returns>An awaitable Task with the parsed result of type <typeparamref name="T"/></returns>
261
261
/// <exception cref="HttpRequestException">Throws an exception if a non-success HTTP response was returned or if the result couldn't be parsed.</exception>
/// <param name="postData">(optional) A json-serializable object to include in the request body.</param>
273
273
/// <returns>An awaitable Task with the parsed result of type <typeparamref name="T"/></returns>
274
274
/// <exception cref="HttpRequestException">Throws an exception if a non-success HTTP response was returned or if the result couldn't be parsed.</exception>
/// <param name="postData">(optional) A json-serializable object to include in the request body.</param>
287
287
/// <returns>An awaitable Task with the parsed result of type <typeparamref name="T"/></returns>
288
288
/// <exception cref="HttpRequestException">Throws an exception if a non-success HTTP response was returned or if the result couldn't be parsed.</exception>
0 commit comments