File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
src/AzureOpenAIProxy.PlaygroundApp/Clients Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public async Task<string> CompleteChatAsync(OpenAIApiClientOptions clientOptions
3939 } ;
4040 var options = new ChatCompletionOptions
4141 {
42- MaxOutputTokenCount = clientOptions . MaxTokens ,
42+ MaxOutputTokenCount = clientOptions . MaxOutputTokenCount ,
4343 Temperature = clientOptions . Temperature ,
4444 } ;
4545
Original file line number Diff line number Diff line change @@ -23,7 +23,17 @@ public class OpenAIApiClientOptions
2323 /// <summary>
2424 /// Gets or sets the max_tokens value.
2525 /// </summary>
26- public int ? MaxTokens { get ; set ; }
26+ [ Obsolete ( "Use MaxOutputTokenCount instead." ) ]
27+ public int ? MaxTokens
28+ {
29+ get { return this . MaxOutputTokenCount ; }
30+ set { this . MaxOutputTokenCount = value ; }
31+ }
32+
33+ /// <summary>
34+ /// Gets or sets the max_completion_tokens value.
35+ /// </summary>
36+ public int ? MaxOutputTokenCount { get ; set ; }
2737
2838 /// <summary>
2939 /// Gets or sets the temperature value.
You can’t perform that action at this time.
0 commit comments