How to set temperature for CompleteChatAsync options? #251
-
I am sending a This is my current implementation, I've added
How should I be setting temperature? For comparison, here is a solution in JS I found here, it's structured differently, but is setting the temperature which I want:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thank you for reaching out, @kovac031 ! The code that you included above is the correct way to use it. |
Beta Was this translation helpful? Give feedback.
Thank you for reaching out, @kovac031 !
ChatCompletionOptions
does have aTemperature
property, as you can see here:🔗 https://github.com/openai/openai-dotnet/blob/main/api/OpenAI.netstandard2.0.cs#L1387
🔗 https://github.com/openai/openai-dotnet/blob/main/src/Generated/Models/ChatCompletionOptions.cs#L46
The code that you included above is the correct way to use it.