mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
* feat: add openai service * feat: add openai auto completion plugin * feat: add visible icon for open ai input field * chore: optimize user experience * feat: add auto completion node plugin * feat: support keep and discard the auto generated text * fix: can't delete the auto completion node * feat: disable ai plugins if open ai key is null * fix: wrong auto completion node card color * fix: make sure the previous text node is pure when using auto generator
7 lines
158 B
Dart
7 lines
158 B
Dart
import 'package:dartz/dartz.dart';
|
|
|
|
extension EitherX<L, R> on Either<L, R> {
|
|
R asRight() => (this as Right).value;
|
|
L asLeft() => (this as Left).value;
|
|
}
|