Skip to content

Commit

Permalink
修复 Ollama 终结点没有正确显示的问题 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
Richasy authored Sep 30, 2024
1 parent 3e99772 commit 67075e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ protected override void OnViewModelChanged(ChatServiceItemViewModel? oldValue, C
PredefinedCard.Description = string.Format(ResourceToolkit.GetLocalizedString(Models.Constants.StringNames.PredefinedModelsDescription), newVM.Name);

newVM.Config ??= CreateCurrentConfig();
if (newVM.Config is OllamaClientConfig)
if (newVM.Config is OllamaClientConfig ollama)
{
KeyCard.Visibility = Visibility.Collapsed;
EndpointBox.Text = ollama.Endpoint ?? string.Empty;
}

Debug.Assert(ViewModel.Config != null, "ViewModel.Config should not be null.");
Expand Down
2 changes: 1 addition & 1 deletion src/Libs/WinUI.Share

0 comments on commit 67075e0

Please sign in to comment.