You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
System.InvalidCastException: 'Unable to cast object of type 'System.Double' to type 'System.Nullable`1[System.Int32]'.' when using OllamaPromptExecutionSettings with GetChatMessageContentsAsync
To Reproduce
Steps to reproduce the behavior:
create an instance of OllamaPromptExecutionSettings and set the Temperature and NumPredict properties.
Execute var chatResponse = await chatCompletionService.GetChatMessageContentsAsync(ChatHistory,settings);
github-actionsbot
changed the title
Bug: OllamaPromptExecutionSettings with GetChatMessageContentsAsync = System.InvalidCastException:
.Net: Bug: OllamaPromptExecutionSettings with GetChatMessageContentsAsync = System.InvalidCastException:
Feb 3, 2025
Describe the bug
System.InvalidCastException: 'Unable to cast object of type 'System.Double' to type 'System.Nullable`1[System.Int32]'.' when using OllamaPromptExecutionSettings with GetChatMessageContentsAsync
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Response from local LLM.
Screenshots
N/A
Platform
Additional context
If I remove the settings parameter from the GetchatMessageContentsAsync I get a valid response from the LLM.
The text was updated successfully, but these errors were encountered: