MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.47k forks source link

Temperature parameter value can be set between '0 and 2' or '0 and 1' #120498

Closed kushaldugar closed 8 months ago

kushaldugar commented 8 months ago

[Enter feedback here] https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/advanced-prompt-engineering?pivots=programming-language-chat-completions#temperature-and-top_p-parameters

Here it is mentioned that "The temperature parameter can be set between 0 and 2." But I think temperature parameter can be set only between 0 and 1.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

mrbullwinkle commented 8 months ago

@kushaldugar thanks for reaching out. In the Studio playground experiences we artificially cap the range to between 0 and 1. But between 0 and 2 is supported by the API itself when making a direct API call. Generally speaking setting temperature to 2 does not yield desirable results which is why we limit the experience in the playgrounds.

image
mrbullwinkle commented 8 months ago

assign:mrbullwinkle

mrbullwinkle commented 8 months ago

please-close

kushaldugar commented 8 months ago

Thanks Michael for the clarification 😊

Thanks & regards, Kushal Dugar Partner Technical Consultant Partner Enablement | Technical Presales & Deployment Serviceshttp://aka.ms/technicaljourney Email: @.**@.> | You can also reach us through Partner Centerhttps://partner.microsoft.com/en-us/dashboard/home [Microsoft Logo] Helping partners build and grow their cloud practices faster through partner-centric resources Note: This email may contain confidential information. If you are not named on the addressee list, please take no action in relation to this email, do not open any attachment and please contact the sender (details above) immediately.

From: Michael @.> Sent: Wednesday, March 6, 2024 8:37 PM To: MicrosoftDocs/azure-docs @.> Cc: Kushal Dugar @.>; Mention @.> Subject: Re: [MicrosoftDocs/azure-docs] Temperature parameter value can be set between '0 and 2' or '0 and 1' (Issue #120498)

@kushaldugarhttps://github.com/kushaldugar thanks for reaching out. In the Studio playground experiences we artificially cap the range to between 0 and 1. But between 0 and 2 is supported by the API itself when making a direct API call. Generally speaking setting temperature to 2 does not yield desirable results which is why we limit the experience in the playgrounds. image.png (view on web)https://github.com/MicrosoftDocs/azure-docs/assets/31510320/dcf55aca-df5d-40b4-821f-b8efa78a14c6

— Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/120498#issuecomment-1981077333, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO6OOWQ5T7RGLS36W3G5PITYW4WJXAVCNFSM6AAAAABEI5X2K2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBRGA3TOMZTGM. You are receiving this because you were mentioned.Message ID: @.***>