Exception:找不到方法:“System.Collections.Generic.IAsyncEnumerable`1<System.String> KkjQuicker.AI.Chat.OpenAiCompatibleClient.ChatStreamAsync(KkjQuicker.AI.Chat.ChatRequest, System.Threading.CancellationToken)”。

报错信息 1
MissingMethodException: 找不到方法:“System.Collections.Generic.IAsyncEnumerable`1<System.String> KkjQuicker.AI.Chat.OpenAiCompatibleClient.ChatStreamAsync(KkjQuicker.AI.Chat.ChatRequest, System.Threading.CancellationToken)”。
--Message: 找不到方法:“System.Collections.Generic.IAsyncEnumerable`1<System.String> KkjQuicker.AI.Chat.OpenAiCompatibleClient.ChatStreamAsync(KkjQuicker.AI.Chat.ChatRequest, System.Threading.CancellationToken)”。
StackTrace:
   在 DynamicClass.<Translate>d__22.MoveNext()
   在 System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   在 DynamicClass.Translate(String text, OpenAiCompatibleClient ai, CancellationTokenSource cts, TextBoxWithToolsControl tbt)
   在 KkjQuicker.UI.Adorners.OverlayActionContext.Dispatch[T](Action`1 action)
   在 KkjQuicker.UI.Adorners.ButtonItem.<>c__DisplayClass7_0.<Build>b__0(Object _, RoutedEventArgs __)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.Controls.Primitives.ButtonBase.OnClick()
   在 System.Windows.Controls.Button.OnClick()
   在 System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   在 System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   在 System.Windows.Input.InputManager.ProcessStagingArea()
   在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   在 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   在 System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   在 System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

版本:1.45.0 2026-02-26 21:15 Microsoft Windows NT 10.0.26200.0