-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.Net: Inconsistent Temperature data type in PromptExecutionSettings classes #8541
Comments
@akordowski - thanks for reaching out on this. Each connector has its own data type and matches the type by the underlining service. We abstract on top of these. |
@evchaki Thank you for your reponse.
After investigating the source code this statement is not quite true. For the semantic-kernel/dotnet/src/Connectors/Connectors.AzureOpenAI/Core/AzureClientCore.ChatCompletion.cs Lines 39 to 50 in 6426911
And for the |
This issue is stale because it has been open for 90 days with no activity. |
@evchaki Any remarks regarding my response? |
@akordowski I think your concerns are valid. On the other hand, I'm not sure if it will be possible to update property type at this point, since it's going to be a breaking change. The alternative solution would be to mark current property as obsolete and introduce another one with correct type, but we will have to use new name for that property, and this is a problem, because |
@dmytrostruk Thank you for your response.
The only errors I can imagine would be compile/cast errors. As the SK project is still experimental I find it justified to fix the issue and don't drag the "technical" debt in future versions. The changes could be communicated through release notes or something similar. If the team is willing to accept a fix regarding this issue I would love to provide a PR. Feel free to let me know. Thank you! |
@akordowski Thanks for your reply!
That's correct, property type.
While some of SK functionality is marked as experimental, the functionality for execution settings, and specifically I'm not sure this issue is critical in the way that we want to provide a breaking change for it, but we can discuss it with internal team and make some decision. I think this property was added at the very early stage of Semantic Kernel, so maybe back then it wasn't clear which values it will accept in the future.
Your contribution is much appreciated and in case we decide to proceed with this change, we will definitely let you know. Thank you! |
@dmytrostruk Thank you for the clarification.
I would like to point out, that I already expierienced some breaking changes (as you can read here #8658) which were more sever than a data type change. But I understand and respect the teams decision.
Thank you very much! Looking forward to the teams decision. |
Working with SK it came to my attention that the data type of the
Temperature
property inPromptExecutionSettings
classes is inconsistent. Some have the data typefloat
others havedouble
.Is that intentional? When not wouldn't it make sense to have the same data type in all
PromptExecutionSettings
classes? As the expected values are mostly in range of-1.0 to 1.0
it would make sens to use thefloat
data type (float
32bit vsdouble
64 bit). If wished I could provide PR for this issue. Thank you for consideration.float
double
The text was updated successfully, but these errors were encountered: