How can we specify the temperature in the Azure OpenAI client library. #37669
-
Hello. I searched the docs but could not find any info about this. Is it possible to specify the temperature when interacting with the chat API? I'm creating my client as follows, OpenAIClient client = new OpenAIClientBuilder() Then populate a couple of messages and finally call, IterableStream chatCompletionsStream = client.getChatCompletionsStream(deploymentOrModelId, Is it possible this capability is not exposed yet through this API? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
OK was very simple after all. Just had to assign the "new ChatCompletionsOptions(chatMessages)" to a ChatCompletionsOptions object, and then use the methods on the object. |
Beta Was this translation helpful? Give feedback.
OK was very simple after all. Just had to assign the "new ChatCompletionsOptions(chatMessages)" to a ChatCompletionsOptions object, and then use the methods on the object.